From 0d16fff699d04385810cf00dfeeb5aaaa653cd65 Mon Sep 17 00:00:00 2001 From: Brunoga-MS Date: Wed, 27 Sep 2023 16:23:10 +0200 Subject: [PATCH] Removing metadata from policy assignments --- .../alz/policyAssignments/DINE-ConnectivityAssignment.json | 5 +---- patterns/alz/policyAssignments/DINE-IdentityAssignment.json | 5 +---- .../alz/policyAssignments/DINE-LandingZoneAssignment.json | 5 +---- .../alz/policyAssignments/DINE-ManagementAssignment.json | 5 +---- .../alz/policyAssignments/DINE-ServiceHealthAssignment.json | 5 +---- 5 files changed, 5 insertions(+), 20 deletions(-) diff --git a/patterns/alz/policyAssignments/DINE-ConnectivityAssignment.json b/patterns/alz/policyAssignments/DINE-ConnectivityAssignment.json index 1ebe54179..10ddcde9f 100644 --- a/patterns/alz/policyAssignments/DINE-ConnectivityAssignment.json +++ b/patterns/alz/policyAssignments/DINE-ConnectivityAssignment.json @@ -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" } } ], diff --git a/patterns/alz/policyAssignments/DINE-IdentityAssignment.json b/patterns/alz/policyAssignments/DINE-IdentityAssignment.json index 24bfcbaf3..7a82cb368 100644 --- a/patterns/alz/policyAssignments/DINE-IdentityAssignment.json +++ b/patterns/alz/policyAssignments/DINE-IdentityAssignment.json @@ -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" } } ], diff --git a/patterns/alz/policyAssignments/DINE-LandingZoneAssignment.json b/patterns/alz/policyAssignments/DINE-LandingZoneAssignment.json index e7d4d040a..80f0fe588 100644 --- a/patterns/alz/policyAssignments/DINE-LandingZoneAssignment.json +++ b/patterns/alz/policyAssignments/DINE-LandingZoneAssignment.json @@ -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" } } ], diff --git a/patterns/alz/policyAssignments/DINE-ManagementAssignment.json b/patterns/alz/policyAssignments/DINE-ManagementAssignment.json index 6053983c0..8c6d323ca 100644 --- a/patterns/alz/policyAssignments/DINE-ManagementAssignment.json +++ b/patterns/alz/policyAssignments/DINE-ManagementAssignment.json @@ -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" } } ], diff --git a/patterns/alz/policyAssignments/DINE-ServiceHealthAssignment.json b/patterns/alz/policyAssignments/DINE-ServiceHealthAssignment.json index b25fef770..7eac98b3d 100644 --- a/patterns/alz/policyAssignments/DINE-ServiceHealthAssignment.json +++ b/patterns/alz/policyAssignments/DINE-ServiceHealthAssignment.json @@ -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" } } ],