flaky-school-82490
07/01/2021, 7:49 AMazure-native:resources:ResourceGroup (resourceGroup):
error: building auth config: Authenticating using the Azure CLI is only supported as a User (not a Service Principal).
To authenticate to Azure using a Service Principal, you can use the separate 'Authenticate using a Service Principal'
auth method - instructions for which can be found here:
Alternatively you can authenticate using the Azure CLI by using a User Account.
azure/login was successful.
Where are the "separate 'Authenticate using a Service Principal' auth method - instructions"?
Is there a way or a workaround to use pulumi with azure authenticated using a service principal?icy-football-94152
07/01/2021, 10:52 AMflaky-school-82490
07/01/2021, 1:00 PMbillowy-army-68599
07/01/2021, 1:02 PMtall-librarian-49374
07/01/2021, 1:14 PMflaky-school-82490
07/01/2021, 1:55 PMuses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
tall-librarian-49374
07/01/2021, 1:58 PMflaky-school-82490
07/01/2021, 2:06 PMpulumi config set azure-native:clientId <clientID>
pulumi config set azure-native:clientSecret <clientSecret> --secret
pulumi config set azure-native:tenantId <tenantID>
pulumi config set azure-native:subscriptionId <subscriptionID>
in github actions without having to install the pulumi cli on the worker...tall-librarian-49374
07/01/2021, 2:08 PMflaky-school-82490
07/01/2021, 2:09 PMARM_CLIENT_ID
, ARM_CLIENT_SECRET
, ARM_TENANT_ID
, and ARM_SUBSCRIPTION_ID
as env variables (Actions secrets). How do I feed them to pulumi in a github action?billowy-army-68599
07/01/2021, 2:10 PM- uses: pulumi/actions@v3
with:
command: preview
stack-name: dev
env:
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
flaky-school-82490
07/01/2021, 2:12 PMenv:
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
part. Will try that right away.Diagnostics:
pulumi:pulumi:Stack (clarifi-cloud-demo-dev):
error: update failed
azure-native:azureactivedirectory:B2CTenant (b2cTenant):
error: pollingTrackerBase#updateRawBody: failed to unmarshal response body: StatusCode=0 -- Original Error: invalid character 'Y' looking for beginning of value