We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fe4131 commit b273091Copy full SHA for b273091
.github/workflows/azure-dev.yaml
@@ -15,11 +15,20 @@ jobs:
15
- name: Checkout
16
uses: actions/checkout@v2
17
18
- - name: Log in with Azure
+ - name: Log in with Azure (Federated Credentials)
19
+ if: ${{ env.AZURE_CLIENT_ID != '' }}
20
+ run: |
21
+ azd login `
22
+ --client-id "$Env:AZURE_CLIENT_ID" `
23
+ --federated-credential-provider "github" `
24
+ --tenant-id "$Env:AZURE_TENANT_ID"
25
+ shell: pwsh
26
+
27
+ - name: Log in with Azure (Client Credentials)
28
+ if: ${{ env.AZURE_CREDENTIALS != '' }}
29
run: |
30
$info = $Env:AZURE_CREDENTIALS | ConvertFrom-Json -AsHashtable;
31
Write-Host "::add-mask::$($info.clientSecret)"
-
32
azd login `
33
--client-id "$($info.clientId)" `
34
--client-secret "$($info.clientSecret)" `
0 commit comments