NetApp / terraform-provider-netapp-cloudmanager

Terraform provider to create NetAPP OCCM instances, CVO resources, volumes, snapshots, ... in Azure, AWS, GCP.
Mozilla Public License 2.0
17 stars 27 forks source link

CVO-HA Azure deployment failure using terrafom providers #21

Closed a127608 closed 3 years ago

a127608 commented 3 years ago

While deploying CVO-HA instance using terraform provider in azure getting below “az login” error

Appreciate someone could help us to understand if we are missing something here

Error: Invoking Azure CLI failed with the following error: Please run 'az login' to setup account. on cvo.tf line 1, in resource "netapp-cloudmanager_cvo_azure" "cvo_ha": 1: resource "netapp-cloudmanager_cvo_azure" "cvo_ha"

===================

edarzi commented 3 years ago

you need to do az login before using the provider so it will be able to create the required resources

From the documentation: Provides a netapp-cloudmanager_connector_azure resource. This can be used to create a new Cloud Manager Connector in AZURE. The environment needs to be configured with the proper credentials before it can be used (az login). The minimum required policy can be found at Connector deployment policy for Azure (https://s3.amazonaws.com/occm-sample-policies/Policy_for_Setup_As_Service_Azure.json)

a127608 commented 3 years ago

We are using CI/CD pipeline with terraform workspace which is already connected to subscription. Same pipeline has no issues for deploying VMs using azurerm providers.