Skip to content

Commit

Permalink
docs: create resource group with specified name and location (#15)
Browse files Browse the repository at this point in the history
* docs: set own resource group name

* docs: set resource group location
  • Loading branch information
hknutsen authored Dec 9, 2024
1 parent 134a2cf commit f55c907
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@ Azure Resource Manager (ARM) template that creates an Azure Storage account to s
1. Create resource group:

```console
az group create --name tfstate
az group create --name <RESOURCE_GROUP_NAME> --location <LOCATION>
```

Requires Azure role `Contributor` at subscription.

1. Create a deployment at resource group from the template file:

```console
az deployment group create --name terraform-backend --resource-group tfstate --template-file azuredeploy.json --parameters storageAccountName=<STORAGE_ACCOUNT_NAME>
az deployment group create --name terraform-backend --resource-group <RESOURCE_GROUP_NAME> --template-file azuredeploy.json --parameters storageAccountName=<STORAGE_ACCOUNT_NAME>
```

Alternatively, create a deployment at resource group from the template URI:

```console
az deployment group create --name terraform-backend --resource-group tfstate --template-uri https://raw.githubusercontent.com/equinor/azure-terraform-backend-template/refs/heads/main/azuredeploy.json --parameters storageAccountName=<STORAGE_ACCOUNT_NAME>
az deployment group create --name terraform-backend --resource-group <RESOURCE_GROUP_NAME> --template-uri https://raw.githubusercontent.com/equinor/azure-terraform-backend-template/refs/heads/main/azuredeploy.json --parameters storageAccountName=<STORAGE_ACCOUNT_NAME>
```

Requires Azure role `Owner` at resource group.
Expand All @@ -65,7 +65,7 @@ Azure Resource Manager (ARM) template that creates an Azure Storage account to s
```terraform
terraform {
backend "azurerm" {
resource_group_name = "tfstate"
resource_group_name = "<RESOURCE_GROUP_NAME>"
storage_account_name = "<STORAGE_ACCOUNT_NAME>"
container_name = "tfstate"
key = "terraform.tfstate"
Expand Down

0 comments on commit f55c907

Please sign in to comment.