question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az vm create under PowerShell won't permit empty public-ip-address

See original GitHub issue

Description

Outline the issue here: I first noticed this issue with my full az vm create command, and I progressively simplified it until it was basically just az vm create --resource-group TEST --name TEST-VNAS --public-ip-address "" and it still threw the error: az vm create: error: argument --public-ip-address: expected one argument. That’s when I finally thought maybe this is just an issue with az under PowerShell. So I tried my original full command under a simple Command Prompt window, and it worked fine.

170629-screenshot


Environment summary

Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: MSI on Windows 10 Pro

CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here: 2.0.9 (same version under PowerShell and CMD)

OS Version: What OS and version are you using?
Answer here: Windows 10 Pro

Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: PowerShell (throws error) and CMD (no issues)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
automagicallyiocommented, Jan 18, 2019

–public-ip-address ‘“”’ worked. thanks.

2reactions
tjprescottcommented, Jun 29, 2017

The main reason is because it is assumed that people using Powershell would be using the Powershell cmdlets for working with Azure rather than Azure CLI 2.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Associate a public IP address to a virtual machine
Learn how to associate a public IP address to a virtual machine (VM) by using the Azure portal, Azure CLI or Azure PowerShell....
Read more >
Create Azure VM without a Public IP using Azure CLI
Yes, just use empty quotes to create your VM without a public IP address. If you do not specify --public-ip-address option then Azure...
Read more >
Get the List of All Azure VMs With All Their Private and Public IPs
Public IP addresses are independent resources from the VMs under the ARM model. In ASM, they can be associated directly with the VM....
Read more >
Azure IaaS: Managing Azure Virtual Machines
As discussed earlier, deploying a VM in Azure will require additional ... A public IP address is needed to communicate with the VM...
Read more >
Azure Virtual Desktop: Simple Step-by-Step Walkthrough
Select “DNS servers” and choose the “Custom” radio button. Then, add the static IP for the VM you just created (in my case,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found