ARM Error
ARM OpenAPI(swagger) specs
- RPC-Async-V1-15
If an operation's (PUT/POST/PATCH/DELETE) responses have Location or Azure-AsyncOperation headers then it MUST have the property x-ms-long-running-operation set to true.
If an operation's (PUT/POST/PATCH/DELETE) responses have Location or Azure-AsyncOperation headers then it MUST have the property x-ms-long-running-operation set to true.
You can do either of the following:
- If the operation is intended to be a long running operation, set the property
x-ms-long-running-operationtotrue. - If the operation is not intended to be a long running operation,
x-ms-long-running-operationMUST be set tofalseand theLocationandAzure-AsyncOperationheaders MUST not be specified in the response.
If you want headers to be included in the responses that is considered as ASYNC call, then you must set x-ms-long-running-operation : true as below example
...
// responses with headers
"responses": {
"2XX": {
"description": "Async call",
"headers": {
"Azure-AsyncOperation": {
"type": "string",
},
"Location": {
"type": "string",
},
},
},
},
// set this property as true
"x-ms-long-running-operation": true
...The following would be valid for SYNC calls:
...
// responses with No headers
"responses": {
"2xx": {
"description": "sync call",
// No headers
}
},
"x-ms-long-running-operation": false
...