Bearbeiten

Freigeben über


Get-AzStackHCIVMStoragePath

Gets a storage container

Syntax

Get-AzStackHCIVMStoragePath
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzStackHCIVMStoragePath
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzStackHCIVMStoragePath
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzStackHCIVMStoragePath
   [-ResourceId <String>]
   [-DefaultProfile <PSObject>]
   [-NoWait]
   [<CommonParameters>]

Description

Gets a storage container

Examples

Example 1: Get a Storage Path

Get-AzStackHCIVMStoragePath -Name  "testStoragePath" -ResourceGroupName "test-rg"

Name            ResourceGroupName
----            -----------------
testStoragePath       test-rg

This command gets a specific storage path in the specified resource group.

Example 2: List all Storage Paths in a Resource Group

Get-AzStackHCIVMStoragePath  -ResourceGroupName "test-rg"

Name            ResourceGroupName
----            -----------------
testStoragePath       test-rg

This command lists all storage paths in the specified resource group.

Parameters

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Name of the storage container

Type:String
Aliases:StorageContainerName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-NoWait

Run the command asynchronously

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

The name of the resource group. The name is case insensitive.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

The ARM ID of the storage path.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

The ID of the target subscription.

Type:String[]
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

IStorageContainers