Skip to content

Commit

Permalink
Removing metadata from policy assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
Brunoga-MS committed Sep 27, 2023
1 parent 9a3ad89 commit 0d16fff
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@
"principalType": "ServicePrincipal",
"roleDefinitionId": "[concat('/providers/Microsoft.Authorization/roleDefinitions/', variables('rbacContributor'))]",
"principalId": "[toLower(reference(concat('/providers/Microsoft.Authorization/policyAssignments/', variables('policyAssignmentNames').ambaConnectivity), '2019-09-01', 'Full' ).identity.principalId)]",
"description": "_deployed_by_amba",
"metadata": {
"_deployed_by_amba": true
}
"description": "_deployed_by_amba"
}
}
],
Expand Down
5 changes: 1 addition & 4 deletions patterns/alz/policyAssignments/DINE-IdentityAssignment.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@
"principalType": "ServicePrincipal",
"roleDefinitionId": "[concat('/providers/Microsoft.Authorization/roleDefinitions/', variables('rbacContributor'))]",
"principalId": "[toLower(reference(concat('/providers/Microsoft.Authorization/policyAssignments/', variables('policyAssignmentNames').ambaIdentity), '2019-09-01', 'Full' ).identity.principalId)]",
"description": "_deployed_by_amba",
"metadata": {
"_deployed_by_amba": true
}
"description": "_deployed_by_amba"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@
"principalType": "ServicePrincipal",
"roleDefinitionId": "[concat('/providers/Microsoft.Authorization/roleDefinitions/', variables('rbacContributor'))]",
"principalId": "[toLower(reference(concat('/providers/Microsoft.Authorization/policyAssignments/', variables('policyAssignmentNames').ambaLandingZone), '2019-09-01', 'Full' ).identity.principalId)]",
"description": "_deployed_by_amba",
"metadata": {
"_deployed_by_amba": true
}
"description": "_deployed_by_amba"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@
"principalType": "ServicePrincipal",
"roleDefinitionId": "[concat('/providers/Microsoft.Authorization/roleDefinitions/', variables('rbacContributor'))]",
"principalId": "[toLower(reference(concat('/providers/Microsoft.Authorization/policyAssignments/', variables('policyAssignmentNames').ambaManagement), '2019-09-01', 'Full' ).identity.principalId)]",
"description": "_deployed_by_amba",
"metadata": {
"_deployed_by_amba": true
}
"description": "_deployed_by_amba"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@
"principalType": "ServicePrincipal",
"roleDefinitionId": "[concat('/providers/Microsoft.Authorization/roleDefinitions/', variables('rbacContributor'))]",
"principalId": "[toLower(reference(concat('/providers/Microsoft.Authorization/policyAssignments/', variables('policyAssignmentNames').ambaServiceHealth), '2019-09-01', 'Full' ).identity.principalId)]",
"description": "_deployed_by_amba",
"metadata": {
"_deployed_by_amba": true
}
"description": "_deployed_by_amba"
}
}
],
Expand Down

0 comments on commit 0d16fff

Please sign in to comment.