Hi Jaden,
This is the full version of the swagger file I'm using to try it out,
Error detail:
OUTPUTS
Headers
{
"Date": "Wed, 04 Jan 2017 07:15:58 GMT",
"Server": "Microsoft-HTTPAPI/2.0",
"Content-Length": "54",
"Content-Type": "application/json"
}
Body
{
"statusCode": 404,
"message": "Resource not found"
}
Swagger file I'm using:
{
"swagger": "2.0",
"info": {
"version": "1.0",
"title": "ARM Sample",
"description": "Access Azure Resources using this API to turn on/off a ARM Virtual Machine",
"contact": {
"name": "sample",
"email": "sample@non-existing.com"
}
},
"host": "management.azure.com",
"basePath": "/",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"securityDefinitions": {
"AAD": {
"type": "oauth2",
"flow": "implicit",
"authorizationUrl": "https://login.windows.net/common/oauth2/authorize",
"scopes": {}
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}/start": {
"post": {
"description": "Starts a given Virtual Machine",
"summary": "Starts a given Virtual Machine",
"operationId": "StartRmVM",
"x-ms-visibility": "important",
"parameters": [
{
"name": "api-version",
"x-ms-summary": "API version",
"in": "query",
"description": "API version",
"required": true,
"type": "string",
"default": "2016-03-30"
},
{
"name": "subscriptionId",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "virtualMachineName",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
},
"400": {
"description": "Bad Request"
},
"500": {
"description": "Internal Server Error"
},
"default": {
"description": "Operation Failed."
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}/powerOff": {
"post": {
"description": "PowerOff a given Virtual Machine",
"summary": "PowerOff a given Virtual Machine",
"operationId": "PowerOffRmVM",
"x-ms-visibility": "important",
"parameters": [
{
"name": "api-version",
"x-ms-summary": "API version",
"in": "query",
"description": "API version",
"required": true,
"type": "string",
"default": "2016-03-30"
},
{
"name": "subscriptionId",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "virtualMachineName",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
},
"400": {
"description": "Bad Request"
},
"500": {
"description": "Internal Server Error"
},
"default": {
"description": "Operation Failed."
}
}
}
}
}
}