The goal of this exercise is to create an Azure DevOps Pipeline workflow to deploy the resources created in the previous challenge using the main.bicep file.
-
Set up Azure DevOps Pipeline:
- Create a new pipeline in Azure DevOps from Visual Studio Code.
- Use GitHub Copilot to assist in creating the pipeline file.
- Configure the pipeline to use the repository containing your
main.bicepfile.
-
Define Pipeline Stages:
- Build Stage:
- Validate the
main.bicepfile using theaz bicep lint --file main.bicepcommand.
- Validate the
- Deploy Stage:
- Deploy the resources defined in the
main.bicepfile using theaz deployment group createcommand.
- Deploy the resources defined in the
- Build Stage:
-
Configure Service Connection:
- Ensure you have a service connection set up in Azure DevOps to authenticate and deploy resources to your Azure subscription.
-
Add Pipeline Variables:
- Define necessary pipeline variables for parameters such as resource group name, location, and any other environment-specific values.
-
Run the Pipeline:
- Trigger the pipeline and ensure it runs successfully, deploying the resources to Azure.
- The Azure DevOps Pipeline workflow should run successfully.
- The workflow should be structured and run without errors.
- Use GitHub Copilot to streamline the development process.
Once you've completed the challenges, you may like to review the additional resources to learn more about GitHub Copilot and how it can help you in your day to day work.