Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 invitation
New-AzDataShareInvitation -ResourceGroupName $resourceGroupName -AccountName $dataShareAccountName -ShareName $dataShareName -Name $dataShareName -TargetEmail $targetEmail
Script explanation
This script uses the following commands:
Command | Notes |
---|---|
New-AzDataShareInvitation | Create 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.