Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
benoutram committed Dec 18, 2023
1 parent 3b1ed93 commit 0cdfc21
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .azdo/pipelines/azure-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ trigger:
pool:
vmImage: ubuntu-latest

container: mcr.microsoft.com/azure-dev-cli-apps: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)
azd config set auth.useAzCliAuth "true"
displayName: Configure AZD to use AZ CLI authentication
- pwsh: |
azd provision --no-prompt
displayName: Provision Infrastructure
- task: AzureCLI@2
displayName: Provision infrastructure
inputs:
azureSubscription: azconnection # 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)
Expand Down

0 comments on commit 0cdfc21

Please sign in to comment.