Get-VBRAzureBlobContainer
Short Description
Returns Azure Blob containers.
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Get-VBRAzureBlobContainer -Connection <IVBRAzureBlobConnection> [-Name <String[]>] [<CommonParameters>] |
Detailed Description
This cmdlet returns an array of Microsoft Azure Blob containers.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Connection |
Specifies an active session with Microsoft Azure Blob storage. The cmdlet will return an array of the containers added to this object storage. Accepts the following objects:
To get this object, run the |
|
True |
Named |
False |
|
Name |
Specifies an array of names of the Microsoft Azure Blob container that you want to get. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRAzureBlobContainer object that contains Microsoft Azure Blob containers.
Examples
Getting All Microsoft Azure Blob Containers
This example shows how to get all containers added to Microsoft Azure Blob storage. The cmdlet will return an array of containers added to the Global region type.
|
$account = Get-VBRAzureBlobAccount -Name "Azure Blob" $connect = Connect-VBRAzureBlobService -Account $account -RegionType Global -ServiceType ExternalRepository Get-VBRAzureBlobContainer -Connection $connect |
Perform the following steps:
- Run the
Get-VBRAzureBlobAccountReturns Microsoft Azure Blob credentials records. cmdlet. Specify theNameparameter value. Save the result to the$accountvariable. - Run the
Connect-VBRAzureBlobServiceConnects to Microsoft Azure Blob storage. cmdlet. Specify theAccount,RegionTypeand theServiceTypeparameter values. Save the result to the$connectvariable. - Run the
Get-VBRAzureBlobContainercmdlet. Set the$connectvariable as theConnectionparameter value.
Related Commands
Get-VBRAzureBlobAccountReturns Microsoft Azure Blob credentials records.Connect-VBRAzureBlobServiceConnects to Microsoft Azure Blob storage.