Description :- If you have an instance in your project and you want to update its machine type. For this you have to install Google Cloud SDK.
Steps:-
1) Delete the instance that you want to upgrade by keeping its boot disk.
gcloud compute instances delete <instance-name> --keep-disks boot
2) Now create image from this boot disk
gcloud compute images create <any-image-name> --source-disk <instance-name>
3) Now Check Images list
gcloud compute images list
4) Now Create new instance from developer console or using gcloud compute
and select your image as boot disk.
5) Done.
Note:- you can verify this by creating a file on instance before deleting it. And after creating a new instance from this you can verify the created file.
No comments:
Post a Comment