Skip to content
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
6 changes: 3 additions & 3 deletions arm/Microsoft.Authorization/policyAssignments/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ param notScopes array = []
param location string = deployment().location

module policyAssignment_mg '.bicep/nested_policyAssignments_mg.bicep' = if (!empty(managementGroupId) && empty(subscriptionId) && empty(resourceGroupName)) {
name: '${uniqueString(deployment().name, location)}-policyAssignment-mg-Module'
name: '${uniqueString(deployment().name, location)}-PolicyAssignment-MG-Module'
scope: managementGroup(managementGroupId)
params: {
name: name
Expand All @@ -75,7 +75,7 @@ module policyAssignment_mg '.bicep/nested_policyAssignments_mg.bicep' = if (!emp
}

module policyAssignment_sub '.bicep/nested_policyAssignments_sub.bicep' = if (empty(managementGroupId) && !empty(subscriptionId) && empty(resourceGroupName)) {
name: '${uniqueString(deployment().name, location)}-policyAssignment-sub-Module'
name: '${uniqueString(deployment().name, location)}-PolicyAssignment-Sub-Module'
scope: subscription(subscriptionId)
params: {
name: name
Expand All @@ -95,7 +95,7 @@ module policyAssignment_sub '.bicep/nested_policyAssignments_sub.bicep' = if (em
}

module policyAssignment_rg '.bicep/nested_policyAssignments_rg.bicep' = if (empty(managementGroupId) && !empty(resourceGroupName) && !empty(subscriptionId)) {
name: '${uniqueString(deployment().name, location)}-policyAssignment-rg-Module'
name: '${uniqueString(deployment().name, location)}-PolicyAssignment-RG-Module'
scope: resourceGroup(subscriptionId, resourceGroupName)
params: {
name: name
Expand Down
4 changes: 2 additions & 2 deletions arm/Microsoft.Authorization/policyDefinitions/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ param subscriptionId string = ''
param location string = deployment().location

module policyDefinition_mg '.bicep/nested_policyDefinitions_mg.bicep' = if (empty(subscriptionId) && !empty(managementGroupId)) {
name: '${uniqueString(deployment().name, location)}-policyDefinition-mg-Module'
name: '${uniqueString(deployment().name, location)}-PolicyDefinition-MG-Module'
scope: managementGroup(managementGroupId)
params: {
name: name
Expand All @@ -54,7 +54,7 @@ module policyDefinition_mg '.bicep/nested_policyDefinitions_mg.bicep' = if (empt
}

module policyDefinition_sub '.bicep/nested_policyDefinitions_sub.bicep' = if (empty(managementGroupId) && !empty(subscriptionId)) {
name: '${uniqueString(deployment().name, location)}-policyDefinition-sub-Module'
name: '${uniqueString(deployment().name, location)}-PolicyDefinition-Sub-Module'
scope: subscription(subscriptionId)
params: {
name: name
Expand Down
6 changes: 3 additions & 3 deletions arm/Microsoft.Authorization/policyExemptions/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ param resourceGroupName string = ''
param location string = deployment().location

module policyExemption_mg '.bicep/nested_policyExemptions_mg.bicep' = if (!empty(managementGroupId) && empty(subscriptionId) && empty(resourceGroupName)) {
name: '${uniqueString(deployment().name, location)}-policyExemption-mg-Module'
name: '${uniqueString(deployment().name, location)}-PolicyExemption-MG-Module'
scope: managementGroup(managementGroupId)
params: {
name: name
Expand All @@ -58,7 +58,7 @@ module policyExemption_mg '.bicep/nested_policyExemptions_mg.bicep' = if (!empty
}

module policyExemption_sub '.bicep/nested_policyExemptions_sub.bicep' = if (empty(managementGroupId) && !empty(subscriptionId) && empty(resourceGroupName)) {
name: '${uniqueString(deployment().name, location)}-policyExemption-sub-Module'
name: '${uniqueString(deployment().name, location)}-PolicyExemption-Sub-Module'
scope: subscription(subscriptionId)
params: {
name: name
Expand All @@ -74,7 +74,7 @@ module policyExemption_sub '.bicep/nested_policyExemptions_sub.bicep' = if (empt
}

module policyExemption_rg '.bicep/nested_policyExemptions_rg.bicep' = if (empty(managementGroupId) && !empty(resourceGroupName) && !empty(subscriptionId)) {
name: '${uniqueString(deployment().name, location)}-policyExemption-rg-Module'
name: '${uniqueString(deployment().name, location)}-PolicyExemption-RG-Module'
scope: resourceGroup(subscriptionId, resourceGroupName)
params: {
name: name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ param parameters object = {}
param location string = deployment().location

module policySetDefinition_mg '.bicep/nested_policySetDefinition_mg.bicep' = if (empty(subscriptionId) && !empty(managementGroupId)) {
name: '${uniqueString(deployment().name, location)}-policySetDefinition-mg-Module'
name: '${uniqueString(deployment().name, location)}-PolicySetDefinition-MG-Module'
scope: managementGroup(managementGroupId)
params: {
name: name
Expand All @@ -47,7 +47,7 @@ module policySetDefinition_mg '.bicep/nested_policySetDefinition_mg.bicep' = if
}

module policySetDefinition_sub '.bicep/nested_policySetDefinition_sub.bicep' = if (empty(managementGroupId) && !empty(subscriptionId)) {
name: '${uniqueString(deployment().name, location)}-policySetDefinition-sub-Module'
name: '${uniqueString(deployment().name, location)}-PolicySetDefinition-Sub-Module'
scope: subscription(subscriptionId)
params: {
name: name
Expand Down
6 changes: 3 additions & 3 deletions arm/Microsoft.Authorization/roleAssignments/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ param conditionVersion string = '2.0'
param principalType string = 'ServicePrincipal'

module roleAssignment_mg '.bicep/nested_rbac_mg.bicep' = if (!empty(managementGroupId) && empty(subscriptionId) && empty(resourceGroupName)) {
name: '${uniqueString(deployment().name, location)}-roleAssignment-mg-Module'
name: '${uniqueString(deployment().name, location)}-RoleAssignment-MG-Module'
scope: managementGroup(managementGroupId)
params: {
roleDefinitionIdOrName: roleDefinitionIdOrName
Expand All @@ -52,7 +52,7 @@ module roleAssignment_mg '.bicep/nested_rbac_mg.bicep' = if (!empty(managementGr
}

module roleAssignment_sub '.bicep/nested_rbac_sub.bicep' = if (empty(managementGroupId) && !empty(subscriptionId) && empty(resourceGroupName)) {
name: '${uniqueString(deployment().name, location)}-roleAssignment-sub-Module'
name: '${uniqueString(deployment().name, location)}-RoleAssignment-Sub-Module'
scope: subscription(subscriptionId)
params: {
roleDefinitionIdOrName: roleDefinitionIdOrName
Expand All @@ -67,7 +67,7 @@ module roleAssignment_sub '.bicep/nested_rbac_sub.bicep' = if (empty(managementG
}

module roleAssignment_rg '.bicep/nested_rbac_rg.bicep' = if (empty(managementGroupId) && !empty(resourceGroupName) && !empty(subscriptionId)) {
name: '${uniqueString(deployment().name, location)}-roleAssignment-rg-Module'
name: '${uniqueString(deployment().name, location)}-RoleAssignment-RG-Module'
scope: resourceGroup(subscriptionId, resourceGroupName)
params: {
roleDefinitionIdOrName: roleDefinitionIdOrName
Expand Down
6 changes: 3 additions & 3 deletions arm/Microsoft.Authorization/roleDefinitions/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ param location string = deployment().location
param assignableScopes array = []

module roleDefinition_mg '.bicep/nested_roleDefinitions_mg.bicep' = if (!empty(managementGroupId) && empty(subscriptionId) && empty(resourceGroupName)) {
name: '${uniqueString(deployment().name, location)}-roleDefinition-mg-Module'
name: '${uniqueString(deployment().name, location)}-RoleDefinition-MG-Module'
scope: managementGroup(managementGroupId)
params: {
roleName: roleName
Expand All @@ -47,7 +47,7 @@ module roleDefinition_mg '.bicep/nested_roleDefinitions_mg.bicep' = if (!empty(m
}

module roleDefinition_sub '.bicep/nested_roleDefinitions_sub.bicep' = if (empty(managementGroupId) && !empty(subscriptionId) && empty(resourceGroupName)) {
name: '${uniqueString(deployment().name, location)}-roleDefinition-sub-Module'
name: '${uniqueString(deployment().name, location)}-RoleDefinition-Sub-Module'
scope: subscription(subscriptionId)
params: {
roleName: roleName
Expand All @@ -62,7 +62,7 @@ module roleDefinition_sub '.bicep/nested_roleDefinitions_sub.bicep' = if (empty(
}

module roleDefinition_rg '.bicep/nested_roleDefinitions_rg.bicep' = if (empty(managementGroupId) && !empty(resourceGroupName) && !empty(subscriptionId)) {
name: '${uniqueString(deployment().name, location)}-roleDefinition-rg-Module'
name: '${uniqueString(deployment().name, location)}-RoleDefinition-RG-Module'
scope: resourceGroup(subscriptionId, resourceGroupName)
params: {
roleName: roleName
Expand Down