From 381b06c1a2483f4de61bd211a337c8e45e342fc4 Mon Sep 17 00:00:00 2001 From: vamuzumd <48073424+vamuzumd@users.noreply.github.com> Date: Fri, 22 Nov 2019 15:02:29 -0800 Subject: [PATCH] Added example to 2019-07 version (#7829) --- .../Microsoft.Compute/stable/2019-07-01/compute.json | 8 +++++++- .../2019-07-01/examples/GeneralizeVirtualMachine.json | 11 +++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GeneralizeVirtualMachine.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/compute.json index 960088205a74..c6ec42ff27b0 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/compute.json @@ -2673,7 +2673,7 @@ "VirtualMachines" ], "operationId": "VirtualMachines_Generalize", - "description": "Sets the state of the virtual machine to generalized.", + "description": "Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation", "parameters": [ { "name": "resourceGroupName", @@ -2700,7 +2700,13 @@ "200": { "description": "OK" } + }, + "x-ms-examples": { + "Generalize a Virtual Machine.": { + "$ref": "./examples/GeneralizeVirtualMachine.json" + } } + } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GeneralizeVirtualMachine.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GeneralizeVirtualMachine.json new file mode 100644 index 000000000000..48f3b185381d --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GeneralizeVirtualMachine.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2019-07-01", + "vmName": "myVMName" + }, + "responses": { + "200": {} + } +} \ No newline at end of file