Closed
Description
Hi everyone.
I'm trying to import a resource group "digitalplatform-dev" (which obviously exists) into azure-held storage account state with this command:
aztfy resource `
>> --backend-type=azurerm `
>> --backend-config=resource_group_name=digitalplatform-state-dev `
>> --backend-config=storage_account_name=digitalplatformstatedev `
>> --backend-config=container_name=development `
>> --backend-config=key=commoninfrastructure.tfstate `
>> --name=main-resource-group `
>> /subscriptions/000mysubscriptionguid000/resourceGroups/digitalplatform-dev
But I keep getting this error:
Error: generating Terraform configuration: converting from state to configurations: converting terraform state to config for resource azurerm_resource_group.res-0: show state: exit status 1
Failed to marshal state to json: unsupported attribute "public_network_access"
...and pointers? I can't see a reference to public_network_access
anywhere on the resource group docs. The resource group I'm terraforming has resources inside it - but I'd like to think that's not connected.
... Update - interestingly, although the prompt shows a hard stop / error, after inspecting the remote state in the azure storage account, it has updated / wrote remote state correctly! So it's more a warning than an error - so this issue is actually less severe now I've found remote state is written to fine.