Additional Bicep samples on GitHub
The following samples on GitHub demonstrate different scenarios for deploying various Microsoft Graph Bicep types and configurations.
Samples from the msgraph-bicep-types repo
You can also contribute to this collection of samples. For more information, see Contributing to the Microsoft Graph Bicep Extension.
Sample | Sample summary |
---|---|
Create client and resource apps | |
Create a client app with an X509 certificate from Key Vault | |
Configure a client app with OAuth2.0 scopes to call Microsoft Graph | Create a client application and either: |
Configure GitHub Actions to access Azure resources, using zero secrets | Enable a GitHub Action to log into Microsoft Entra, build and deploy a web app into an Azure App Service, without using any secrets. |
Configure an app with a user-assigned managed identity as a credential | Enable an app running in Azure to call Microsoft Graph API, without using any secrets |
Grant a client app access to a resource app | Create an app role assignment for the client app to the resource app that were created in Create client and resource apps |
Enable a client service to read from Blob storage, using a security group | Configure three user-assigned managed identities to read from a Blob Storage account via a security group: |
Configure a security group's user members, using user principal names | |
Create a group with members and owners |
Samples from the Azure-Samples repo
These samples represent more complete end-to-end samples that integrate the use of Microsoft Graph Bicep types into Azure infrastructure deployment scenarios.
Sample | Sample summary |
---|---|
Built-in Auth for Azure App Service with Microsoft Entra ID | Provision an Azure App Service app with the built-in authentication feature and a Microsoft Entra ID identity provider. The Bicep files use the Microsoft Graph Bicep extension to create the Entra application registration using managed identity with Federated Identity Credentials, so that no client secrets or certificates are necessary. |
Built-in Auth for Azure Container Apps with Microsoft Entra ID | Provision an Azure Container App with the built-in authentication feature and a Microsoft Entra ID identity provider. The Bicep files use the Microsoft Graph Bicep extension to create the Entra application registration using managed identity with Federated Identity Credentials, so that no client secrets or certificates are necessary. |