mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-14 19:08:08 +00:00
Enable User assigned managed identity for scalesets (#219)
This commit is contained in:
@ -62,6 +62,7 @@ from msrest.serialization import TZ_UTC
|
||||
from data_migration import migrate
|
||||
from registration import (
|
||||
add_application_password,
|
||||
assign_scaleset_role,
|
||||
authorize_application,
|
||||
get_application,
|
||||
register_application,
|
||||
@ -395,6 +396,11 @@ class Client:
|
||||
sys.exit(1)
|
||||
self.results["deploy"] = result.properties.outputs
|
||||
|
||||
logger.info("assigning the user managed identity role")
|
||||
assign_scaleset_role(
|
||||
self.application_name, self.results["deploy"]["scaleset-identity"]["value"]
|
||||
)
|
||||
|
||||
def apply_migrations(self):
|
||||
self.results["deploy"]["func-storage"]["value"]
|
||||
name = self.results["deploy"]["func-name"]["value"]
|
||||
|
Reference in New Issue
Block a user