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 monitors data usage by listing the synchronizations of a sent data share and getting the details of a specific synchronization.
Sample script
# Set variables with your own values
$resourceGroupName = "<Resource group name>"
$dataShareAccountName = "<Data share account name>"
$dataShareName = "<Data share name>"
$synchronizationId = "<Azure synchronization id>"
# List synchronizations on a share
Get-AzDataShareSynchronization -ResourceGroupName $resourceGroupName -AccountName $dataShareAccountName -ShareName $dataShareName
#Get details of a specific synchronization
Get-AzDataShareSynchronizationDetails -ResourceGroupName $resourceGroupName -AccountName $dataShareAccountName -ShareName $dataShareName -SynchronizationId $synchronizationId
Script explanation
This script uses the following commands:
Command | Notes |
---|---|
Get-AzDataShareSynchronization | List synchronizations on a share. |
Get-AzDataShareSynchronizationDetails | Gets synchronization details of a share synchronization. |
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.