Then the VM needs to be marked as generalized on the platform. The VM will still be running at this point.ĭeallocate the VM that you deprovisioned with az vm deallocate so that it can be generalized. You can add the -force parameter to avoid this confirmation step.Īfter the command completes, enter exit to close the SSH client. To keep user account credentials in the VM, use only -deprovision.Įnter y to continue. The +user parameter also removes the last provisioned user account. This command does not guarantee that the image is cleared of all sensitive information or is suitable for redistribution. Only run this command on a VM that you'll capture as an image.
0 Comments
Leave a Reply. |