From c18974133add20f6fea02092f5c3c85f954c52f5 Mon Sep 17 00:00:00 2001 From: Feiyu Shi <44449256+feiyushi@users.noreply.github.com> Date: Wed, 13 May 2020 20:39:54 -0700 Subject: [PATCH] [Hub Generated] Review request for Microsoft.VirtualMachineImages to add version stable/2020-02-14 (#9451) --- ...n => UpdateImageTemplateToRemoveIdentities.json} | 13 ++----------- .../stable/2020-02-14/imagebuilder.json | 7 ++++--- 2 files changed, 6 insertions(+), 14 deletions(-) rename specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/{UpdateImageTemplateToUpdateIdentity.json => UpdateImageTemplateToRemoveIdentities.json} (75%) diff --git a/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/UpdateImageTemplateToUpdateIdentity.json b/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/UpdateImageTemplateToRemoveIdentities.json similarity index 75% rename from specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/UpdateImageTemplateToUpdateIdentity.json rename to specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/UpdateImageTemplateToRemoveIdentities.json index be1a04d16eb3..af55358db823 100644 --- a/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/UpdateImageTemplateToUpdateIdentity.json +++ b/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/UpdateImageTemplateToRemoveIdentities.json @@ -6,10 +6,7 @@ "api-version": "2020-02-14", "parameters": { "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_2": {} - } + "type": "None" } } }, @@ -21,13 +18,7 @@ "location": "westus", "type": "Microsoft.VirtualMachineImages/imageTemplate", "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_2": { - "clientId": "00000000-0000-0000-0000-000000000000", - "principalId": "00000000-0000-0000-0000-000000000000" - } - } + "type": "None" }, "tags": { "new-tag": "new-value" diff --git a/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/imagebuilder.json b/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/imagebuilder.json index 75cdf2ff2fae..bf5741fa8dd5 100644 --- a/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/imagebuilder.json +++ b/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/imagebuilder.json @@ -233,7 +233,7 @@ "$ref": "./examples/UpdateImageTemplateTags.json" }, "Remove identities for an Image Template.": { - "$ref": "./examples/UpdateImageTemplateToUpdateIdentity.json" + "$ref": "./examples/UpdateImageTemplateToRemoveIdentities.json" } } }, @@ -1098,9 +1098,10 @@ "properties": { "type": { "type": "string", - "description": "The type of identity used for the image template.", + "description": "The type of identity used for the image template. The type 'None' will remove any identities from the image template.", "enum": [ - "UserAssigned" + "UserAssigned", + "None" ], "x-ms-enum": { "name": "ResourceIdentityType",