Delen via


Get-AzureStorSimpleStorageAccountCredential

Hiermee worden referenties voor opslagaccounts opgeslagen.

Notitie

De cmdlets waarnaar in deze documentatie wordt verwezen, zijn bedoeld voor het beheren van verouderde Azure-resources die gebruikmaken van ASM-API's (Azure Service Manager). Deze verouderde PowerShell-module wordt niet aanbevolen bij het maken van nieuwe resources, omdat ASM is gepland voor buitengebruikstelling. Zie Buitengebruikstelling van Azure Service Manager voor meer informatie.

De Az PowerShell-module is de aanbevolen PowerShell-module voor het beheren van ARM-resources (Azure Resource Manager) met PowerShell.

Syntax

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

Description

De cmdlet Get-AzureStorSimpleStorageAccountCredential haalt referenties op voor opslagaccounts. Met deze cmdlet worden alle StorageAccountCredential-objecten opgehaald die zijn geconfigureerd in de service of een benoemde StorageAccountCredential.

Voorbeelden

Voorbeeld 1: Alle referenties voor een resource ophalen

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

Met deze opdracht worden alle beschikbare referenties voor opslagaccounts voor de huidige resource opgeslagen.

Voorbeeld 2: De referentie voor een specifiek opslagaccount ophalen

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

Met deze opdracht haalt u de opslagaccountreferenties op voor het opslagaccount met de naam ContosoCloudStorage.

Parameters

-Profile

Hiermee geeft u een Azure-profiel op.

Type:AzureSMProfile
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

-StorageAccountName

Hiermee geeft u de naam op van het opslagaccount waarvoor referenties moeten worden opgeslagen.

Type:String
Aliases:Name
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

Invoerwaarden

None

Uitvoerwaarden

StorageAccountCredential, IList\<StorageAccountCredential\>

Met deze cmdlet wordt een StorageAccountCredential-object geretourneerd, als u de parameter StorageAccountName opgeeft of als u die parameter niet opgeeft, wordt een IList<StorageAccountCredential-object> geretourneerd.