az vm stop in the CLI stops the VM but Stop in the portal deallocates the resources. need parity between the two?
See original GitHub issueDescription
Outline the issue here:
az vm stop in the CLI stops the VM but does not deallocate the resources. The customer continues to get charged for the resources. Stop in the portal though deallocates the resources. I think we should have parity between the 2.
Environment summary
Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here:pip
CLI Version: What version of the CLI and modules are installed? (Use az --version
)
Answer here:dev build
OS Version: What OS and version are you using?
Answer here:MACOS
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here:terminal
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
what's the difference between deallocated and stopped ? my ...
But tonight, I noticed in azure portal, the VM status showing as deallocated, but the stopped button is still available to click.
Read more >How Microsoft Azure Deallocate VM vs. Stop VM States Differ
If your VM is not running, it will have one of two states — Stopped, or Stopped (deallocated). Essentially, if something is “allocated”...
Read more >Deallocate an Azure VM Using the Azure CLI on RHEL
On Azure, if you shut down the VM by using shutdown -h or another OS command, it will stop but not deallocate it....
Read more >Azure CLI 2.0: Quickly Start / Stop ALL VMs | Build5Nines
You can easily Start and Stop Virtual Machines (VMs) through the Azure Portal. Previously, I've written about the importance of Stopping ...
Read more >Stop, Deallocate, or Delete a VM in Azure - Aster Analytics on ...
You can stop, deallocate or delete a VM in Azure. Before doing any of the following, ensure you have either stopped or terminated...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sauryadas there is the cmd
az vm deallocate
to mimic the portal version of “stop”. It seems CLI properly has 2 separate commands appropriately named and portal is overloading the term “stop” incorrectly.I think we should get Vlad to update buttons for “stop” and “stop-deallocate”.
The help for the CLI was updated as part of the merged PR above. The changes in that PR will be reflected in the next release of the CLI (January 15). The online documentation will be updated around the release as well.