azure-rest-api-specs icon indicating copy to clipboard operation
azure-rest-api-specs copied to clipboard

Microsoft.HybridCompute@2022-03-10 Unexpected 400 returned from service

Open liuwuliuyun opened this issue 2 years ago • 0 comments

swagger link: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2022-03-10/HybridCompute.json

API Example:

PUT https://management.azure.com/subscriptions/{SID}/resourceGroups/yunliutesthyc/providers/Microsoft.HybridCompute/machines/myMachine?api-version=2022-03-10

Json Body: { "location": "west europe", "properties": { "VmId": "vm-221014143600135524", "locationData": { "name": "Redmond" }, "clientPublicKey": "string" }, "identity": { "type": "SystemAssigned" } }

Returns:


│ RESPONSE 400: 400 Bad Request │ ERROR CODE: HCRP400 │ -------------------------------------------------------------------------------- │ { │ "code": "HCRP400", │ "message": "The request does not have sufficient information to complete the operation. Missing or invalid properties: VmId", │ "target": "{sid}/yunliutesthyc2/testacchycmachine" │ } │ --------------------------------------------------------------------------------

liuwuliuyun avatar Oct 18 '22 07:10 liuwuliuyun