Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.22 KB

create-new-share-powershell.md

File metadata and controls

43 lines (30 loc) · 1.22 KB
titledescriptionauthorms.servicems.topicms.datems.authorms.custom
PowerShell script: create a new Azure Data Share
This PowerShell script creates a new data share within an existing Data Share account.
joannapea
azure-data-share
article
02/12/2025
joanpo
devx-track-azurepowershell

Use PowerShell to create a Data Share in Azure

This PowerShell script creates a new Data Share within an existing Data Share account.

Sample script

# Set variables with your own values$resourceGroupName="<Resource group name>"$dataShareAccountName="<Data share account name>"$dataShareName="<Data share name>"# Create a new Azure Data ShareNew-AzDataShare-ResourceGroupName $resourceGroupName-AccountName $dataShareAccountName-Name $dataShareName

Script explanation

This script uses the following commands:

CommandNotes
New-AzDataShareCreates a data share.

Related content

For more information on the Azure PowerShell, see Azure PowerShell documentation.

Other Azure Data Share PowerShell script samples can be found in the Azure Data Share PowerShell samples.

close