mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-16 11:58:09 +00:00
Save the managed identity as soon as it's available (#144)
This commit is contained in:
@ -664,6 +664,8 @@ class Scaleset(BASE_SCALESET, ORMMixin):
|
||||
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
|
||||
|
Reference in New Issue
Block a user