/baseline-environment-on-azure-bicep

Baseline Environment on Azure in Bicep is a set of reference Bicep template

Primary LanguageBicepMIT LicenseMIT

infra deploy

baseline-environment-on-azure-bicep

Prerequisites

Usage

See Makefile for details.

cd infra; make help
build                          build a bicep file
ci-test                        ci test
create-resource-group          create resource group
delete-resource-group          delete resource group
deploy                         deploy resources
deployment-create              start a deployment at resource group
deployment-what-if             execute a deployment What-If operation at resource group scope
destroy                        destroy resources
format                         format codes
info                           show information
install-deps-dev               install dependencies for development
lint                           lint codes
test                           test codes

Scenarios

Scenario Overview
workshop-azure-iot Workshop for Azure IoT scenario
workshop-azure-openai Workshop for Azure OpenAI Service

Use GitHub Actions to connect to Azure

To configure the federated credential by following the steps below:

  1. Install GitHub CLI and authenticate with GitHub.
  2. Run the following commands to create a new service principal and configure OpenID Connect.
# Create a new service principal
bash scripts/create-service-principal.sh

# Configure GitHub secrets
bash scripts/configure-github-secrets.sh

# Add permissions to the service principal
bash scripts/add-permissions-to-service-principal.sh