Can someone help me, trying to run automation and ...
# general
i
Can someone help me, trying to run automation and I have already installed pulumi inside dockerfile, but I keep getting this
Copy code
Diagnostics:
  azure-native:storage:StorageAccount (admin-storage-account):
    error: building auth config: obtain subscription(41b4bf32-35ba-4beb-be23-220c07d2df6e) from Azure CLI: Error parsing json result from the Azure CLI: Error launching Azure CLI: exec: "az": executable file not found in $PATH
installing azure cli doesn’t help
Copy code
ARG PULUMI_VERSION=3.9.1
ARG PULUMI_IMAGE=pulumi/pulumi-base
FROM ${PULUMI_IMAGE}:${PULUMI_VERSION} as pulumi
and then inside my nodejs alpine
Copy code
FROM node:14.17.4-alpine3.12

# Install needed tools, like git
RUN apk update && \
    apk upgrade && \
    apk add \
    git \
    libc6-compat \
    ca-certificates

# Uses the workdir, copies from pulumi interim container
COPY --from=pulumi /pulumi/bin/pulumi /pulumi/bin/pulumi
COPY --from=pulumi /pulumi/bin/*-nodejs* /pulumi/bin/
COPY --from=pulumi /pulumi/bin/pulumi-analyzer-policy /pulumi/bin/
ENV PATH "/pulumi/bin:${PATH}"
now I am getting this
Copy code
azure-native:appconfiguration:KeyValue (key-value):
    error: building authorizer: Error obtaining Authorization Token from the Azure CLI: Error parsing json result from the Azure CLI: Error waiting for the Azure CLI: exit status 1
what’s going on
3.8.0 -
Copy code
azure-native:network:RecordSet (domain):
    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.
that’s what i pass to automation api
Copy code
{
  'azure:subscriptionId': {
    value: config.AZURE_CLIENT_SUBSCRIPTION_ID()
  },
  'azure:clientId': {
    value: config.AZURE_CLIENT_ID()
  },
  'azure:tenantId': {
    value: config.AZURE_TENANT_ID()
  },
  'azure:clientSecret': {
    value: config.AZURE_CLIENT_SECRET(),
    secret: true
  },
  'azure-native:subscriptionId': {
    value: config.AZURE_CLIENT_SUBSCRIPTION_ID()
  },
  'azure-native:clientId': {
    value: config.AZURE_CLIENT_ID()
  },
  'azure-native:tenantId': {
    value: config.AZURE_TENANT_ID()
  },
  'azure-native:clientSecret': {
    value: config.AZURE_CLIENT_SECRET(),
    secret: true
  }
}
await stack.setAllConfig(STACK_CONFIG);
I validated every single field, all is good
this was working with no changes for a month!