Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions src/DedicatedHsm/help/Get-AzDedicatedHsm.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ Gets the specified Azure dedicated HSM.

### Example 1: Get all Dedicated HSM under a subscription
```powershell
PS C:\> Get-AzDedicatedHsm
Get-AzDedicatedHsm
```

```output
Name Provisioning State SKU Location
---- ------------------ --- --------
hsm-7t2xaf Succeeded SafeNet Luna Network HSM A790 eastus
Expand All @@ -54,8 +56,10 @@ This command gets all Dedicated HSM under a subscription

### Example 2: Get all Dedicated HSM under a resource group.
```powershell
PS C:\> Get-AzDedicatedHsm -ResourceGroupName dedicatedhsm-rg-n359cz
Get-AzDedicatedHsm -ResourceGroupName dedicatedhsm-rg-n359cz
```

```output
Name Provisioning State SKU Location
---- ------------------ --- --------
hsm-7t2xaf Succeeded SafeNet Luna Network HSM A790 eastus
Expand All @@ -65,8 +69,10 @@ This command gets all Dedicated HSM under a resource group.

### Example 3: Get a Dedicated HSM by name
```powershell
PS C:\> Get-AzDedicatedHsm -Name hsm-7t2xaf -ResourceGroupName dedicatedhsm-rg-n359cz
Get-AzDedicatedHsm -Name hsm-7t2xaf -ResourceGroupName dedicatedhsm-rg-n359cz
```

```output
Name Provisioning State SKU Location
---- ------------------ --- --------
hsm-7t2xaf Succeeded SafeNet Luna Network HSM A790 eastus
Expand All @@ -76,9 +82,11 @@ This command gets a Dedicated HSM by name.

### Example 4: Get a Dedicated HSM by object
```powershell
PS C:\> $hsm = New-AzDedicatedHsm -Name hsm-n7wfxi -ResourceGroupName dedicatedhsm-rg-n359cz -Location eastus -Sku "SafeNet Luna Network HSM A790" -StampId stamp1 -SubnetId "/subscriptions/xxxx-xxxx-xxx-xxx/resourceGroups/dedicatedhsm-rg-n359cz/providers/Microsoft.Network/virtualNetworks/vnetq30la9/subnets/hsmsubnet" -NetworkInterface @{PrivateIPAddress = '10.2.1.120' }
PS C:\> Get-AzDedicatedHsm -InputObject $hsm
$hsm = New-AzDedicatedHsm -Name hsm-n7wfxi -ResourceGroupName dedicatedhsm-rg-n359cz -Location eastus -Sku "SafeNet Luna Network HSM A790" -StampId stamp1 -SubnetId "/subscriptions/xxxx-xxxx-xxx-xxx/resourceGroups/dedicatedhsm-rg-n359cz/providers/Microsoft.Network/virtualNetworks/vnetq30la9/subnets/hsmsubnet" -NetworkInterface @{PrivateIPAddress = '10.2.1.120' }
Get-AzDedicatedHsm -InputObject $hsm
```

```output
Name Provisioning State SKU Location
---- ------------------ --- --------
hsm-n7wfxi Succeeded SafeNet Luna Network HSM A790 eastus
Expand Down
7 changes: 3 additions & 4 deletions src/DedicatedHsm/help/Remove-AzDedicatedHsm.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,16 @@ Deletes the specified Azure Dedicated HSM.

### Example 1: Remove a Dedicated HSM by name
```powershell
PS C:\> Remove-AzDedicatedHsm -Name hsm-7t2xaf -ResourceGroupName lucas-manual-test
Remove-AzDedicatedHsm -Name hsm-7t2xaf -ResourceGroupName lucas-manual-test

```

This commnad removes a hardware security module(HSM) by name.

### Example 2: Remove a Dedicated HSM by object
```powershell
PS C:\> $hsm = Get-AzDedicatedHsm -Name hsm-7t2xaf -ResourceGroupName dedicatedhsm-rg-n359cz
PS C:\> Remove-AzDedicatedHsm -InputObject $hsm

$hsm = Get-AzDedicatedHsm -Name hsm-7t2xaf -ResourceGroupName dedicatedhsm-rg-n359cz
Remove-AzDedicatedHsm -InputObject $hsm
```

This commnad removes a Dedicated HSM by object.
Expand Down
10 changes: 7 additions & 3 deletions src/DedicatedHsm/help/Update-AzDedicatedHsm.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ Update a dedicated HSM in the specified subscription.

### Example 1: Update the parameter tag of the Dedicated HSM by name
```powershell
PS C:\> Update-AzDedicatedHsm -Name hsm-n7wfxi -ResourceGroupName dedicatedhsm-rg-n359cz -Tag @{'key1' = '1'; 'key2' = 2; 'key3' = 3}
Update-AzDedicatedHsm -Name hsm-n7wfxi -ResourceGroupName dedicatedhsm-rg-n359cz -Tag @{'key1' = '1'; 'key2' = 2; 'key3' = 3}
```

```output
Name Provisioning State SKU Location
---- ------------------ --- --------
hsm-n7wfxi Succeeded SafeNet Luna Network HSM A790 eastus
Expand All @@ -42,9 +44,11 @@ This command updates the parameter tag of the Dedicated HSM by name

### Example 2: Update the parameter tag of the Dedicated HSM by object
```powershell
PS C:\> $hsm = Get-AzDedicatedHsm -Name hsm-n7wfxi -ResourceGroupName dedicatedhsm-rg-n359cz
PS C:\> Update-AzDedicatedHsm -InputObject -Tag @{'key1' = '1'; 'key2' = 2; 'key3' = 3}
$hsm = Get-AzDedicatedHsm -Name hsm-n7wfxi -ResourceGroupName dedicatedhsm-rg-n359cz
Update-AzDedicatedHsm -InputObject -Tag @{'key1' = '1'; 'key2' = 2; 'key3' = 3}
```

```output
Name Provisioning State SKU Location
---- ------------------ --- --------
hsm-n7wfxi Succeeded SafeNet Luna Network HSM A790 eastus
Expand Down