Badgerati / Fogg

PowerShell tool to aide and simplify the creation, deployment and provisioning of infrastructure in Azure
MIT License
7 stars 2 forks source link

If VM cores exceed max, but we're only updating, then we need a -Force argument #40

Closed Badgerati closed 7 years ago

Badgerati commented 7 years ago

The check for VM core usage exceeding the max limit stops the user from deploying VMs. However, if you re-run the script have a successful deploy, and the "cores" exceeding the limit, it will fail - even though we aren't deploying any more, just updating existing ones.

This issue is to add a -Force flag which will ignore the limit and press-on

Badgerati commented 7 years ago

This won't use -Force, as that really implies something else - like override everything in Azure regardless.

Here, I'll just add in a new switch of -IgnoreCores which will still run the core limit check for informative purposes, but the result will be ignored.