Skip to content

Commit

Permalink
Update quickstart examples to use uniquename for apps and groups (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-dou authored Feb 1, 2024
1 parent bf06b68 commit 6f3bad0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ param appRoleId string
param certKey string

resource resourceApp 'Microsoft.Graph/applications@beta' = {
name: 'ExampleResourceApp'
uniqueName: 'ExampleResourceApp'
displayName: 'Example Resource Application'
appRoles: [
{
Expand All @@ -27,7 +27,7 @@ resource resourceSp 'Microsoft.Graph/servicePrincipals@beta' = {
}

resource clientApp 'Microsoft.Graph/applications@beta' = {
name: 'ExampleClientApp'
uniqueName: 'ExampleClientApp'
displayName: 'Example Client Application'
keyCredentials: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ provider '[email protected]'
param appRoleId string

resource resourceApp 'Microsoft.Graph/applications@beta' existing = {
name: 'ExampleResourceApp'
uniqueName: 'ExampleResourceApp'
}

resource resourceSp 'Microsoft.Graph/servicePrincipals@beta' existing = {
appId: resourceApp.appId
}

resource clientApp 'Microsoft.Graph/applications@beta' existing = {
name: 'ExampleClientApp'
uniqueName: 'ExampleClientApp'
}

resource clientSp 'Microsoft.Graph/servicePrincipals@beta' existing = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ provider '[email protected]'
param readerRoleDefinitionID string = 'acdd72a7-3385-48ef-bd42-f606fba81ae7'

resource group 'Microsoft.Graph/groups@beta' existing = {
name: 'ExampleGroup'
uniqueName: 'ExampleGroup'
}

var roleAssignmentName = guid('ExampleGroup', readerRoleDefinitionID, resourceGroup().id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ provider '[email protected]'
param location string = resourceGroup().location

resource resourceApp 'Microsoft.Graph/applications@beta' existing = {
name: 'ExampleResourceApp'
uniqueName: 'ExampleResourceApp'
}

resource resourceSp 'Microsoft.Graph/servicePrincipals@beta' existing = {
Expand All @@ -17,7 +17,7 @@ resource managedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-
}

resource group 'Microsoft.Graph/groups@beta' = {
name: 'ExampleGroup'
uniqueName: 'ExampleGroup'
displayName: 'Example Group'
mailEnabled: false
mailNickname: 'exampleGroup'
Expand Down

0 comments on commit 6f3bad0

Please sign in to comment.