From e61998d032974fc04d7efe25015e3940458909dc Mon Sep 17 00:00:00 2001 From: Sayan Naskar Date: Tue, 15 Feb 2022 12:11:57 +0530 Subject: [PATCH] Arc-Testing, x-ms-deletion --- README.md | 2 +- resourceGroup.http | 2 +- scvmm.http | 5 ++++- setBearerToken.py | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e287195..c95fad5 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ ### Usage -1. Make sure to login to azure and set your subscription using `az`. Subscription `70aad6c5-69f0-4905-87b8-f8700e08e2dd` is being used for creating the resources. +1. Make sure to login to azure and set your subscription using `az`. Subscription `204898ee-cd13-4332-b9d4-55ca5c25496d` (ARC-Testing) is being used for creating the resources. ```sh az login diff --git a/resourceGroup.http b/resourceGroup.http index 55f3c69..da187be 100644 --- a/resourceGroup.http +++ b/resourceGroup.http @@ -1,4 +1,4 @@ -@subscriptionId = 70aad6c5-69f0-4905-87b8-f8700e08e2dd +@subscriptionId = 204898ee-cd13-4332-b9d4-55ca5c25496d @apiVersion = 2020-06-01 diff --git a/scvmm.http b/scvmm.http index aad1549..2db9e11 100644 --- a/scvmm.http +++ b/scvmm.http @@ -1,4 +1,4 @@ -@subscriptionId = 70aad6c5-69f0-4905-87b8-f8700e08e2dd +@subscriptionId = 204898ee-cd13-4332-b9d4-55ca5c25496d @resourceGroup = snaskar-rg @provider = Microsoft.SCVMM @armStub = subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroup}}/providers/{{provider}} @@ -267,3 +267,6 @@ GET {{vmmServerDel.response.headers.Location}} #------------------------------------------------------------------------------------------------ ### +@vmId = /subscriptions/204898ee-cd13-4332-b9d4-55ca5c25496d/resourceGroups/can-arcvmm-0202/providers/Microsoft.SCVMM/VirtualMachines/vm-minion-0003 +DELETE {{armRoot}}{{vmId}}{{reqParams}} +x-ms-deletion-mode: retain diff --git a/setBearerToken.py b/setBearerToken.py index d75a9dd..b176420 100644 --- a/setBearerToken.py +++ b/setBearerToken.py @@ -5,7 +5,7 @@ import typing from os.path import dirname, abspath # %% -subscriptionId = '70aad6c5-69f0-4905-87b8-f8700e08e2dd' +subscriptionId = '204898ee-cd13-4332-b9d4-55ca5c25496d' def createJSONFile(pathToFile: str):