Get-AzDedicatedHsm
Gets the specified Azure dedicated HSM.
Syntax
List1 (Default)
Get-AzDedicatedHsm
[-SubscriptionId <String[]>]
[-Top <Int32>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get
Get-AzDedicatedHsm
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
List
Get-AzDedicatedHsm
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-Top <Int32>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
GetViaIdentity
Get-AzDedicatedHsm
-InputObject <IDedicatedHsmIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Gets the specified Azure dedicated HSM.
Examples
Example 1: Get all Dedicated HSM under a subscription
Get-AzDedicatedHsm
Name Provisioning State SKU Location
---- ------------------ --- --------
hsm-7t2xaf Succeeded SafeNet Luna Network HSM A790 eastus
yeminghsm Succeeded SafeNet Luna Network HSM A790 eastus
This command gets all Dedicated HSM under a subscription
Example 2: Get all Dedicated HSM under a resource group.
Get-AzDedicatedHsm -ResourceGroupName dedicatedhsm-rg-n359cz
Name Provisioning State SKU Location
---- ------------------ --- --------
hsm-7t2xaf Succeeded SafeNet Luna Network HSM A790 eastus
This command gets all Dedicated HSM under a resource group.
Example 3: Get a Dedicated HSM by name
Get-AzDedicatedHsm -Name hsm-7t2xaf -ResourceGroupName dedicatedhsm-rg-n359cz
Name Provisioning State SKU Location
---- ------------------ --- --------
hsm-7t2xaf Succeeded SafeNet Luna Network HSM A790 eastus
This command gets a Dedicated HSM by name.
Example 4: Get a Dedicated HSM by object
$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
Name Provisioning State SKU Location
---- ------------------ --- --------
hsm-n7wfxi Succeeded SafeNet Luna Network HSM A790 eastus
This command gets a Dedicated HSM by object.
Parameters
-DefaultProfile
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Parameter properties
Type: PSObject
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzureRMContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Identity Parameter
GetViaIdentity
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-Name
The name of the dedicated HSM.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
Get
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ResourceGroupName
The name of the Resource Group to which the dedicated hsm belongs.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
Get
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
List
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-SubscriptionId
Subscription credentials which uniquely identify Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
Parameter properties
Type: String [ ]
Default value: (Get-AzContext).Subscription.Id
Supports wildcards: False
DontShow: False
Parameter sets
List1
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Get
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
List
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Top
Maximum number of results to return.
Parameter properties
Type: Int32
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
List1
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
List
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs