Hi Phil
Welcome to Microsoft Q&A
Since you’ve already verified permissions, tested with a public endpoint, and still face the same issue, let’s go deeper.
- Test manual uploading via Azcopy :
Command:
azcopy copy "C:\testfile.txt" "https://<storage-account>.file.core.windows.net/<share-name>/testfile.txt?<SAS token>" --from-to=LocalFile --recursive
If this fails, it’s a connectivity issue rather than a Storage Mover issue.
- Check which Storage Mover identity can claim the Azure File Share first. Then, connect using the Storage Mover identity that can claim the target file share.
Command:
Connect-AzAccount -Identity$storage
Context = New-AzStorageContext -StorageAccountName "<your-storage-account>" -UseConnectedAccount
New-AzStorageFile -ShareName "<your-file-share>" -Path "testfile.txt" -Context $storageContext
If this fails, it’s a storage-level issue, not a Storage Mover issue.
- Check Storage Mover Logs.
Command:
StorageMoverJobRunLogs
| where TimeGenerated > ago(3d)
| where StatusCode != "AZSM0000" // Filter out success logs
| project TimeGenerated, JobRunName, StatusCode, Message
| order by TimeGenerated desc
The above query will list all job failures in the last 3 days, including the error code.
- If you have a specific Job Run ID, replace [job run ID] and check errors:
Command:
StorageMoverCopyLogsFailed
| where TimeGenerated > ago(30d)
| where JobRunName == "[job run ID]"
| project TimeGenerated, JobRunName, StatusCode, Message
| order by TimeGenerated desc
- Run this PowerShell command to check the file share quota and used capacity:
Command:
$accountName = "xxxx"
$accountKey = "xxxx"
$shareName = "xxx"
$ctx = New-AzStorageContext -StorageAccountName $accountName -StorageAccountKey $accountKey
$share = Get-AzStorageShare -Name $shareName -Context $ctx
$client = $share.ShareClient
$stats = $client.GetStatistics()
$usedBytes = $stats.Value.ShareUsageInBytes
$usedGB = [math]::Round([float]($usedBytes / 1GB), 2)
$quotaGB = [float]$share.Quota
Write-Host "Quota: $quotaGB GB"
Write-Host "Used Space: $usedGB GB"
Reference:
- Monitor copy logs in Azure Storage Mover | Microsoft Learn
- How to register an Azure Storage Mover agent | Microsoft Learn
Hope this answer helps! please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.