During the deployment of Velero plugins for Microsoft Azure, the following error is encountered:
level=error msg="Error getting a backup store" backup-storage-location=
level=info msg="BackupStorageLocation is invalid, marking as unavailable" backup-storage-location=
level=error msg="Current BackupStorageLocations available/unavailable/unknown: 0/2/0, BackupStorageLocation "azure-blob" is unavailable: unable to get credentials: unable to get key for secret: "credentials" secret is missing data for key "bls")" controller=backup-storage-
This issue occurs when the credentials-velero file is not correctly formatted. The correct format should be:
cat << EOF > ./credentials-velero
AZURE_SUBSCRIPTION_ID=${AZURE_
AZURE_TENANT_ID=${AZURE_
AZURE_CLIENT_ID=${AZURE_
....
....
EOF
Common mistakes include:
Ensure that the credentials-velero file is created exactly as described in the documentation. Avoid unnecessary formatting changes or additional characters that could cause the deployment to fail.
For further reference, check the official Velero documentation:
https://github.com/vmware-