Open tinydevel opened 10 months ago
Taking a look through here, looks like 2020-09-01-preview
is the latest API version available in Azure/azure-rest-api-specs
so we should be able to add support for that into hashicorp/go-azure-sdk
, which'll enable updating this.
Updated SDK now available: https://github.com/hashicorp/go-azure-sdk/tree/main/resource-manager/portal/2020-09-01-preview
Hi. Thanks a lot for quick response. I would like to know if it is possible to use azurerm and specify api version 2020-09-01? AFAIK it is not supported by azurerm_portal_dashboard. If I go through azurerm I still see 2019 there, basically: https://github.com/hashicorp/terraform-provider-azurerm/blob/main/internal/services/portal/client/client.go I don't know 'go' at all nor I'm not terraform expert. I'm sorry if that question sounds silly, no idea where could I ask.
As @tinydevel said, is there any chance for updating this API in azurerm_portal_dashboard
? We're not able to deploy any new dashboard due to a deny policy for an old API in our company. Unfortunatelly, dashboards are our only way to have any metrics visualization.
Is there an existing issue for this?
Community Note
Description
Deploying dashboard using azurerm_portal_dashboard volatiles Azure policy: built-in-policies/policyDefinitions/Portal/SharedDashboardInlineContent_Deny.json
https://github.com/Azure/azure-policy/blob/master/built-in-policies/policyDefinitions/Portal/SharedDashboardInlineContent_Deny.json
One of conditions checked there is: "value": "[requestContext().apiVersion]", "greaterOrEquals": "2020-09-01-alpha"
where terraform azurerm uses 2019-01-01-preview (const value) https://github.com/hashicorp/go-azure-sdk/tree/main/resource-manager/portal/2019-01-01-preview
New or Affected Resource(s)/Data Source(s)
azurerm_portal_dashboard
Potential Terraform Configuration
No response
References
No response