Skip to content

Commit 3fb3a00

Browse files
authored
Update MDs (Azure#19931)
1 parent 9b5c50a commit 3fb3a00

File tree

4 files changed

+7
-23
lines changed

4 files changed

+7
-23
lines changed

src/KeyVault/KeyVault/Commands/ManagedHsm/UndoAzKeyVaultManagedHsmRemoval.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ public class UndoAzKeyVaultManagedHsmRemoval : KeyVaultManagementCmdletBase
8181
[ValidateNotNullOrEmpty()]
8282
public string Location { get; set; }
8383

84-
[Parameter(Mandatory = false,
85-
HelpMessage = "A hash table which represents resource tags.")]
86-
public Hashtable Tag { get; set; }
8784
#endregion
8885

8986
public override void ExecuteCmdlet()
@@ -103,7 +100,6 @@ public override void ExecuteCmdlet()
103100
Name = this.Name,
104101
ResourceGroupName = this.ResourceGroupName,
105102
Location = this.Location,
106-
Tags = this.Tag,
107103
CreateMode = CreateMode.Recover
108104
});
109105

src/KeyVault/KeyVault/Models/VaultManagementClient.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,8 @@ public PSManagedHsm CreateOrRecoverManagedHsm(VaultCreationOrUpdateParameters pa
480480
parameters: new ManagedHsm
481481
{
482482
Location = parameters.Location,
483-
Tags = TagsConversionHelper.CreateTagDictionary(parameters.Tags, validate: true),
483+
// Can't update Tags
484+
// Tags = TagsConversionHelper.CreateTagDictionary(parameters.Tags, validate: true),
484485
Properties = properties
485486
});
486487
}

src/KeyVault/KeyVault/help/Az.KeyVault.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ Recovers a previously deleted KeyVault-managed storage SAS definition.
206206
### [Undo-AzKeyVaultRemoval](Undo-AzKeyVaultRemoval.md)
207207
Recovers a deleted key vault into an active state.
208208

209+
### [Undo-AzKeyVaultManagedHsmRemoval](./Undo-AzKeyVaultManagedHsmRemoval.md)
210+
Recovers a deleted HSM into an active state.
211+
209212
### [Undo-AzKeyVaultSecretRemoval](Undo-AzKeyVaultSecretRemoval.md)
210213
Recovers a deleted secret in a key vault into an active state.
211214

src/KeyVault/KeyVault/help/Undo-AzKeyVaultManagedHsmRemoval.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
external help file: Microsoft.Azure.PowerShell.Cmdlets.KeyVault.dll-Help.xml
33
Module Name: Az.KeyVault
44
online version: https://docs.microsoft.com/powershell/module/az.keyvault/undo-azkeyvaultmanagedhsmremoval
5-
65
schema: 2.0.0
76
---
87

@@ -16,13 +15,13 @@ Recover a managed HSM.
1615
### Default (Default)
1716
```
1817
Undo-AzKeyVaultManagedHsmRemoval [-Name] <String> [-ResourceGroupName] <String> [-Location] <String>
19-
[-Tag <Hashtable>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [-SubscriptionId <String>]
18+
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [-SubscriptionId <String>]
2019
[<CommonParameters>]
2120
```
2221

2322
### InputObject
2423
```
25-
Undo-AzKeyVaultManagedHsmRemoval [-InputObject] <PSDeletedManagedHsm> [-Tag <Hashtable>]
24+
Undo-AzKeyVaultManagedHsmRemoval [-InputObject] <PSDeletedManagedHsm>
2625
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [-SubscriptionId <String>]
2726
[<CommonParameters>]
2827
```
@@ -157,21 +156,6 @@ Accept pipeline input: True (ByPropertyName)
157156
Accept wildcard characters: False
158157
```
159158
160-
### -Tag
161-
A hash table which represents resource tags.
162-
163-
```yaml
164-
Type: System.Collections.Hashtable
165-
Parameter Sets: (All)
166-
Aliases:
167-
168-
Required: False
169-
Position: Named
170-
Default value: None
171-
Accept pipeline input: False
172-
Accept wildcard characters: False
173-
```
174-
175159
### -Confirm
176160
Prompts you for confirmation before running the cmdlet.
177161

0 commit comments

Comments
 (0)