Repository navigation
How to shortern a name of a policyAssignmentName #14574
Unanswered
Claire Westmacott (GBCSIM1)
asked this question in
Ideas
Replies: 1 comment 2 replies
? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
So my code is:
var Tags = [
{
tagName: 'SubscriptionxxxxOwner'
}
{
tagName: 'PrimaryxxxxContact'
}
{
tagName: 'Secondaryxxxxxxontact'
}
]
resource policyassignment 'Microsoft.Authorization/policyAssignments@2022-06-01' = [ for (rpaTag,index) in Tags: {
name: '${rpaTag.tagName}${index}pol'
scope: managementGroup()
So i am tring to reduce the name as its too many characters. can't go over 24 characters.
i wonder if anyone had any ideas on how to achieve this please? thanks in advance
All reactions