Skip to content

Commit

Permalink
Merge pull request #141 from Azure-Samples/marlenezw-patch-4
Browse files Browse the repository at this point in the history
Update azure-dev.yml
  • Loading branch information
marlenezw authored Aug 30, 2024
2 parents f047f8f + a559880 commit 8cdeb4e
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/azure-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,12 @@ jobs:
--tenant-id "$Env:AZURE_TENANT_ID"
shell: pwsh

- name: Log in with Azure CLI (Client Credentials)
if: ${{ env.AZURE_CREDENTIALS != '' }}
run: |
$info = $Env:AZURE_CREDENTIALS | ConvertFrom-Json -AsHashtable;
az login --service-principal -u "$($info.clientId)" -p "$($info.clientSecret)" --tenant "$($info.tenantId)"
shell: pwsh
env:
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
- name: Azure CLI Login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Provision Infrastructure
run: azd provision --no-prompt
Expand Down

0 comments on commit 8cdeb4e

Please sign in to comment.