New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Azure DevOps Task(setup-azd) to todo templates #2642
Comments
setupt-azd task for azdo is not a built-in extension. If we update our todo-templates, we need to add a note to the readme files about installing the extension before using the pipeline definition. |
@vhvb1989 - When we try to remove references to usage of |
Thank you @zedy-wj , We first need this PR: #2667 Once the PR is merged, the pipeline definition should look like: # Run when commits are pushed to mainline branch (main or master)
# Set this to the mainline branch you are using
trigger:
- main
- master
# Azure Pipelines workflow to deploy to Azure using azd
# To configure required secrets for connecting to Azure, simply run `azd pipeline config --provider azdo`
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)
- pwsh: |
azd deploy --no-prompt
displayName: Deploy Application
env:
AZURE_SUBSCRIPTION_ID: $(AZURE_SUBSCRIPTION_ID)
AZURE_ENV_NAME: $(AZURE_ENV_NAME)
AZURE_LOCATION: $(AZURE_LOCATION)
|
@rajeshkamal5050 The PR for this issue is ready, please review. |
Task
auth.useAzCliAuth
from azdo pipelinesReference - Similar to GHA setup-azd updates,
cc: @hemarina @vhvb1989
The text was updated successfully, but these errors were encountered: