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 14, 2023
1 parent 8572c25 commit 3b1ed93
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .azdo/pipelines/azure-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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

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

- pwsh: |
$info = $Env:AZURE_CREDENTIALS | ConvertFrom-Json -AsHashtable;
azd auth login `
--client-id "$($info.clientId)" `
--client-secret "$($info.clientSecret)" `
--tenant-id "$($info.tenantId)"
displayName: azd login
env:
AZURE_CREDENTIALS: $(AZURE_CREDENTIALS)
- pwsh: |
azd provision --no-prompt
displayName: Provision Infrastructure
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 3b1ed93

Please sign in to comment.