Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Save the managed identity as soon as it's available #144

Merged
merged 1 commit into from
Oct 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/api-service/__app__/onefuzzlib/pools.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,8 @@ def setup(self) -> None:
logging.info("creating scaleset: %s", self.scaleset_id)
elif vmss.provisioning_state == "Creating":
logging.info("Waiting on scaleset creation: %s", self.scaleset_id)
if vmss.identity and vmss.identity.principal_id:
self.client_object_id = vmss.identity.principal_id
else:
logging.info("scaleset running: %s", self.scaleset_id)
self.state = ScalesetState.running
Expand Down