-
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
35 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,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) |
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: | ||
|