Skip to content

Commit 74c7666

Browse files
authored
Merge pull request #3444 from seanbamsft/tags
Include tags from existing vault when updating a vault
2 parents c776647 + b8ac85a commit 74c7666

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)