Skip to content

Commit

Permalink
format the help markdown files of Az.KeyVault (#18632)
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainFanZzz committed Jun 22, 2022
1 parent 13d4fdc commit 6047692
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/KeyVault/KeyVault/help/Get-AzKeyVaultManagedHsm.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ This command gets all managed HSMs in the subscription that start with "myhsm".

### Example 5: List deleted managed HSMs
```powershell
PS C:\> Get-AzKeyVaultManagedHsm -InRemovedState
Get-AzKeyVaultManagedHsm -InRemovedState
```
```output
Name Location DeletionDate ScheduledPurgeDate Purge Protection Enabled?
Expand Down
4 changes: 2 additions & 2 deletions src/KeyVault/KeyVault/help/Invoke-AzKeyVaultKeyOperation.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Invoke-AzKeyVaultKeyOperation cmdlet supports

### Encrypts using an encryption key
```powershell
$result = Invoke-AzKeyVaultKeyOperation -Operation Encrypt -Algorithm RSA1_5 -VaultName test-kv -Name test-key -Value (ConvertTo-SecureString -String "test" -AsPlainText -Force) ult
$result = Invoke-AzKeyVaultKeyOperation -Operation Encrypt -Algorithm RSA1_5 -VaultName test-kv -Name test-key -Value (ConvertTo-SecureString -String "test" -AsPlainText -Force)
$result | Format-List
```

Expand All @@ -59,7 +59,7 @@ Encrypts string "test" using test-key stored in test-kv. The returned result is
### Decrypt encrypted data
```powershell
$result
$result = Invoke-AzKeyVaultKeyOperation -Operation Decrypt -Algorithm RSA1_5 -VaultName test-kv -Name test-key -Value (ConvertTo-SecureString -String $result.Result -AsPlainText -Force) ult
$result = Invoke-AzKeyVaultKeyOperation -Operation Decrypt -Algorithm RSA1_5 -VaultName test-kv -Name test-key -Value (ConvertTo-SecureString -String $result.Result -AsPlainText -Force)
$result | Format-List
```

Expand Down
2 changes: 1 addition & 1 deletion src/KeyVault/KeyVault/help/Remove-AzKeyVaultManagedHsm.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ If you do not specify the resource group name, the cmdlet searches for the named

### Example 3: Purge a deleted managed hsm
```powershell
PS C:\> Remove-AzKeyVaultManagedHsm -Name 'myhsm' -Location "eastus" -Force -PassThru
Remove-AzKeyVaultManagedHsm -Name 'myhsm' -Location "eastus" -Force -PassThru
```

```output
Expand Down
2 changes: 1 addition & 1 deletion src/KeyVault/KeyVault/help/Update-AzKeyVaultManagedHsm.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Updates tags for the managed Hsm using piping syntax.

### Example 3: Enable purge protection for a managed Hsm
```powershell
PS C:\> Update-AzKeyVaultManagedHsm -Name $hsmName -ResourceGroupName $resourceGroupName -EnablePurgeProtection | fl
Update-AzKeyVaultManagedHsm -Name $hsmName -ResourceGroupName $resourceGroupName -EnablePurgeProtection | Format-List
```

```output
Expand Down

0 comments on commit 6047692

Please sign in to comment.