Adding Azure account fails in Halyard. Azure subscription is not recognized


#1

Hi,

I am trying to deploy Spinnaker to a K8s cluster using Halyard running on a Ubuntu 16.04 VM. The Kubernetes cluster is deployed on Azure Kubernetes Service.

I am follow the instructions here to add an Azure account to Halyard: https://www.spinnaker.io/setup/install/providers/azure/

I get the error in the last steps.

hal config provider azure account add my-azure-account --client-id $APP_ID --tenant-id $TENANT_ID --subscription-id $SUBSCRIPTION_ID --default-key-vault $VAULT_NAME --default-resource-group $RESOURCE_GROUP --app-key

The appKey (password) of your service principal.:

  • Get current deployment
    Success

  • Add the my-azure-account account
    Failure
    Problems in default.provider.azure:
    ! ERROR Error instantiating Azure credentials: The subscription
    ‘XXX-XX-X-XXXXXX’ could not be found.
    ? Follow instructions here https://aka.ms/azspinconfig to setup
    azure credentials.

  • Failed to add account my-azure-account for provider azure.

Has anyone successfully deployed Spinnaker on Azure using Halyard?


#2

I see these error messages in the halyard.log:

47%20PM


#3

Hi All - Just checking in to see whether anyone has faced similar issues while adding an Azure provider. I have still not been able to figure this out. I get the following error no matter what I try:

The appKey (password) of your service principal.:
+ Get current deployment
  Success
- Add the my-azure-account account
  Failure
Problems in default.provider.azure:
! ERROR Error instantiating Azure credentials: The subscription
  'XXX-YY-AAA' could not be found.

- Failed to add account my-azure-account for provider
  azure.