Get-AzDataShareAccount
Gets information about DataShare Accounts
Syntax
ByFieldsParameterSet (Default)
Get-AzDataShareAccount
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ByResourceGroupParameterSet
Get-AzDataShareAccount
-ResourceGroupName <String>
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ByResourceIdParameterSet
Get-AzDataShareAccount
-ResourceId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzDataShareAccount cmdlet gets information about datashare accounts in an Azure subscription / resource group. If you specify the name of an account, this cmdlet gets information about that datshare account. If you do not specify a name, this cmdlet gets information about all of the datashare accounts in an Azure subscription / resource group.
Examples
Example 1
Get-AzDataShareAccount -ResourceGroupName "ADS"
DataShareAccountName : WikiADS
ResourceGroupName : ADS
Location : WestUS
ProvisioningState : Succeeded
Tags : {}
Identity : Microsoft.Azure.PowerShell.Cmdlets.DataShare.Models.PSIdentity
Type : Microsoft.DataShare/accounts
Id : /subscriptions/4834da9b-787a-44f6-ae81-60707ab8c957/resourceGroups/ADS/providers/Microsoft.DataShare/accounts/WikiADS
DataShareAccountName : WikiADS2
ResourceGroupName : ADS
Location : westus
ProvisioningState : Succeeded
Tags : {}
Identity : Microsoft.Azure.PowerShell.Cmdlets.DataShare.Models.PSIdentity
Type : Microsoft.DataShare/accounts
Id : /subscriptions/4834da9b-787a-44f6-ae81-60707ab8c957/resourceGroups/ADS/providers/Microsoft.DataShare/accounts/WikiADS
This command displays information about all datashare accounts in the Azure subscription.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
Type: | IAzureContextContainer |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Name
Azure data share account name.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ByResourceGroupParameterSet
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ResourceGroupName
The resource group name of the azure data share account.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ByResourceGroupParameterSet
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ResourceId
The resource id of the azure data share account.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ByResourceIdParameterSet
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.