Get-VBOAzureBlobFolder

Short Description

Returns Microsoft Azure Blob folders.

Syntax

Get-VBOAzureBlobFolder -Container <VBOAzureBlobContainer> [-Name <String>]  [<CommonParameters>]

Detailed Description

This cmdlet returns an array of Microsoft Azure Blob folders from the specified container.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Container

Specifies a Microsoft Azure Blob container. The cmdlet will return folders from this container.

Accepts the VBOAzureBlobContainer object.

To get this object, run the Get-VBOAzureBlobContainer cmdlet.

True

Named

False

Name

Specifies a name of the Microsoft Azure Blob folder that you want to get.

String

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

Output Object

The cmdlet returns the VBOAzureBlobFolder object that contains an array of Microsoft Azure Blob folders.

Examples

Get-VBOAzureBlobFolderExample 1. Getting All Microsoft Azure Blob Folders

This example shows how to get all folders from the Microsoft Azure Blob Storage container.

$account = Get-VBOAzureBlobAccount -Id 133dae61-cfce-4fe0-8f8d-cbe52bd5612a

$connection = New-VBOAzureBlobConnectionSettings -Account $account -RegionType Global

$container = Get-VBOAzureBlobContainer -ConnectionSettings $connection

Get-VBOAzureBlobFolder -Container $container

Perform the following steps:

  1. Run the Get-VBOAzureBlobAccount cmdlet. Save the result to the $account variable.
  2. Run the New-VBOAzureBlobConnectionSettings cmdlet. Set the $account variable as the Account parameter value. Specify the RegionType parameter value. Save the result to the $connection variable.
  3. Run the Get-VBOAzureBlobContainer cmdlet. Set the $connection variable as the ConnectionSettings parameter value. Save the result to the $container variable.
  4. Run the Get-VBOAzureBlobFolder cmdlet. Set the $container variable as the Container parameter value.

Get-VBOAzureBlobFolderExample 2. Getting Microsoft Azure Blob Folder with Specific Name

This example shows how to get the Folder06 folder from the Microsoft Azure Blob Storage container.

$account = Get-VBOAzureBlobAccount -Id 133dae61-cfce-4fe0-8f8d-cbe52bd5612a

$connection = New-VBOAzureBlobConnectionSettings -Account $account -RegionType Global

$container = Get-VBOAzureBlobContainer -ConnectionSettings $connection

Get-VBOAzureBlobFolder -Container $container -Name "Folder06"

Perform the following steps:

  1. Run the Get-VBOAzureBlobAccount cmdlet. Save the result to the $account variable.
  2. Run the New-VBOAzureBlobConnectionSettings cmdlet. Set the $account variable as the Account parameter value. Specify the RegionType parameter value. Save the result to the $connection variable.
  3. Run the Get-VBOAzureBlobContainer cmdlet. Set the $connection variable as the ConnectionSettings parameter value. Save the result to the $container variable.
  4. Run the Get-VBOAzureBlobFolder cmdlet. Set the $container variable as the Container parameter value. Specify the Name parameter value.

Related Commands

Page updated 4/23/2024

Page content applies to build 8.0.5.20