The property type of "Version" for Management Partner is inconsistent between azure client side and azure server side #8178
Labels
Service Attention
Workflow: This issue is responsible by Azure service team.
I tried to create association with azure go sdk (https://github.com/Azure/azure-sdk-for-go/tree/master/services/preview/managementpartner/mgmt/2018-02-01/managementpartner) but it failed and threw below error message. After investigated, the failure is caused by type conversion issue. The property type of “Version” in azure go sdk (https://github.com/Azure/azure-sdk-for-go/blob/fa96a3744b0e40e6e0d3ddf985f80cfe2d51d6d6/services/preview/managementpartner/mgmt/2018-02-01/managementpartner/models.go#L258) and azure rest api spec (
azure-rest-api-specs/specification/managementpartner/resource-manager/Microsoft.ManagementPartner/preview/2018-02-01/ManagementPartner.json
Line 293 in c678aa6
Error message:
Error: Error creating Management Partner "xxxxxx": managementpartner.PartnerClient#Create: Failure responding to request: StatusCode=200 -- Original Error: Error occurred unmarshalling JSON - Error = 'json: cannot unmarshal number into Go struct field PartnerProperties.version of type string' JSON = '{"id":"/providers/microsoft.managementpartner/partners/xxxxx","type":"Microsoft.ManagementPartner/partners","name":"xxxx","etag":19,"properties":{"partnerId":"xxxx","partnerName":"xxxxx","tenantId":"xxxxx","objectId":"xxxxxx","version":19,"updatedTime":"2020-01-17T03:53:37.7735538Z","createdTime":"2020-01-17T01:44:06.3772514Z","state":"Active"}}'
on main.tf line 1, in resource "azurerm_management_partner" "example":
1: resource "azurerm_management_partner" "example" {
The text was updated successfully, but these errors were encountered: