diff --git a/.github/workflows/azure-dev.yml b/.github/workflows/azure-dev.yml index 8c77a2d3..3d5b7e2e 100644 --- a/.github/workflows/azure-dev.yml +++ b/.github/workflows/azure-dev.yml @@ -65,11 +65,7 @@ jobs: $info = $Env:AZURE_CREDENTIALS | ConvertFrom-Json -AsHashtable; Write-Host "::add-mask::$($info.clientSecret)" - az login ` - --service-principal` - --username "$($info.clientId)" ` - --password "$($info.clientSecret)" ` - --tenant "$($info.tenantId)" + az login --service-principal -u "$($info.clientId)" -p "$($info.clientSecret)" --tenant "$($info.tenantId)" shell: pwsh env: AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}