You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment we're not applying any validation the resource_group_name field apart from in the azurerm_resource_group resource.
Due to the way URL's are constructed in the Azure API's (by prefixing /subscriptions/{subscription_id}/resourceGroups/{name} to each request) - should the ID of a Resource Group be specified instead of it's Name - Azure will return an error about an Invalid API version (unless we're lucky and both API's have the same version).
This results in the following error:
disk.DisksClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidApiVersionParameter" Message="The api-version '2016-04-30-preview' is invalid. The supported versions are '2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'."
We should update the resource_group_name field across all resources to have validation to check this is a Name and not an ID.
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!
ghost
locked and limited conversation to collaborators
Apr 1, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
At the moment we're not applying any validation the
resource_group_name
field apart from in theazurerm_resource_group
resource.Due to the way URL's are constructed in the Azure API's (by prefixing
/subscriptions/{subscription_id}/resourceGroups/{name}
to each request) - should the ID of a Resource Group be specified instead of it's Name - Azure will return an error about an Invalid API version (unless we're lucky and both API's have the same version).This results in the following error:
We should update the
resource_group_name
field across all resources to have validation to check this is a Name and not an ID.Related bugs: #223 Azure/azure-sdk-for-go#706
The text was updated successfully, but these errors were encountered: