-
Notifications
You must be signed in to change notification settings - Fork 756
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deprecation warning for microsoftGraph builtin extension (#15149)
Adding a deprecation warning for `microsoftGraph` builtin extension. Users should use dynamic types instead. ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/Azure/bicep/pull/15149)
- Loading branch information
Showing
8 changed files
with
43 additions
and
24 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
6 changes: 5 additions & 1 deletion
6
src/Bicep.Core.Samples/Files/user_submitted/extensibility/microsoftGraph/bicepconfig.json
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
{ | ||
"experimentalFeaturesEnabled": { | ||
"extensibility": true | ||
}, | ||
"extensions": { | ||
"microsoftGraphV1_0": "br:mcr.microsoft.com/bicep/extensions/microsoftgraph/v1.0:0.1.8-preview", | ||
"microsoftGraphBeta": "br:mcr.microsoft.com/bicep/extensions/microsoftgraph/beta:0.1.8-preview" | ||
} | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
src/Bicep.Core.Samples/Files/user_submitted/extensibility/microsoftGraph/main.bicep
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
2 changes: 1 addition & 1 deletion
2
src/Bicep.Core.Samples/Files/user_submitted/extensibility/microsoftGraph/main.existing.bicep
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
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
"_generator": { | ||
"name": "bicep", | ||
"version": "dev", | ||
"templateHash": "13653571511506928892" | ||
"templateHash": "15609368468620239727" | ||
} | ||
}, | ||
"parameters": { | ||
|
@@ -24,14 +24,18 @@ | |
} | ||
}, | ||
"imports": { | ||
"graph": { | ||
"MicrosoftGraph": { | ||
"provider": "MicrosoftGraph", | ||
"version": "1.0.0" | ||
"version": "0.1.8-preview" | ||
}, | ||
"MicrosoftGraphBeta": { | ||
"provider": "MicrosoftGraph", | ||
"version": "0.1.8-preview" | ||
} | ||
}, | ||
"resources": { | ||
"appV1::myTestFIC": { | ||
"import": "graph", | ||
"import": "MicrosoftGraph", | ||
"type": "Microsoft.Graph/applications/[email protected]", | ||
"properties": { | ||
"name": "[format('{0}/mytestfic', reference('appV1').uniqueName)]", | ||
|
@@ -47,7 +51,7 @@ | |
] | ||
}, | ||
"resourceApp": { | ||
"import": "graph", | ||
"import": "MicrosoftGraphBeta", | ||
"type": "Microsoft.Graph/applications@beta", | ||
"properties": { | ||
"uniqueName": "resourceApp", | ||
|
@@ -80,7 +84,7 @@ | |
} | ||
}, | ||
"resourceSp": { | ||
"import": "graph", | ||
"import": "MicrosoftGraphBeta", | ||
"type": "Microsoft.Graph/servicePrincipals@beta", | ||
"properties": { | ||
"appId": "[reference('resourceApp').appId]" | ||
|
@@ -90,15 +94,15 @@ | |
] | ||
}, | ||
"clientApp": { | ||
"import": "graph", | ||
"import": "MicrosoftGraphBeta", | ||
"type": "Microsoft.Graph/applications@beta", | ||
"properties": { | ||
"uniqueName": "clientApp", | ||
"displayName": "My Client App" | ||
} | ||
}, | ||
"clientSp": { | ||
"import": "graph", | ||
"import": "MicrosoftGraphBeta", | ||
"type": "Microsoft.Graph/servicePrincipals@beta", | ||
"properties": { | ||
"appId": "[reference('clientApp').appId]" | ||
|
@@ -108,7 +112,7 @@ | |
] | ||
}, | ||
"permissionGrant": { | ||
"import": "graph", | ||
"import": "MicrosoftGraphBeta", | ||
"type": "Microsoft.Graph/oauth2PermissionGrants@beta", | ||
"properties": { | ||
"clientId": "[reference('clientSp').id]", | ||
|
@@ -122,7 +126,7 @@ | |
] | ||
}, | ||
"appRoleAssignedTo": { | ||
"import": "graph", | ||
"import": "MicrosoftGraphBeta", | ||
"type": "Microsoft.Graph/appRoleAssignedTo@beta", | ||
"properties": { | ||
"appRoleId": "[parameters('appRoleId')]", | ||
|
@@ -135,7 +139,7 @@ | |
] | ||
}, | ||
"group": { | ||
"import": "graph", | ||
"import": "MicrosoftGraphBeta", | ||
"type": "Microsoft.Graph/groups@beta", | ||
"properties": { | ||
"uniqueName": "myGroup", | ||
|
@@ -155,12 +159,12 @@ | |
] | ||
}, | ||
"appV1": { | ||
"import": "graph", | ||
"import": "MicrosoftGraph", | ||
"type": "Microsoft.Graph/[email protected]", | ||
"properties": { | ||
"displayName": "TestAppV1", | ||
"uniqueName": "testAppV1" | ||
} | ||
} | ||
} | ||
} | ||
} |
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