Get-AzSpatialAnchorsAccountKey

Get keys of Spatial Anchors Account

Syntax

Get-AzSpatialAnchorsAccountKey
   -ResourceGroupName <String>
   -Name <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzSpatialAnchorsAccountKey
   -ResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzSpatialAnchorsAccountKey
   -InputObject <PSSpatialAnchorsAccount>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get developer keys of Spatial Anchors Account.

Examples

Example 1

PS C:\> Get-AzSpatialAnchorsAccountKey -ResourceGroup rg1 -Name example

PrimaryKey                                   SecondaryKey
----------                                   ------------
QTwT6LpnD6NuUfgfkCKFBmf89xWJ7tDC0Yx0yxxaejs= BGOP2NZN5ThHbDFKzW+FISSgxnnBqCPKpTsixAxkvXk=

Get developer keys of Spatial Anchors Account "example" from current Subscription and Resource Group "rg1".

Example 2

PS C:\> Get-AzSpatialAnchorsAccount -ResourceGroup rg1 -Name example | Get-AzSpatialAnchorsAccountKey 

PrimaryKey                                   SecondaryKey
----------                                   ------------
QTwT6LpnD6NuUfgfkCKFBmf89xWJ7tDC0Yx0yxxaejs= BGOP2NZN5ThHbDFKzW+FISSgxnnBqCPKpTsixAxkvXk=

Get developer keys of Spatial Anchors Account "example" from current Subscription and Resource Group "rg1" with piping.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

The custom domain object.

Type:PSSpatialAnchorsAccount
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-Name

Spatial Anchors Account Name.

Type:String
Aliases:SpatialAnchorsAccountName, AccountName
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceGroupName

Resource Group Name.

Type:String
Aliases:ResourceGroup
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceId

Resource ID of Spatial Anchors Account.

Type:String
Aliases:Id
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

PSSpatialAnchorsAccount

Outputs

Microsoft.Azure.Commands.MixedReality.SpatialAnchorsAccount.PSAccountKeys