Skip to content

Azure CLI - 'az' is not recognized as an internal or external command, operable program or batch file. #227

@sam-bryant

Description

@sam-bryant

We are encountering an error when performing an apply and believe it is related to this provider requiring the 32 bit version of the Azure CLI. We currently use the 64 bit version on our local machines as well as on our servers. We installed the 32 bit version and got past the error but are hoping this can be changed to use the 64 bit version.

Resource

resource "netapp-cloudmanager_connector_azure" "main" {
  name                            = "example"
  location                        = "centralus"
  subscription_id                 = module.global_variables.subscriptions.global_sharedservices.id
  company                         = "example"
  resource_group                  = module.resource_group.azurerm_resource_group.name
  virtual_machine_size            = "Standard_D8s_v5"
  subnet_id                       = "snet-example"
  vnet_id                         = module.global_variables.vnets.global_sharedservices.vnet_sharedservices.resource_id
  network_security_group_name     = "nsg-example"
  network_security_resource_group = "rg-example"
  associate_public_ip_address     = false
  storage_account                 = module.storage_account.azurerm_storage_account.name
  account_id                      = "xyz"
  admin_password                  = data.azurerm_key_vault_secret.admin_password.value
  admin_username                  = "example"
}

Error

netapp-cloudmanager_connector_azure.main: Creating...

│ Error: cannot authorize: Invoking Azure CLI failed with the following error: 'az' is not recognized as an internal or external command,
│ operable program or batch file.


│ with netapp-cloudmanager_connector_azure.main,
│ on main.tf line 59, in resource "netapp-cloudmanager_connector_azure" "main":
│ 59: resource "netapp-cloudmanager_connector_azure" "main" {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions