Get-VBOAzureBlobFolder

In this article

    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. You can get the array of all folders from your Microsoft Azure Blob storage or the array of the folders from the particular container.

    Parameters

    Parameter

    Description

    Type

    Required

    Position

    Accept Pipeline Input

    Accept Wildcard Characters

    Container

    Specifies an array of Microsoft Azure Blob containers. The cmdlet will return the folders from these containers.

    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 Microsoft Azure Blob Folders

    This example shows how to get all folders from Microsoft Azure Blob storage.

    $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 Microsoft Azure Blob storage.

    $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