Site Constraints drive mapping
https://portal.azure.com/#view/Microsoft_Azure_FileStorage/FileShareMenuBlade/~/overview/storageAccountId/%2Fsubscriptions%2Feb3da727-e704-42e3-bb3e-2ba7a8996a2f%2FresourceGroups%2FNPD-ArcGIS%2Fproviders%2FMicrosoft.Storage%2FstorageAccounts%2Farcgissmb/path/fileshare/protocol/SMB
Here is the link in Azure to the file share
Groups need to be added in MS 365- and in the VM-
Under file share in Azure not the actual VM
there is this scrip
$connectTestResult = Test-NetConnection -ComputerName arcgissmb.file.core.windows.net -Port 445
if ($connectTestResult.TcpTestSucceeded) {
# Save the password so the drive will persist on reboot
cmd.exe /C "cmdkey /add:`"arcgissmb.file.core.windows.net`" /user:`"localhost\arcgissmb`" /pass:`"PPDS0DM9ZjHsP75qhB+ZZhqQRLKDoCOHPatPIy3AlspcXCiBee4b88Bh6OzUVc6dHuWY2DmYEB8mJMI9dDtZCA==`""
# Mount the drive
New-PSDrive -Name Z -PSProvider FileSystem -Root "\\arcgissmb.file.core.windows.net\fileshare" -Persist
} else {
Write-Error -Message "Unable to reach the Azure storage account via port 445. Check to make sure your organization or ISP is not blocking port 445, or use Azure P2S VPN, Azure S2S VPN, or Express Route to tunnel SMB traffic over a different port."
}