1
+ {
2
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#" ,
3
+ "languageVersion" : " 2.1-experimental" ,
4
+ "contentVersion" : " 1.0.0.0" ,
5
+ "metadata" : {
6
+ "_EXPERIMENTAL_WARNING" : " This template uses ARM features that are experimental. Experimental features should be enabled for testing purposes only, as there are no guarantees about the quality or stability of these features. Do not enable these settings for any production usage, or your production environment may be subject to breaking." ,
7
+ "_EXPERIMENTAL_FEATURES_ENABLED" : [
8
+ " Extensibility"
9
+ ],
10
+ "_generator" : {
11
+ "name" : " bicep" ,
12
+ "version" : " 0.30.23.60470" ,
13
+ "templateHash" : " 2001503425732761903"
14
+ }
15
+ },
16
+ "variables" : {
17
+ "appRoleId" : " appRoleId" ,
18
+ "certKey" : " certKey"
19
+ },
20
+ "imports" : {
21
+ "MicrosoftGraph" : {
22
+ "provider" : " MicrosoftGraph" ,
23
+ "version" : " 0.1.8-preview"
24
+ }
25
+ },
26
+ "resources" : {
27
+ "resourceApp" : {
28
+ "import" : " MicrosoftGraph" ,
29
+ "type" :
" Microsoft.Graph/[email protected] " ,
30
+ "properties" : {
31
+ "uniqueName" : " ExampleResourceApp" ,
32
+ "displayName" : " Example Resource Application" ,
33
+ "appRoles" : [
34
+ {
35
+ "id" : " [variables('appRoleId')]" ,
36
+ "allowedMemberTypes" : [
37
+ " User" ,
38
+ " Application"
39
+ ],
40
+ "description" : " Read access to resource app data" ,
41
+ "displayName" : " ResourceAppData.Read.All" ,
42
+ "value" : " ResourceAppData.Read.All" ,
43
+ "isEnabled" : true
44
+ }
45
+ ]
46
+ }
47
+ },
48
+ "resourceSp" : {
49
+ "import" : " MicrosoftGraph" ,
50
+ "type" :
" Microsoft.Graph/[email protected] " ,
51
+ "properties" : {
52
+ "appId" : " [reference('resourceApp').appId]"
53
+ },
54
+ "dependsOn" : [
55
+ " resourceApp"
56
+ ]
57
+ },
58
+ "clientApp" : {
59
+ "import" : " MicrosoftGraph" ,
60
+ "type" :
" Microsoft.Graph/[email protected] " ,
61
+ "properties" : {
62
+ "uniqueName" : " ExampleClientApp" ,
63
+ "displayName" : " Example Client Application" ,
64
+ "keyCredentials" : [
65
+ {
66
+ "displayName" : " Example Client App Key Credential" ,
67
+ "usage" : " Verify" ,
68
+ "type" : " AsymmetricX509Cert" ,
69
+ "key" : " [variables('certKey')]"
70
+ }
71
+ ]
72
+ }
73
+ },
74
+ "clientSp" : {
75
+ "import" : " MicrosoftGraph" ,
76
+ "type" :
" Microsoft.Graph/[email protected] " ,
77
+ "properties" : {
78
+ "appId" : " [reference('clientApp').appId]"
79
+ },
80
+ "dependsOn" : [
81
+ " clientApp"
82
+ ]
83
+ }
84
+ }
85
+ }
0 commit comments