<p>While installation of Velero on kubernetes using helm charts as below</p>

<pre><code>helm install --namespace velero \
--set configuration.provider="Microsoft Azure" \
--set-file credentials.secretContents.cloud=&lt;FULL PATH TO FILE&gt; \
--set configuration.backupStorageLocation.name=azure \
--set configuration.backupStorageLocation.bucket=&lt;BUCKET NAME&gt; \
--set configuration.volumeSnapshotLocation.name=&lt;PROVIDER NAME&gt; \
--set configuration.volumeSnapshotLocation.config.region=&lt;REGION&gt; \
--set image.repository=velero/velero \
--set image.tag=v1.2.0 \
--set image.pullPolicy=IfNotPresent \
--set initContainers[0].name=velero-plugin-for-microsoft-azure:v1.0.0 \
--set initContainers[0].image=velero/velero-plugin-for-microsoft-azure:v1.0.0 \
--set initContainers[0].volumeMounts[0].mountPath=/target \
--set initContainers[0].volumeMounts[0].name=plugins \
stable/velero
</code></pre>

<p>I have configured the below environment variables in credential-velero file and path has been provided in above command.</p>

<p>credentials-velero file -</p>

<pre><code>AZURE_SUBSCRIPTION_ID=${AZURE_SUBSCRIPTION_ID}
AZURE_TENANT_ID=${AZURE_TENANT_ID}
AZURE_CLIENT_ID=${AZURE_CLIENT_ID}
AZURE_CLIENT_SECRET=${AZURE_CLIENT_SECRET}
AZURE_RESOURCE_GROUP=${AZURE_RESOURCE_GROUP}
AZURE_CLOUD_NAME=AzurePublicCloud
</code></pre>

<p>I am getting below error -</p>

<pre><code>an error occurred: some backup storage locations are invalid: error getting backup store for location "default": rpc error: code = Unknown desc = unable to get all required environment variables: the following keys do not have values: AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID
</code></pre>

<p>Could you please help with resolution of above error?</p>

Rohan
<p>Your velero credential files should contain values for those, not placeholders.</p>

<pre><code>cat &lt;&lt; EOF  &gt; ./credentials-velero
AZURE_SUBSCRIPTION_ID=${AZURE_SUBSCRIPTION_ID}
AZURE_TENANT_ID=${AZURE_TENANT_ID}
AZURE_CLIENT_ID=${AZURE_CLIENT_ID}
AZURE_CLIENT_SECRET=${AZURE_CLIENT_SECRET}
AZURE_RESOURCE_GROUP=${AZURE_RESOURCE_GROUP}
AZURE_CLOUD_NAME=AzurePublicCloud
EOF
</code></pre>

<p><a href="https://github.com/vmware-tanzu/velero-plugin-for-microsoft-azure#setup" rel="nofollow noreferrer">https://github.com/vmware-tanzu/velero-plugin-for-microsoft-azure#setup</a></p>
