Skip to content

Only resolves UAMI in same RG as the hosts #827

@trucker001

Description

@trucker001

files:
https://github.com/Azure/RDS-Templates/blob/master/ARM-wvd-templates/nestedtemplates/managedDisks-galleryvm.json
https://github.com/Azure/RDS-Templates/blob/master/ARM-wvd-templates/nestedtemplates/managedDisks-customimagevm.json

Part:
"[resourceID('Microsoft.ManagedIdentity/userAssignedIdentities/',parameters('userAssignedIdentity'))]": {}

Issue:
This resolves only UAMI's in the same resource group, not very handy if you have many AVD environments that you would like the use the same UAMI with.

Possible Solution:
do not resolve this resourceid inside the template but rather let the parameter input already be a ResourceID, this way you could even use a UAMI from a different RG or Subscription. This gives a lot more flexibility.
Out of safety consideration, we could even do a check if it's a name or a Resource ID and only resolve it to a ResourceId if its a Name

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions