8
votes

Created Azure file share in portal and copied the PowerShell script to connect it as drive Q: (verified not in use). Response:

New-PSDrive : The network resource type is not correct
At line:3 char:1
+ New-PSDrive -Name Q -PSProvider FileSystem -Root "\\xxxx.file.c ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (Q:PSDriveInfo) [New-PSDrive],  Win32Exception
+ FullyQualifiedErrorId :      CouldNotMapNetworkDrive,Microsoft.PowerShell.Commands.NewPSDriveCommand

where "xxxx" is the share name. The PS command was copied directly from the portal and not altered.

2
whas your Windows\powershell versions? You can find out with $PSVersionTable. I just tested and it works for me.4c74356b41
PSVersion=5.1.15063.786; BuildVersion 10.0.15063.786; CLRVersion 4.0.30319.42000Barry Briggs
docs.microsoft.com/en-us/azure/storage/files/… well its supported, i dont know, try copy\pasting in a fresh PS sessión. try rebooting?4c74356b41
Fiddler shows a 400 response, "The requested URI does not represent any resource on the server"Barry Briggs
Think I found it -- Comcast disallows port 445.Barry Briggs

2 Answers

1
votes

As noted in comments above, Comcast blocks port 445. Solution was to have another object in the cloud reference the Azure File and then return the data to the client over HTTP.