Member-only story
How to Troubleshoot an Azure Storage Account with a Private Endpoint and a Container with Terraform
Today, we will discuss a common error when deploying an Azure Azure Storage Account with a Private Endpoint with Terraform.
After we try to add a Storage Account Container, we receive the following error:
Error: containers.Client#GetProperties: Failure responding to request: StatusCode=403 — Original Error: autorest/azure: Service returned an error. Status=403 Code=”AuthorizationFailure” Message=”This request is not authorized to perform this operation.\nRequestId:1b7570b6–101e-005f-296f-f7f2e3000000\nTime:2023–10–05T09:37:49.1892533Z”
1. Our Scenario
- We have a virtual machine running Terraform.
- Resource group “kopicloud-core-dev-we-rg”
- Virtual Network “kopicloud-core-dev-we-vnet”
- Subnet “kopicloud-core-dev-we-subnet”
2. We have an existing “privatelink.blob.core.windows.net” Private DNS Zone.
- Resource group “kopicloud-core-dev-we-dns-rg”
3. We will deploy a new Azure Storage Account with a private endpoint.
- Resource group “kopicloud-storage-dev-we-rg”
- Virtual Network…