Get-​AC​SStorage​Account

Gets a list of the tenant storage accounts based on the tenant subscription ID, account name, account status, or an account ID.

Syntax

Get-ACSStorageAccount
   [[-SubscriptionId] <String>]
   [[-Token] <String>]
   [[-AdminUri] <Uri>]
   [-ResourceGroupName] <String>
   [-FarmName] <String>
   [-AccountId] <String>
   [-Detail]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [-SkipCertificateValidation]
   [<CommonParameters>]
Get-ACSStorageAccount
   [[-SubscriptionId] <String>]
   [[-Token] <String>]
   [[-AdminUri] <Uri>]
   [-ResourceGroupName] <String>
   [-FarmName] <String>
   [[-TenantSubscriptionId] <String>]
   [[-PartialAccountName] <String>]
   [[-StorageAccountStatus] <Int32>]
   [-Detail]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [-SkipCertificateValidation]
   [<CommonParameters>]

Description

The Get-ACSStorageAccount cmdlet gets a list of the tenant storage accounts based on the tenant subscription ID, account name (or part of the account name) ,account status, account ID.

Examples

Example 1: Get a list of tenant storage account

$ResourceGroup = "System" 

$Farm = Get-ACSFarm -ResourceGroupName $ResourceGroup

Get-ACSStorageAccount -ResourceGroupName $ResourceGroup -FarmName $Farm.Name -PartialAccountName "Account002"

The first command stores the value named System in the variable named $ResourceGroup.

The second command uses the Get-ACSFarm cmdlet to get the farm that is contained in the resource group specified in the $ResourceGroup variable. The command stores the result in the variable named $Farm.

The third command uses the Get-ACSStorageAccount cmdlet to get the storage account named Account002.

Required Parameters

-AccountId

Specifies the Account ID that the cmdlet uses to get the storage account.

Type:String
Position:8
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-FarmName

Specifies the name of the ACS farm that this cmdlet gets the storage account from.

Type:String
Position:4
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Specifies the resource group

Type:String
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-AdminUri

Specifies the link, as a URI, to the service administrator.

Type:Uri
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Detail
Type:SwitchParameter
Position:9
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationAction

Specifies how this cmdlet responds to an information event.

The acceptable values for this parameter are:

  • Continue
  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

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

Specifies a partial account name that the cmdlet uses to search for storage accounts.

Type:String
Position:6
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SkipCertificateValidation

Indicates that the cmdlet does not validate the certificate.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StorageAccountStatus

Specifies the status of the storage account that this cmdlet gets.

Type:Int32
Position:7
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SubscriptionId

Specifies the subscription ID.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-TenantSubscriptionId

Specifies the tenant subscription ID that this cmdlet uses to get the storage account.

Type:String
Position:5
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Token
Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Inputs

Microsoft.AzureStack.AzureConsistentStorage.Commands.FarmResponse

Outputs

Microsoft.AzureStack.AzureConsistentStorage.Commands.StorageAccountResponse