Skip to content

Commit b8ac85a

Browse files
committed
Include tags from existing vault when updating a vault
1 parent f1cbf62 commit b8ac85a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ResourceManager/KeyVault/Commands.KeyVault/Models/VaultManagementClient.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ public PSVault UpdateVault(PSVault existingVault, PSVaultAccessPolicy[] updatedP
167167
parameters: new VaultCreateOrUpdateParameters()
168168
{
169169
Location = existingVault.Location,
170-
Properties = properties
170+
Properties = properties,
171+
Tags = TagsConversionHelper.CreateTagDictionary(existingVault.Tags, validate: true)
171172
}
172173
);
173174
return new PSVault(response, adClient);

0 commit comments

Comments
 (0)