Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Get-AzureStorageContainer

Get-AzureStorageContainer

microsoft.windowsazure.commands.storage.dll

Synopsis

List azure storage containers.

Syntax

Get-AzureStorageContainer [-Name] [-MaxCount] [-ContinuationToken] [-Context] [-ServerTimeoutPerRequest] [-ClientTimeoutPerRequest] [-ConcurrentTaskCount] [<CommonParameters>]

Get-AzureStorageContainer [-Prefix] [-MaxCount] [-ContinuationToken] [-Context] [-ServerTimeoutPerRequest] [-ClientTimeoutPerRequest] [-ConcurrentTaskCount] [<CommonParameters>]

Detailed Description

List azure storage containers.

Parameters

-Name <String>

Container name. If container name is empty, this will list all the containers. Otherwise, this will list the containers whose name matched the name regular pattern.

Aliases

None

Required?

false

Position

0

Default value

None

Accept pipeline input?

true (ByValue, ByPropertyName)

Accept wildcard characters?

false

-MaxCount <Nullable`1[Int32]>

The max count of the containers that can return.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-ContinuationToken <BlobContinuationToken>

Container list continuation token.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Context <AzureStorageContext>

Azure Storage Context. You can create it by New-AzureStorageContext cmdlet.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-ServerTimeoutPerRequest <Nullable`1[Int32]>

Server side time out for each request.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-ClientTimeoutPerRequest <Nullable`1[Int32]>

Client side time out for each request.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-ConcurrentTaskCount <Nullable`1[Int32]>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Prefix <String>

Container name prefix.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-PipelineVariable <string>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Get azure storage blob by namne --------------------------

PS C:\> Get-AzureStorageContainer container*

-------------------------- Get azure storage container by container name prefix --------------------------

PS C:\> Get-AzureStorageContainer -Prefix container

-------------------------- List all containers with maxCount and ContinuationToken --------------------------

PS C:\> $maxReturn = 10000


$total = 0
$token = $null
do
{
	$containers = Get-AzureStorageContainer -MaxCount $maxReturn  -ContinuationToken $token
	$total += $containers.Count
	if($containers.Length -le 0) { break;}
	$token = $containers[$containers.Count-1].ContinuationToken;
} 
while($token -ne $null)

echo "Total $total containers"

New-AzureStorageContainer
Remove-AzureStorageContainer
Set-AzureStorageContainerAcl