-
Notifications
You must be signed in to change notification settings - Fork 79
missing env var AZURE_TENANT_ID error with Azure App Configuration Kubernetes Provider #778
Description
Hi,
I am installing Azure App Configuration Kubernetes Provider by following the steps from:
https://learn.microsoft.com/en-gb/azure/azure-app-configuration/quickstart-azure-kubernetes-service
But installation of pod az-appconfig-k8s-provider is failing with below error.
I0628 09:52:45.197551 1 listener.go:44] "controller-runtime/metrics: Metrics server is starting to listen" addr=":8080"
I0628 09:52:45.197974 1 main.go:80] "setup: starting manager"
I0628 09:52:45.198288 1 internal.go:369] "Starting server" path="/metrics" kind="metrics" addr="[::]:8080"
I0628 09:52:45.198339 1 internal.go:369] "Starting server" kind="health probe" addr="[::]:8081"
I0628 09:52:45.198489 1 leaderelection.go:248] attempting to acquire leader lease azappconfig-system/leader.elect.locker.azappconfig.io...
I0628 09:53:01.766638 1 leaderelection.go:258] successfully acquired lease azappconfig-system/leader.elect.locker.azappconfig.io
I0628 09:53:01.767031 1 controller.go:186] "Starting EventSource" controller="azureappconfigurationprovider" controllerGroup="azconfig.io" controllerKind="AzureAppConfigurationProvider" source="kind source: *v1beta1.AzureAppConfigurationProvider"
I0628 09:53:01.767072 1 controller.go:186] "Starting EventSource" controller="azureappconfigurationprovider" controllerGroup="azconfig.io" controllerKind="AzureAppConfigurationProvider" source="kind source: *v1.ConfigMap"
I0628 09:53:01.767114 1 controller.go:186] "Starting EventSource" controller="azureappconfigurationprovider" controllerGroup="azconfig.io" controllerKind="AzureAppConfigurationProvider" source="kind source: *v1.Secret"
I0628 09:53:01.767163 1 controller.go:194] "Starting Controller" controller="azureappconfigurationprovider" controllerGroup="azconfig.io" controllerKind="AzureAppConfigurationProvider"
I0628 09:53:01.868084 1 controller.go:228] "Starting workers" controller="azureappconfigurationprovider" controllerGroup="azconfig.io" controllerKind="AzureAppConfigurationProvider" worker count=1
I0628 09:53:01.868260 1 appconfigurationprovider_controller.go:96] Start reconcile AzureAppConfigurationProvider "appconfigurationprovider-sample" in "default" namespace
E0628 09:53:02.869511 1 appconfigurationprovider_controller.go:355] "Fail to sync configuration from AppConfiguration to cluster." err=<
DefaultAzureCredential: failed to acquire a token.
Attempted credentials:
EnvironmentCredential: missing environment variable AZURE_TENANT_ID
ManagedIdentityCredential: IMDS token request timed out
AzureCLICredential: fork/exec /bin/sh: no such file or directory
Where should the env var AZURE_TENANT_ID_ be set in order to resolve the issue.