-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EES-4758 Adding pipeline configuration to provision resources
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,6 @@ | |
name: supportbot | ||
metadata: | ||
template: [email protected] | ||
pipeline: | ||
provider: azdo | ||
services: | ||
|