Azure-docs: This is just too complicated

Created on 15 Mar 2020  Â·  4Comments  Â·  Source: MicrosoftDocs/azure-docs

All I want to do is store a ton of files in Azure. Got that set up, but it turns out port 445 is blocked by my company because of WannaCry. So, apparently I need a P2S VPN.

I wish I didn't need to be an expert in debugging PowerShell in order to just store files in Azure. I get many errors when trying to run the scripts on this page. Can you make something that's just point-and-click? Because outgoing port 445 traffic is likely blocked everywhere, since it's a Department of Homeland Security recommendation, then most everyone will need this VPN. Many potential customers will just run away when confronted with all this complexity.

For example, I just lost a chunk of my life due to an extra whitepace after a backtick in the first script. If you run the script as is, you'll get an unhelpful error. It's probably clear to PowerShell gurus, but I'm a Linux guy who just wants to get something done.

Please double check all scripts on this page. The next script block also gave me an error.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 cxp filesubsvc product-question storagsvc triaged

All 4 comments

@gc435 , Thank you for your feedback. We will investigate and get back to you shortly.

I am having the same issue. The errors are usually after anything that is using a defined resource:

Add-AzStorageAccountNetworkRule : Cannot bind argument to parameter 'VirtualNetworkResourceId' because it is null.
At C:\Users\Bruce\Desktop\lock.ps1:11 char:31

+ -VirtualNetworkResourceId $serviceEndpointSubnet.Id

It is almost as if the syntax of these commands have changed. Another note, when using the "New-AzPublicIpAddress" command. It asks you for your resource group name then goes straight to allocation method. which is weird because I should have to define the name before hand. Then it complains about me trying to add something without a name. so something is clearly broken here.
the last portion I had success with was the virtual network setup. It shows in the virtual network section of my resource group that there is a new virtual network, with the name i specified. So it looks like this could all be performed from the azure portal itself. maybe add a wiki page for how to do it that way?

@brewst001 There are several places in the scripts which have spaces after the backticks. If you don't catch all of these mistakes, you'll see the behavior you describe. I edited the scripts in VS Code and turned on the feature to see whitespace. Also, if you have PowerShell support in VS Code, the mistakes will be underlined.

I was able to get the scripts to run without errors after a lot of time. I was able to mount the share. However, I can't get the share to mount from File Explorer or in other PowerShell windows.

It's just too complicated.

@gc435 and @brewst001 I would like work closer on this issue. I'd recommend posting your question in https://social.msdn.microsoft.com/forums/azure/en-US/home?forum=windowsazuredata since it's not directly related to the documentation. We'll follow up there. We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spottedmahn picture spottedmahn  Â·  3Comments

jamesgallagher-ie picture jamesgallagher-ie  Â·  3Comments

mrdfuse picture mrdfuse  Â·  3Comments

jharbieh picture jharbieh  Â·  3Comments

varma31 picture varma31  Â·  3Comments