azure-sdk-for-go: AAD Domain Service create/update fails with Request_InvalidDataContractVersion
Bug Report
- import path: “github.com/Azure/azure-sdk-for-go/services/domainservices/mgmt/2017-06-01/aad”
- SDK version: v24.1.0
- go version go1.11.4 darwin/amd64
I’m trying to create a Azure AD Domain Service resource, but the API returns Request_InvalidDataContractVersion while using the azure-sdk-for-go@v24.1.0
/subscriptions/{subscriptionid}/resourceGroups/{resourceGroup}/providers/Microsoft.AAD/domainServices/{domainServiceName}?api-version=2017-06-01
{
"odata.error": {
"code": "Request_InvalidDataContractVersion",
"message": {
"lang": "en",
"value": "The specified api-version is invalid. The value must exactly match a supported version."
}
}
}
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (9 by maintainers)
@jhendrixMSFT, thank you for assisting me with my issue. It turns out that I made a mistake in the initialization, which resulted in the wrong host uri. As soon as I used
management.azure.comthe creation was successful.Sorry for the noise
@jhendrixMSFT here are the requested details:
RAW Request:
RAW Response:
Thanks again for looking into it.