Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IP Config Allocation Update #7176

Closed
rohrerb opened this issue Aug 29, 2018 · 3 comments · Fixed by #7459
Closed

IP Config Allocation Update #7176

rohrerb opened this issue Aug 29, 2018 · 3 comments · Fixed by #7459
Assignees
Milestone

Comments

@rohrerb
Copy link

rohrerb commented Aug 29, 2018

Would it be possible to allow updating the IP Configuration allocation (static / dynamic) from https://docs.microsoft.com/en-us/cli/azure/network/nic/ip-config?view=azure-cli-latest.

It seems you can do it from powershell but not from CLI except for when creating a VM in a single line.

In my scenario we don't' have a public ip address and a single ip config that we need to change from static to dynamic.

@tjprescott
Copy link
Member

Hi @rohrerb I'd like to understand your scenario better. Are you creating NICs yourself or letting vm create create them for you? If you create them yourself, then the CLI's logic is as follows:

  1. If you provide a private-ip-address, then it is static.
  2. If you provide a public-ip-address then you had to create that public-ip with either static or dynamic configuration.

@tjprescott tjprescott added Network az network vnet/lb/nic/dns/etc... question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Aug 29, 2018
@rohrerb
Copy link
Author

rohrerb commented Aug 29, 2018

Understood. The portal allows you to select dynamic or static when using private ip address. If static is chosen we are forced to input a ip address and dynamic grabs next available.

It would be helpful to toggle the allocation for private ips as the portal allows this functionality.

@tjprescott tjprescott added Feature and removed question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Aug 29, 2018
@tjprescott tjprescott added this to the Backlog milestone Aug 29, 2018
@tjprescott tjprescott modified the milestones: Backlog, Sprint 46 Sep 24, 2018
@tjprescott tjprescott self-assigned this Sep 24, 2018
@tjprescott
Copy link
Member

tjprescott commented Oct 1, 2018

Hi @rohrerb could you be more specific about which command you would like changed?

Actually, this is already supported. If you supply --private-ip-address "" (Windows) or --private-ip-address '' (nix) it will switch to Dynamic behavior. It simply isn't documented as such. I'll make a PR to update the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants