Cannot connect to Azure File Share
Asked Answered
I

2

8

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.

Improve answered 12/1, 2018 at 19:52 Comment(8)
whas your Windows\powershell versions? You can find out with $PSVersionTable. I just tested and it works for me.Few
PSVersion=5.1.15063.786; BuildVersion 10.0.15063.786; CLRVersion 4.0.30319.42000Improve
learn.microsoft.com/en-us/azure/storage/files/… well its supported, i dont know, try copy\pasting in a fresh PS sessión. try rebooting?Few
Fiddler shows a 400 response, "The requested URI does not represent any resource on the server"Improve
try verifying share name, try another pc? open support ticket?Few
Think I found it -- Comcast disallows port 445.Improve
Possible duplicate of Azure Files - System error 53Calliopsis
@BarryBriggs please provide your own answer and accept it. if you resolved your issue by ownSaveloy
I
2

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.

Improve answered 20/8, 2018 at 15:8 Comment(0)
O
0

Several workaround for port 445 (SMB port) being blocked are listed here: https://learn.microsoft.com/en-us/azure/storage/files/storage-troubleshoot-windows-file-connection-problems#error-53-error-67-or-error-87-when-you-mount-or-unmount-an-azure-file-share

Ouster answered 2/3, 2020 at 22:49 Comment(1)
I would be helpful if the answer had more guidance. Something like you could follow "Solution 4 - Use REST API based tools like Storage Explorer/Powershell" and use the following powershell.code.example.Swaggering

© 2022 - 2024 — McMap. All rights reserved.