Get-AzDataShare
Get information about Data Shares.
Syntax
Get-AzDataShare
-ResourceGroupName <String>
-AccountName <String>
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzDataShare
-ResourceId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzDataShare cmdlet gets information about data shares in an Azure data share account. If you specify the name of a data share, this cmdlet gets information about that data share. If you do not specify a name, this cmdlet gets information about all of the data shares in an Azure data share account.
Examples
Example 1 : Get a specific data share
Get-AzDataShare -ResourceGroupName "ADS" -AccountName "WikiAdsAccount" -Name "AdsShare"
Name : AdsShare
Id : /subscriptions/f3ead1ff-d0ab-4cf4-9a5a-86f1661d4685/resourceGroups/ADS/providers/Microsoft.DataShare/accounts/WikiAdsAccount/shares/AdsShare
Type : Microsoft.DataShare/shares
CreatedAt : 6/11/2019 12:00:00 AM
CreatedBy : Contoso ADS
ShareKind : CopyBased
Description : Example of description
ProvisioningState : Succeeded
Terms : This should not be shared
This command displays information about data share AdsShare in the Azure data share account WikiAdsAccount and resource group ADS.
Parameters
-AccountName
Azure data share account name
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Azure data share name
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
The resource group name of the azure data share account
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceId
The resource id of the azure data share
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
Outputs
Azure PowerShell