Closed motokotoboom closed 2 years ago
Have you successfully created the PIP with CLI (outside of terraform)? If this also does not work, this is not a TF bug
yes, I have. az network public-ip list -o table Name ResourceGroup Location Zones Address AddressVersion AllocationMethod IdleTimeoutInMinutes ProvisioningState
outbound_ip_address xxxxxxx jioindiawest xxxxxxxx IPv4 Static 4 Succeeded
👋
Taking a look through here this appears to be an issue in the Azure API where this information isn't being returned in the MetaData Endpoint: https://management.azure.com/metadata/endpoints?api-version=2018-01-01 - as such we'd need this information returned for it to be usable in Terraform.
In this instance I'd recommend reaching out to Azure Support about this, as this MetaData endpoint should be being populated for all new regions, but in the interim you should be able to workaround this by disabling Enhanced Validation by setting the Environment Variable ARM_PROVIDER_ENHANCED_VALIDATION
to false
.
Thanks!
@tombuildsstuff Why don't use more fresh api? I'm not sure that azure will want to change api-version=2018-01-01 :)
@motokotoboom unfortunately there isn't a newer API version returning that information, there's a number of different API versions for the metadata endpoint which return totally different schemas/information, rather than being additive.
Any update on the above issue??
jioindiawest
is now returned from the endpoint, so this'll be fixed automatically: https://management.azure.com/metadata/endpoints?api-version=2018-01-01
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
Terraform Version
v1.1.7
AzureRM Provider Version
3.0.2
Affected Resource(s)/Data Source(s)
azurerm_public_ip, azurerm_storage_account, azurerm_network_interface
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
azurerm_public_ip should be created
Actual Behaviour
resources: azurerm_public_ip azurerm_storage_account azurerm_network_interface are not created with jioindiawest location with the same error
Steps to Reproduce
No response
Important Factoids
No response
References
No response