azure-rest-api-specs
azure-rest-api-specs copied to clipboard
Microsoft.HybridCompute@2022-03-10 Unexpected 400 returned from service
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" │ } │ --------------------------------------------------------------------------------