Skip to content

Commit

Permalink
testing location policy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jwaltireland committed Oct 24, 2024
1 parent abe7a6b commit 4434161
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions workload/bicep/modules/identity/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,17 @@ module startVMonConnectRoleAssignCompute '../../../../avm/1.0.0/ptn/authorizatio
}]

// Scaling plan role assignments
module scalingPlanRoleAssignCompute '../../../../avm/1.0.0/ptn/authorization/role-assignment/modules/resource-group.bicep' = [for computeAndServiceObjectsRg in computeAndServiceObjectsRgs: if (deployScalingPlan && !empty(avdEnterpriseObjectId)) {
name: 'ScalingPlan-RolAssign-${computeAndServiceObjectsRg.name}-${time}'
scope: resourceGroup('${subscriptionId}', '${computeAndServiceObjectsRg.rgName}')
params: {
roleDefinitionIdOrName: '/subscriptions/${subscriptionId}/providers/Microsoft.Authorization/roleDefinitions/${varDesktopVirtualizationPowerOnOffContributorRole.id}'
principalId: avdEnterpriseObjectId
resourceGroupName: computeAndServiceObjectsRg.rgName
subscriptionId: subscriptionId
principalType: 'ServicePrincipal'
}
}]
// module scalingPlanRoleAssignCompute '../../../../avm/1.0.0/ptn/authorization/role-assignment/modules/resource-group.bicep' = [for computeAndServiceObjectsRg in computeAndServiceObjectsRgs: if (deployScalingPlan && !empty(avdEnterpriseObjectId)) {
// name: 'ScalingPlan-RolAssign-${computeAndServiceObjectsRg.name}-${time}'
// scope: resourceGroup('${subscriptionId}', '${computeAndServiceObjectsRg.rgName}')
// params: {
// roleDefinitionIdOrName: '/subscriptions/${subscriptionId}/providers/Microsoft.Authorization/roleDefinitions/${varDesktopVirtualizationPowerOnOffContributorRole.id}'
// principalId: avdEnterpriseObjectId
// resourceGroupName: computeAndServiceObjectsRg.rgName
// subscriptionId: subscriptionId
// principalType: 'ServicePrincipal'
// }
// }]

// // Storage role assignments
// module storageContributorRoleAssign '../../../../avm/1.0.0/ptn/authorization/role-assignment/modules/resource-group.bicep' = [for storageRoleAssignment in storageRoleAssignments: if (createStorageDeployment) {
Expand Down

0 comments on commit 4434161

Please sign in to comment.