-
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.
Merge pull request #58 from microsoftgraph/dkershaw10-doc-updates
Minor changes to the docs
- Loading branch information
Showing
3 changed files
with
25 additions
and
11 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -7,7 +7,9 @@ To use the private preview you'll need to install [Bicep tools](https://learn.mi | |
If you already have the Bicep extension for VS Code (or Visual Studio) make sure that you have the latest version (v0.21.1 or later). | ||
Earlier versions do not have the Microsoft Graph Bicep Extension. | ||
|
||
## Creating a Bicep template | ||
If you are new to [Bicep](https://learn.microsoft.com/azure/azure-resource-manager/bicep/overview?tabs=bicep), we strongly recommend that you start by getting familiar with Bicep by trying out the [Bicep quickstarts](https://learn.microsoft.com//azure/azure-resource-manager/bicep/quickstart-create-bicep-use-visual-studio-code?tabs=CLI) and [Bicep tutorials](https://learn.microsoft.com/azure/azure-resource-manager/bicep/learn-bicep). | ||
|
||
## Creating a Bicep template with Microsoft Graph Bicep types | ||
|
||
To get the benefit of intellisense and auto-complete for the Microsoft Graph Bicep types, you need to enable some experimental features in the Bicep config. Follow the steps in this [Bicep configuration topic](https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-config), to create a Bicep config file, and add: | ||
|
||
|
@@ -24,19 +26,23 @@ When you create a Bicep template, add the following statement, to make Microsoft | |
import '[email protected]' | ||
``` | ||
|
||
Now, when creating a Bicep resource, the available Microsoft.Graph resource types will show up: | ||
Now, when creating a Bicep resource, the available Microsoft.Graph resource types will show up. | ||
|
||
![image](./VS%20code%20graph%20types%20in%20bicep.jpg) | ||
|
||
* [applications](../generated/microsoftgraph/microsoft.graph/beta/types.md#resource-microsoftgraphapplicationsbeta) | ||
* [servicePrincipals](../generated/microsoftgraph/microsoft.graph/beta/types.md#resource-microsoftgraphserviceprincipalsbeta) | ||
* [groups](../generated/microsoftgraph/microsoft.graph/beta/types.md#resource-microsoftgraphgroupsbeta) | ||
* [appRoleAssignedTo](../generated/microsoftgraph/microsoft.graph/beta/types.md#resource-microsoftgraphapproleassignedtobeta) | ||
* [oauth2PermissionGrants](../generated/microsoftgraph/microsoft.graph/beta/types.md#resource-microsoftgraphoauth2permissiongrantsbeta) | ||
| Bicep type definitions | Microsoft Graph API (beta) reference | | ||
|--------------|-----------| | ||
| [applications](../generated/microsoftgraph/microsoft.graph/beta/types.md#resource-microsoftgraphapplicationsbeta) | [application resource](https://learn.microsoft.com/graph/api/resources/application?view=graph-rest-beta) | | ||
| [servicePrincipals](../generated/microsoftgraph/microsoft.graph/beta/types.md#resource-microsoftgraphserviceprincipalsbeta) | [servicePrincipal resource](https://learn.microsoft.com/graph/api/resources/serviceprincipal?view=graph-rest-beta) | | ||
| [groups](../generated/microsoftgraph/microsoft.graph/beta/types.md#resource-microsoftgraphgroupsbeta) | [group resource](https://learn.microsoft.com/graph/api/resources/group?view=graph-rest-beta) | | ||
| [appRoleAssignedTo](../generated/microsoftgraph/microsoft.graph/beta/types.md#resource-microsoftgraphapproleassignedtobeta) | [appRoleAssignment resource](https://learn.microsoft.com/graph/api/resources/approleassignment?view=graph-rest-beta) | | ||
| [oauth2PermissionGrants](../generated/microsoftgraph/microsoft.graph/beta/types.md#resource-microsoftgraphoauth2permissiongrantsbeta) | [oauth2PermissionGrant resource](https://learn.microsoft.com/graph/api/resources/oauth2permissiongrant?view=graph-rest-beta) | | ||
|
||
## Deploying Bicep templates | ||
|
||
Bicep templates can be deployed using Azure CLI or PowerShell. | ||
Bicep templates can be deployed using [Azure CLI](https://learn.microsoft.com/cli/azure/install-azure-cli) or [Azure PowerShell](https://learn.microsoft.com/powershell/azure/install-azure-powershell). | ||
|
||
Deployment will only work for tenants that have been enrolled to the private preview. | ||
> **NOTE**: Deployment will only work for tenants that have been enrolled to the private preview. | ||
## Next steps | ||
|
||
|
@@ -47,4 +53,4 @@ We've created some quick-start templates to get you started. | |
3. [Create a security group with owners and members](../quickstart-templates/security-group-create-with-owners-and-members/) | ||
4. [Assign an Azure role to a security group](../quickstart-templates/security-group-assign-azure-role/) | ||
|
||
Feel free to contribute and share your own samples too! | ||
Feel free to contribute and share your own samples too, by creating some PRs for template examples! |
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