Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Commands/compute/readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# [Group] _compute_

Mange azure compute vm config

## Subgroups

- [virtual-machine](/Commands/compute/virtual-machine/readme.md)
: Manage Virtual Machine
9 changes: 9 additions & 0 deletions Commands/compute/virtual-machine/_restart.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _compute virtual-machine restart_

The operation to restart a virtual machine.

## Versions

### [2016-03-30](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3ZpcnR1YWxtYWNoaW5lcy97fS9yZXN0YXJ0/2016-03-30.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/restart 2016-03-30 -->
8 changes: 8 additions & 0 deletions Commands/compute/virtual-machine/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# [Group] _compute virtual-machine_

Manage Virtual Machine

## Commands

- [restart](/Commands/compute/virtual-machine/_restart.md)
: The operation to restart a virtual machine.
3 changes: 3 additions & 0 deletions Commands/disk/_update-patch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# [Command] _disk update-patch_

Update/Patch a managed disk.
3 changes: 3 additions & 0 deletions Commands/disk/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ Azure Unmanaged Data Disks have a maximum size of 4095 GB. To use disks larger t

- [update](/Commands/disk/_update.md)
: Update a managed disk.

- [update-patch](/Commands/disk/_update-patch.md)
: Update/Patch a managed disk.
3 changes: 3 additions & 0 deletions Commands/vm/_patch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# [Command] _vm patch

Patch a virtual machine.
3 changes: 3 additions & 0 deletions Commands/vm/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,6 @@ Manage Linux or Windows virtual machines.

- [update](/Commands/vm/_update.md)
: Update operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation.

- [patch](/Commands/vm/_patch.md)
: Patch operation to patch a virtual machine.
3 changes: 3 additions & 0 deletions Commands/vmss/_patch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# [Command] _vmss patch

Patch a VM scale set.
3 changes: 3 additions & 0 deletions Commands/vmss/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@ Manage groupings of virtual machines in an Azure Virtual Machine Scale Set (VMSS

- [update-domain-walk](/Commands/vmss/_update-domain-walk.md)
: Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set.

- [patch](/Commands/vmss/_patch.md)
: Patch a VM scale set.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/restart", "version": "2016-03-30", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS92aXJ0dWFsTWFjaGluZXMve3ZtTmFtZX0vcmVzdGFydA==/V/MjAxNi0wMy0zMA=="}], "commandGroups": [{"name": "compute virtual-machine", "commands": [{"name": "restart", "version": "2016-03-30", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/restart", "version": "2016-03-30", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS92aXJ0dWFsTWFjaGluZXMve3ZtTmFtZX0vcmVzdGFydA==/V/MjAxNi0wMy0zMA=="}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Path.vmName", "options": ["vm-name"], "required": true, "idPart": "name", "help": {"short": "The name of the virtual machine."}}]}], "operations": [{"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "VirtualMachines_Restart", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}, {"type": "string", "name": "vmName", "arg": "$Path.vmName", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2016-03-30"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "dateTime", "name": "endTime", "format": {"protocol": "iso"}}, {"readOnly": true, "type": "object", "name": "error", "props": [{"type": "string", "name": "code"}, {"type": "array<object>", "name": "details", "item": {"type": "object", "props": [{"type": "string", "name": "code"}, {"type": "string", "name": "message"}, {"type": "string", "name": "target"}]}}, {"type": "object", "name": "innererror", "props": [{"type": "string", "name": "errordetail"}, {"type": "string", "name": "exceptiontype"}]}, {"type": "string", "name": "message"}, {"type": "string", "name": "target"}]}, {"readOnly": true, "type": "string", "name": "name"}, {"readOnly": true, "type": "dateTime", "name": "startTime", "format": {"protocol": "iso"}}, {"readOnly": true, "type": "string", "name": "status"}]}}}}, {"statusCode": [202]}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/restart" version="2016-03-30" swagger="mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS92aXJ0dWFsTWFjaGluZXMve3ZtTmFtZX0vcmVzdGFydA==/V/MjAxNi0wMy0zMA=="/>
<commandGroup name="compute virtual-machine">
<command name="restart" version="2016-03-30">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/restart" version="2016-03-30" swagger="mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS92aXJ0dWFsTWFjaGluZXMve3ZtTmFtZX0vcmVzdGFydA==/V/MjAxNi0wMy0zMA=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vmName" options="vm-name" required="True" idPart="name">
<help short="The name of the virtual machine."/>
</arg>
</argGroup>
<operation operationId="VirtualMachines_Restart">
<longRunning finalStateVia="azure-async-operation"/>
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart">
<request method="post">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"/>
<param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vmName" arg="$Path.vmName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2016-03-30&quot;"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="dateTime" name="endTime">
<format protocol="iso"/>
</prop>
<prop readOnly="True" type="object" name="error">
<prop type="string" name="code"/>
<prop type="array<object>" name="details">
<item type="object">
<prop type="string" name="code"/>
<prop type="string" name="message"/>
<prop type="string" name="target"/>
</item>
</prop>
<prop type="object" name="innererror">
<prop type="string" name="errordetail"/>
<prop type="string" name="exceptiontype"/>
</prop>
<prop type="string" name="message"/>
<prop type="string" name="target"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop readOnly="True" type="dateTime" name="startTime">
<format protocol="iso"/>
</prop>
<prop readOnly="True" type="string" name="status"/>
</schema>
</json>
</body>
</response>
<response statusCode="202"/>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>