You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 5, 2023. It is now read-only.
These are the commands I am running to export the definition of the VM, then deleting the VM and after that creating it again from the definition. I want to do this because otherwise I get charged for a VM even if it's shutdown, so I want an automated way to bring it back fast with the original VHD.
$ azure vm show --json myvm > myvm.json
...
$ azure vm delete sp-auth10
...
$ azure vm create-from myvm myvm.json
info: Executing command vm create-from
+ Looking up cloud service
+ Getting cloud service properties
+ Looking up deployment
+ Creating VM
error: Required argument VMRole.RoleName for function createDeployment is not defined
This is the content of the json file generated by azure vm show
These are the commands I am running to export the definition of the VM, then deleting the VM and after that creating it again from the definition. I want to do this because otherwise I get charged for a VM even if it's shutdown, so I want an automated way to bring it back fast with the original VHD.
This is the content of the json file generated by
azure vm show
Any workaround appreciated
Thanks
Matias
The text was updated successfully, but these errors were encountered: