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 577704a commit c5d2903
Showing 1 changed file with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,27 +52,27 @@ var builtInRoleNames = {

var roleDefinitionIdVar = (contains(builtInRoleNames, roleDefinitionIdOrName) ? builtInRoleNames[roleDefinitionIdOrName] : roleDefinitionIdOrName)

// resource roleAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
// name: guid(subscriptionId, resourceGroupName, roleDefinitionIdVar, principalId)
// properties: {
// roleDefinitionId: roleDefinitionIdVar
// principalId: principalId
// description: !empty(description) ? description : null
// principalType: !empty(principalType) ? any(principalType) : null
// delegatedManagedIdentityResourceId: !empty(delegatedManagedIdentityResourceId) ? delegatedManagedIdentityResourceId : null
// conditionVersion: !empty(conditionVersion) && !empty(condition) ? conditionVersion : null
// condition: !empty(condition) ? condition : null
// }
// }

// @sys.description('The GUID of the Role Assignment.')
// output name string = roleAssignment.name

// @sys.description('The resource ID of the Role Assignment.')
// output resourceId string = roleAssignment.id

// @sys.description('The name of the resource group the role assignment was applied at.')
// output resourceGroupName string = resourceGroup().name

// @sys.description('The scope this Role Assignment applies to.')
// output scope string = resourceGroup().id
resource roleAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(subscriptionId, resourceGroupName, roleDefinitionIdVar, principalId)
properties: {
roleDefinitionId: roleDefinitionIdVar
principalId: principalId
description: !empty(description) ? description : null
principalType: !empty(principalType) ? any(principalType) : null
delegatedManagedIdentityResourceId: !empty(delegatedManagedIdentityResourceId) ? delegatedManagedIdentityResourceId : null
conditionVersion: !empty(conditionVersion) && !empty(condition) ? conditionVersion : null
condition: !empty(condition) ? condition : null
}
}

@sys.description('The GUID of the Role Assignment.')
output name string = roleAssignment.name

@sys.description('The resource ID of the Role Assignment.')
output resourceId string = roleAssignment.id

@sys.description('The name of the resource group the role assignment was applied at.')
output resourceGroupName string = resourceGroup().name

@sys.description('The scope this Role Assignment applies to.')
output scope string = resourceGroup().id

0 comments on commit c5d2903

Please sign in to comment.