Skip to content

Commit

Permalink
EES-4758 Adding pipeline configuration to provision resources
Browse files Browse the repository at this point in the history
  • Loading branch information
benoutram committed Dec 18, 2023
1 parent 8572c25 commit 8c9ad4e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .azdo/pipelines/azure-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 'Support bot CI/CD pipeline'

# Run when commits are pushed to mainline branch
trigger:
- main

# Azure Pipelines workflow to deploy to Azure using azd
# To configure required secrets for connecting to Azure, simply run `azd pipeline config --provider azdo`
# Task "Install azd" needs to install setup-azd extension for azdo - https://marketplace.visualstudio.com/items?itemName=ms-azuretools.azd

pool:
vmImage: ubuntu-latest

container: mcr.microsoft.com/azure-dev-cli-apps:latest

steps:
- task: setup-azd@0
displayName: Install azd

- pwsh: |
azd config set auth.useAzCliAuth "true"
displayName: Configure AZD to use AZ CLI authentication
- task: AzureCLI@2
displayName: Provision infrastructure
inputs:
azureSubscription: $(SERVICE_CONNECTION_NAME) # name of the Azure Resource Manager service connection
scriptType: bash
scriptLocation: inlineScript
inlineScript: |
azd provision --no-prompt
env:
AZURE_SUBSCRIPTION_ID: $(AZURE_SUBSCRIPTION_ID)
AZURE_ENV_NAME: $(AZURE_ENV_NAME)
AZURE_LOCATION: $(AZURE_LOCATION)
3 changes: 2 additions & 1 deletion azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
name: supportbot
metadata:
template: [email protected]
pipeline:
provider: azdo
services:

0 comments on commit 8c9ad4e

Please sign in to comment.