Dela via


Get-AzureStorSimpleStorageAccountCredential

Hämtar autentiseringsuppgifter för lagringskonton.

Kommentar

De cmdletar som refereras i den här dokumentationen är till för att hantera äldre Azure-resurser som använder Service Management-API:er. Se Az PowerShell-modulen för cmdletar för att hantera Azure Resource Manager-resurser.

Syntax

Get-AzureStorSimpleStorageAccountCredential
   [-StorageAccountName <String>]
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

Description

Cmdleten Get-AzureStorSimpleStorageAccountCredential hämtar autentiseringsuppgifter för lagringskonton. Den här cmdleten hämtar alla StorageAccountCredential-objekt som konfigurerats i tjänsten eller med namnet StorageAccountCredential.

Exempel

Exempel 1: Hämta alla autentiseringsuppgifter för en resurs

PS C:\>Get-AzureStorSimpleStorageAccountCredential
InstanceId                           Login           Name            UseSSL VolumeCount     CloudType    Location
----------                           -----           ----            ------ -----------     ---------    --------
b5e0857f-82ef-4426-883b-a612889ebee4 qwertyuiopa     AdminAccount    True   24              Azure

Det här kommandot hämtar alla tillgängliga autentiseringsuppgifter för lagringskonton för den aktuella resursen.

Exempel 2: Hämta autentiseringsuppgifterna för ett visst lagringskonto

PS C:\>Get-AzureStorSimpleStorageAccountCredential -StorageAccountName "ContosoCloudStorage"
VERBOSE: ClientRequestId: 16551af6-3398-4d30-a389-1b8eb01ce92c_PS
VERBOSE: ClientRequestId: 5041277d-4044-4b6c-ae19-4ea9e7ae135a_PS
VERBOSE: Storage Access Credential with name ContosoCloudStorage found! 


CloudType                        : Azure
Hostname                         : blob.core.windows.net
InstanceId                       : 8b3cb7bb-963b-4173-9598-52fe230b0350
IsDefault                        : False
Location                         : West US
Login                            : ContosoCloudStorage
Name                             : ContosoCloudStorage
OperationInProgress              : None
Password                         : 
PasswordEncryptionCertThumbprint : 
UseSSL                           : True
VolumeCount                      : 0

Det här kommandot hämtar lagringskontots autentiseringsuppgifter för lagringskontot med namnet ContosoCloudStorage.

Parametrar

-Profile

Anger en Azure-profil.

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

-StorageAccountName

Anger namnet på lagringskontot som autentiseringsuppgifterna ska hämtas för.

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

Indata

None

Utdata

StorageAccountCredential, IList\<StorageAccountCredential\>

Den här cmdleten returnerar ett StorageAccountCredential-objekt , om du anger parametern StorageAccountName , eller om du inte anger parametern, returneras ett IList<StorageAccountCredential-objekt> .