Skip to content

Commit

Permalink
Azure CLI authentication documentation update (#27434)
Browse files Browse the repository at this point in the history
* Azure CLI authentication update

* Update website/docs/guides/azure_cli.html.markdown

---------

Co-authored-by: kt <[email protected]>
  • Loading branch information
Chambras and katbyte authored Sep 19, 2024
1 parent 07914d5 commit 1a09e09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions website/docs/guides/azure_cli.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ az account set --subscription="SUBSCRIPTION_ID"

Now that we're logged into the Azure CLI - we can configure Terraform to use these credentials.

-> **Note:** In version 4.0 of the Azure Provider, it's now required to specify the Azure Subscription ID when configuring a provider instance in your configuration. This can be done by specifying the `subscription_id` provider property, or by exporting the `ARM_SUBSCRIPTION_ID` environment variable. More information can be found in the [Azure Resource Manager: 4.0 Upgrade Guide](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/4.0-upgrade-guide#specifying-subscription-id-is-now-mandatory).

To configure Terraform to use the Default Subscription defined in the Azure CLI - we can use the following Provider block:

```hcl
Expand Down

0 comments on commit 1a09e09

Please sign in to comment.