Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.31 KB

create-share-invitation-powershell.md

File metadata and controls

45 lines (31 loc) · 1.31 KB
titledescriptionauthorms.servicems.topicms.datems.authorms.custom
PowerShell script: Create an Azure Data Share invitation
This PowerShell script sends a data share invitation.
joannapea
azure-data-share
article
02/12/2025
joanpo
devx-track-azurepowershell

Use a PowerShell script to monitor the usage of a sent data share

This PowerShell script creates a data share invitation.

Sample script

# Set variables with your own values$resourceGroupName="<Resource group name>"$dataShareAccountName="<Data share account name>"$dataShareName="<Data share name>"$targetEmail="<Target email>"# Send a data share invitationNew-AzDataShareInvitation-ResourceGroupName $resourceGroupName-AccountName $dataShareAccountName-ShareName $dataShareName-Name $dataShareName-TargetEmail $targetEmail

Script explanation

This script uses the following commands:

CommandNotes
New-AzDataShareInvitationCreate a data share invitation.

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