Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

fix powershell deployment #158

Merged
merged 1 commit into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ resource resPolicyAssignment 'Microsoft.Authorization/policyAssignments@2020-09-
nonComplianceMessages: parPolicyAssignmentNonComplianceMessages
notScopes: parPolicyAssignmentNotScopes
enforcementMode: parPolicyAssignmentEnforcementMode
metadata: {_deployed_by_alz_monitor: true}
metadata: {
_deployed_by_alz_monitor: true
}
}
identity: {
type: varPolicyIdentity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ param parAlertState string = 'true'

param parMonitorDisable string = 'MonitorDisable'



module ActivityLogLAWorkspaceGenKeyAlert '../../arm/Microsoft.Authorization/policyDefinitions/managementGroup/deploy.bicep' = {
name: '${uniqueString(deployment().name)}-shi-policyDefinitions'
params: {
Expand Down Expand Up @@ -68,14 +66,12 @@ module ActivityLogLAWorkspaceGenKeyAlert '../../arm/Microsoft.Authorization/poli
}
defaultValue: parResourceGroupLocation
}

MonitorDisable: {
type: 'String'
metadata: {
displayName: 'Effect'
description: 'Tag name to disable monitoring on resource. Set to true if monitoring should be disabled'
}

defaultValue: parMonitorDisable
}
}
Expand Down Expand Up @@ -166,7 +162,8 @@ module ActivityLogLAWorkspaceGenKeyAlert '../../arm/Microsoft.Authorization/poli
}
enabled: {
type: 'string'
} }
}
}
variables: {}
resources: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,14 @@ module ResourceHealthUnhealthyAlert '../../arm/Microsoft.Authorization/policyDef
}
defaultValue: parResourceGroupLocation
}

MonitorDisable: {
type: 'String'
metadata: {
displayName: 'Effect'
description: 'Tag name to disable monitoring on subscripton level alerts. Set to true if monitoring should be disabled'
}

defaultValue: parMonitorDisable
}


}
policyRule: {
if: {
Expand Down Expand Up @@ -251,7 +247,8 @@ module ResourceHealthUnhealthyAlert '../../arm/Microsoft.Authorization/policyDef
alertResourceGroupName: {
value: '[parameters(\'alertResourceGroupName\')]'
}
} }
}
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ module ServiceHealthIncidentAlert '../../arm/Microsoft.Authorization/policyDefin
displayName: 'Effect'
description: 'Tag name to disable monitoring Subscription level alerts. Set to true if monitoring should be disabled'
}

defaultValue: parMonitorDisable
}
}
Expand Down Expand Up @@ -239,7 +238,8 @@ module ServiceHealthIncidentAlert '../../arm/Microsoft.Authorization/policyDefin
alertResourceGroupName: {
value: '[parameters(\'alertResourceGroupName\')]'
}
} }
}
}
}
]
}
Expand Down