From acf1390f12a1afdf431bb1357b6a3c03632e6f61 Mon Sep 17 00:00:00 2001 From: Aishwarya Seetharaman <24403906+Aishwarya-C-S@users.noreply.github.com> Date: Thu, 3 Dec 2020 18:32:23 -0800 Subject: [PATCH] Update description to indicate force delete is in preview (#11763) * updating compute.json for force delete * update description * update to string * updating description * update description * update comment * add example * added example and updated prettier * updated prettier --- .../stable/2020-06-01/compute.json | 9 +++++++-- .../examples/ForceDeleteVirtualMachine.json | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index ee4e95a33908..c81b64798ed6 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -2804,7 +2804,7 @@ "in": "query", "required": false, "type": "boolean", - "description": "Optional parameter to force delete virtual machines." + "description": "Optional parameter to force delete virtual machines.(Feature in Preview)" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -2824,7 +2824,12 @@ "description": "No Content" } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Force delete a VM": { + "$ref": "./examples/ForceDeleteVirtualMachine.json" + } + } }, "get": { "tags": [ diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine.json new file mode 100644 index 000000000000..fe81bdcf60cf --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVM", + "forceDeletion": "true", + "api-version": "2020-06-01" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +}