mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-16 11:58:09 +00:00
Storing the user assigned managed identity in the scaleset table (#255)
This commit is contained in:
@ -151,7 +151,7 @@ def get_scaleset_identity_resource_path() -> str:
|
||||
|
||||
@cached
|
||||
def get_scaleset_principal_id() -> UUID:
|
||||
api_version = "2018-11-30" # matches the apiversion in the deplyoment template
|
||||
api_version = "2018-11-30" # matches the apiversion in the deployment template
|
||||
client = mgmt_client_factory(ResourceManagementClient)
|
||||
uid = client.resources.get_by_id(get_scaleset_identity_resource_path(), api_version)
|
||||
return UUID(uid.properties["principalId"])
|
||||
|
Reference in New Issue
Block a user