-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update quickstart examples to use uniquename for apps and groups (#70)
- Loading branch information
Showing
4 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 = { | ||
|
@@ -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' | ||
|