Azure PowerShell Reference - Storage
This section provides detailed reference information for Azure PowerShell cmdlets used to manage Azure Storage services. Azure Storage is Microsoft's cloud storage solution for modern data storage scenarios. It includes Blob storage, File storage, Queue storage, and Table storage.
Storage Cmdlets
Explore the various cmdlets available for managing different aspects of Azure Storage:
Blob Storage
- Get-AzBlobContainer
- New-AzBlobContainer
- Remove-AzBlobContainer
- Set-AzBlobContainerAcl
- Get-AzBlob
- New-AzBlob
- Remove-AzBlob
- Get-AzBlobProperties
- Set-AzBlobProperties
- New-AzBlobBatchUpload
File Storage
- Get-AzFileShare
- New-AzFileShare
- Remove-AzFileShare
- Get-AzFileDirectory
- New-AzFileDirectory
- Remove-AzFileDirectory
- Get-AzFile
- New-AzFile
- Remove-AzFile
Queue Storage
Table Storage
Storage Account Management
- Get-AzStorageAccount
- New-AzStorageAccount
- Remove-AzStorageAccount
- Set-AzStorageAccount
- Get-AzStorageAccountKey
- New-AzStorageAccountKey
- Get-AzStorageAccountSku
Get-AzBlobContainer
SYNOPSIS
Gets a blob container.
SYNTAX
Get-AzBlobContainer [-Container] <String> [-BlobBaseUri] <String> [-Force] [-Omit] [-InformationAction <ActionPreference>] [-InformationVariable <String>]
DESCRIPTION
The Get-AzBlobContainer cmdlet gets a blob container from Azure Storage.
PARAMETERS
| Name | Type | Description | 
|---|---|---|
| -Container | String | Specifies the name of the blob container. | 
| -BlobBaseUri | String | Specifies the base URI for the blob endpoint. | 
| -Force | SwitchParameter | Specifies that the operation should be forced. | 
| -Omit | SwitchParameter | Specifies that the operation should omit certain data. | 
EXAMPLE
Get-AzBlobContainer -Container "mycontainer" -BlobBaseUri "https://myaccount.blob.core.windows.net"
New-AzBlobContainer
SYNOPSIS
Creates a blob container.
SYNTAX
New-AzBlobContainer [-Container] <String> [-BlobBaseUri] <String> [-Permission <PublicAccessType>] [-Force] [-InformationAction <ActionPreference>] [-InformationVariable <String>]
DESCRIPTION
The New-AzBlobContainer cmdlet creates a new blob container in Azure Storage.
PARAMETERS
| Name | Type | Description | 
|---|---|---|
| -Container | String | Specifies the name of the new blob container. | 
| -BlobBaseUri | String | Specifies the base URI for the blob endpoint. | 
| -Permission | PublicAccessType | Specifies the public access level for the container. Possible values are 'Off', 'Blob', 'Container'. | 
| -Force | SwitchParameter | Specifies that the operation should be forced. | 
EXAMPLE
New-AzBlobContainer -Container "newcontainer" -BlobBaseUri "https://myaccount.blob.core.windows.net" -Permission "Blob"
Remove-AzBlobContainer
SYNOPSIS
Deletes a blob container.
SYNTAX
Remove-AzBlobContainer [-Container] <String> [-BlobBaseUri] <String> [-Force] [-InformationAction <ActionPreference>] [-InformationVariable <String>]
DESCRIPTION
The Remove-AzBlobContainer cmdlet deletes a blob container from Azure Storage.
PARAMETERS
| Name | Type | Description | 
|---|---|---|
| -Container | String | Specifies the name of the blob container to delete. | 
| -BlobBaseUri | String | Specifies the base URI for the blob endpoint. | 
| -Force | SwitchParameter | Specifies that the operation should be forced without prompting. | 
EXAMPLE
Remove-AzBlobContainer -Container "mycontainer" -BlobBaseUri "https://myaccount.blob.core.windows.net" -Force
Set-AzBlobContainerAcl
SYNOPSIS
Sets the access control list (ACL) for a blob container.
SYNTAX
Set-AzBlobContainerAcl [-Container] <String> [-BlobBaseUri] <String> [-Permission <PublicAccessType>] [-Force] [-InformationAction <ActionPreference>] [-InformationVariable <String>]
DESCRIPTION
The Set-AzBlobContainerAcl cmdlet sets the public access permissions for a blob container.
PARAMETERS
| Name | Type | Description | 
|---|---|---|
| -Container | String | Specifies the name of the blob container for which to set the ACL. | 
| -BlobBaseUri | String | Specifies the base URI for the blob endpoint. | 
| -Permission | PublicAccessType | Specifies the public access level for the container. Possible values are 'Off', 'Blob', 'Container'. | 
| -Force | SwitchParameter | Specifies that the operation should be forced. | 
EXAMPLE
Set-AzBlobContainerAcl -Container "mycontainer" -BlobBaseUri "https://myaccount.blob.core.windows.net" -Permission "Container"