Skip to content

Commit

Permalink
Merge pull request #61 from Brunoga-MS:main
Browse files Browse the repository at this point in the history
Fixing VSCode error with policies.json file
  • Loading branch information
arjenhuitema authored Nov 1, 2023
2 parents 3d48bcb + 8b2a7cf commit b151c6a
Show file tree
Hide file tree
Showing 7 changed files with 197 additions and 197 deletions.
6 changes: 3 additions & 3 deletions patterns/alz/alzArm.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"policyAssignmentParametersLandingZone": "[union(parameters('policyAssignmentParametersCommon'), parameters('policyAssignmentParametersLandingZone'))]",
"policyAssignmentParametersManagement": "[union(parameters('policyAssignmentParametersCommon'), parameters('policyAssignmentParametersManagement'))]",
"policyAssignmentParametersServiceHealth": "[union(parameters('policyAssignmentParametersCommon'), parameters('policyAssignmentParametersServiceHealth'))]",

// Declaring all required deployment uri's used for deployments of composite ARM templates for ESLZ
"deploymentUris": {
"policyDefinitionsAMBA": "[uri(deployment().properties.templateLink.uri, 'policyDefinitions/policies.json')]",
Expand All @@ -162,7 +162,7 @@
"AMBAManagementInitiative": "[uri(deployment().properties.templateLink.uri, 'policyAssignments/DINE-ManagementAssignment.json')]",
"AMBAServiceHealthInitiative": "[uri(deployment().properties.templateLink.uri, 'policyAssignments/DINE-ServiceHealthAssignment.json')]"
},

// Declaring deterministic deployment names
"deploymentSuffix": "[concat('-', deployment().location, '-', guid(parameters('enterpriseScaleCompanyPrefix'), parameters('currentDateTimeUtcNow')))]",
"deploymentNames": {
Expand Down Expand Up @@ -193,7 +193,7 @@
{
// Deploying AMBA custom policies. Note: all policies should eventually be moved to built-in policies and codebase will be reduced
"type": "Microsoft.Resources/deployments",
"apiVersion": "2019-10-01",
"apiVersion": "2020-10-01",
"name": "[variables('deploymentNames').AMBAPolicyDeploymentName]",
"location": "[deployment().location]",
"scope": "[concat('Microsoft.Management/managementGroups/', parameters('enterpriseScaleCompanyPrefix'))]",
Expand Down
182 changes: 91 additions & 91 deletions patterns/alz/policyDefinitions/policies.json

Large diffs are not rendered by default.

100 changes: 50 additions & 50 deletions patterns/alz/policySetDefinitions/Deploy-Connectivity-Alerts.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions patterns/alz/policySetDefinitions/Deploy-Identity-Alerts.json
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@
"policyDefinitions": [
{
"policyDefinitionReferenceId": "ALZ_KVRequest",
"policyDefinitionId": "[concat('/providers/Microsoft.Management/managementGroups/',managementGroup().name, '/providers/Microsoft.Authorization/policyDefinitions/Deploy_KeyVault_Requests_Alert')]",
"policyDefinitionId": "[concat('/providers/Microsoft.Management/managementGroups/contoso', '/providers/Microsoft.Authorization/policyDefinitions/Deploy_KeyVault_Requests_Alert')]",
"parameters": {
"severity": {
"value": "[[parameters('KVRequestAlertSeverity')]"
Expand All @@ -370,7 +370,7 @@
},
{
"policyDefinitionReferenceId": "ALZ_KvAvailability",
"policyDefinitionId": "[concat('/providers/Microsoft.Management/managementGroups/',managementGroup().name, '/providers/Microsoft.Authorization/policyDefinitions/Deploy_KeyVault_Availability_Alert')]",
"policyDefinitionId": "[concat('/providers/Microsoft.Management/managementGroups/contoso', '/providers/Microsoft.Authorization/policyDefinitions/Deploy_KeyVault_Availability_Alert')]",
"parameters": {
"severity": {
"value": "[[parameters('KvAvailabilityAlertSeverity')]"
Expand All @@ -394,7 +394,7 @@
},
{
"policyDefinitionReferenceId": "ALZ_KvLatencyAvailability",
"policyDefinitionId": "[concat('/providers/Microsoft.Management/managementGroups/',managementGroup().name, '/providers/Microsoft.Authorization/policyDefinitions/Deploy_KeyVault_Latency_Alert')]",
"policyDefinitionId": "[concat('/providers/Microsoft.Management/managementGroups/contoso', '/providers/Microsoft.Authorization/policyDefinitions/Deploy_KeyVault_Latency_Alert')]",
"parameters": {
"severity": {
"value": "[[parameters('KvLatencyAvailabilityAlertSeverity')]"
Expand All @@ -418,7 +418,7 @@
},
{
"policyDefinitionReferenceId": "ALZ_KVCapacity",
"policyDefinitionId": "[concat('/providers/Microsoft.Management/managementGroups/',managementGroup().name, '/providers/Microsoft.Authorization/policyDefinitions/Deploy_KeyVault_Capacity_Alert')]",
"policyDefinitionId": "[concat('/providers/Microsoft.Management/managementGroups/contoso', '/providers/Microsoft.Authorization/policyDefinitions/Deploy_KeyVault_Capacity_Alert')]",
"parameters": {
"severity": {
"value": "[[parameters('KVCapacityAlertSeverity')]"
Expand All @@ -442,7 +442,7 @@
},
{
"policyDefinitionReferenceId": "ALZ_activityKVDelete",
"policyDefinitionId": "[concat('/providers/Microsoft.Management/managementGroups/',managementGroup().name, '/providers/Microsoft.Authorization/policyDefinitions/Deploy_activitylog_KeyVault_Delete')]",
"policyDefinitionId": "[concat('/providers/Microsoft.Management/managementGroups/contoso', '/providers/Microsoft.Authorization/policyDefinitions/Deploy_activitylog_KeyVault_Delete')]",
"parameters": {
"enabled": {
"value": "[[parameters('activityKVDeleteAlertState')]"
Expand Down
Loading

0 comments on commit b151c6a

Please sign in to comment.