This repository contains code examples and projects referenced in blog posts.
These examples are designed for developers deploying Azure resources using the Azure CLI and Bicep. Each example is categorized under relevant topics within the repository.
- Visual Studio Code
- Azure CLI
Follow these steps to deploy solutions to Azure:
-
Open a terminal
-
Log in using your Microsoft Entra ID credentials:
az login
-
Navigate to the directory:
cd infra/bicep/stacks/{stack}
-
Verify the changes using the what-if command:
az deployment sub what-if --subscription {subscription} --location {location} --template-file main.bicep --parameters {env}.bicepparam
-
Deploy the stack:
az stack sub create --name {stack} --subscription {subscription} --location {location} --deny-settings-mode none --action-on-unmanage detachAll --template-file main.bicep --parameters {env}.bicepparam
Replace placeholders (e.g., {stack}, {subscription}, {location}, {env}) with your actual parameters.
Deployment stacks is not supported in Microsoft Graph Bicep. Thus to deploy fabric-mirroring
stack we need to use az deployment command.
az deployment sub create --subscription {subscription} --location {location} --template-file main.bicep --parameters {env}.bicepparam
This project is licensed under the MIT License.