Get-​AC​SShare

Gets a list of SMB shares used in the ACS system.

Syntax

Get-ACSShare
   [[-SubscriptionId] <String>]
   [[-Token] <String>]
   [[-AdminUri] <Uri>]
   [-ResourceGroupName] <String>
   -FarmName <String>
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [-ShareName <String>]
   [-SkipCertificateValidation]
   [<CommonParameters>]

Description

The Get-ACSShare cmdlet gets a list of Server Message Block (SMB) shares used in the Azure Consistent Storage (ACS) system.

Examples

Example 1: Get a list of SMB shares

PS C:\> $ResourceGroup = "System" 

PS C:\> $Farm = Get-ACSFarm -ResourceGroupName $ResourceGroup

PS C:\> Get-ACSShare -ResourceGroupName $ResourceGroup -FarmName $Farm.Name -ShareName "Share002"

The first command stores the value named System in the variable named $ResourceGroup.

The second command uses the Get-ACSFarm cmdlet to get the farm that is contained in the resource group specified in the $ResourceGroup variable. The command stores the result in the variable named $Farm.

The third command uses the Get-ACSShare cmdlet to get the SMB shares in the share named Share002.

Required Parameters

-FarmName

Specifies the name of the ACS farm that the cmdlet gets the ACS shares from.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Specifies the name of the resource group that contains the ACS farm.

Type:String
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-AdminUri

Specifies the link, as a URI, to the service administrator.

Type:Uri
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-InformationAction

Specifies how this cmdlet responds to an information event.

The acceptable values for this parameter are:

  • Continue
  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ShareName

Specifies the name of the SMB share.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-SkipCertificateValidation

Indicates that the cmdlet does not validate the certificate.

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

Specifies the subscription ID.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Token
Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Inputs

Microsoft.AzureStack.AzureConsistentStorage.Commands.FarmResponse

Outputs

Microsoft.AzureStack.AzureConsistentStorage.Commands.ShareResponse