icy-dress-83371
03/30/2021, 3:06 PMdef get_appgw_id(gw_name):
return Output.concat("/subscriptions/",subscription_id,"/resourceGroups/",resource_group.name,"/providers/Microsoft.ManagedIdentity/userAssignedIdentities/",gw_name)
...
...
identity=network.ManagedServiceIdentityArgs(
type="UserAssigned",
user_assigned_identities={
str(Output.concat(gatewayId.id)): {},
f"{gatewayId.id.apply(lambda id: id)}": {},
f"{Output.concat('/subscriptions/',subscription_id,'/resourceGroups/',resource_group.name,'/providers/Microsoft.ManagedIdentity/userAssignedIdentities',gatewayId.name)}": {},
f"/subscriptions/{subscription_id}/resourcegroups/{resource_group.name}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{gatewayId.name}": {},
f"{get_appgw_id(gatewayId.name)}": {},
f"/subscriptions/*****/resourcegroups/*****/providers/Microsoft.ManagedIdentity/userAssignedIdentities/*****": {},
},
),
export("GW_USER_ID", gatewayId.id)
export("GW_USER_ID_GEN", get_appgw_id(gatewayId.name))
export("GW_USER_ID_LAMBDA", gatewayId.id.apply(lambda id: id))