你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Get-AzDataBoxEdgeStorageAccountCredential

Gets the storage account credentials corresponding to the storage account on the device.

Syntax

Get-AzDataBoxEdgeStorageAccountCredential
   [-ResourceGroupName] <String>
   [-DeviceName] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzDataBoxEdgeStorageAccountCredential
   -ResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzDataBoxEdgeStorageAccountCredential
   [-ResourceGroupName] <String>
   [-DeviceName] <String>
   [-Name] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzDataBoxEdgeStorageAccountCredential
   [[-Name] <String>]
   [-DefaultProfile <IAzureContextContainer>]
   -DeviceObject <PSDataBoxEdgeDevice>
   [<CommonParameters>]

Description

The Get-AzDataBoxEdgeStorageAccountCredential cmdlet gets the storage account credentials for the corresponding storage account on the Data Box Edge device. You can specify Name, Resource Group Name and Device Name parameters to get information about a specific storage account credential.

Examples

Example 1

Get-AzDataBoxEdgeStorageAccountCredential -ResourceGroupName resourceGroupName -DeviceName deviceName

Name                          StorageAccount          SslStatus  ResourceGroupName
----------------------------- ---------------------- ---------- ---------------------
storageAccountCredentialName  StorageAccountName     Enabled    resourceGroupName

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

-DeviceName

Device Name

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-DeviceObject

Please provide corresponding device object

Type:PSDataBoxEdgeDevice
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-Name

Name of the storage account to be used

Type:String
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Resource Group Name

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

Azure ResourceId

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

Inputs

PSDataBoxEdgeDevice

Outputs

PSDataBoxEdgeStorageAccountCredential