Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot connect to Azure File Share

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.

like image 266
Barry Briggs Avatar asked Jan 12 '18 19:01

Barry Briggs


People also ask

How do I connect to Azure storage?

Open your storage account page and select Settings > Access keys. In the Select Resource panel of the Connect to Azure Storage dialog, select Storage account. Select Account name and key and select Next. Enter a display name for your connection, the name of the account, and one of the account keys.


1 Answers

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.

like image 178
Barry Briggs Avatar answered Oct 19 '22 19:10

Barry Briggs