how to resize a persistent disk in gcp

How to reduce the size of a Windows persistent disk in GCP

Introduction and Important Notes

Before I go into the details on this, I just want to provide some context and back story into this.

I will also list the references that I used at the end of this article to make sure you get to the source of this if you want to do that.

Also there are few important notes I think they worth to be mentioned so I’ll list them in this section as well.

My Use Case and Environment

So the reason I was forced to do that was the result of a mess up that happened between our team and the sales who was handling a customer requirement.

The customer wanted to have a 1 year commitment with #Google on an E2 instance with a certain amount of CPU and memory. In addition to that they wanted to reduce the size of the PD that is … Read the rest “How to reduce the size of a Windows persistent disk in GCP”

Enable snapshot schedules in GCP Compute Engine!

Intro

GCP or Google Cloud platform offers many services to customers. One of the fundamental services in GCP is the GCE, or Compute Engine.

Compute Engine is the service that allows you to run and deploy your workloads through the IaaS approach. One of the key benefits of IaaS is the ease and flexibility of resource deployment and management.

Snapshots are an important part of the service. They allow you to easily capture the whole VM state before doing any modification… Before a while, there was no option to automate the snapshot creation process without using Google Cloud SDK or gcloud command line tools.

Usually the way we used to do that is by creating a cron job, or a scheduled task that will run gcloud command and then create the snapshot. More automation involved managing the snapshots retention period from inside the script we ran from that cron … Read the rest “Enable snapshot schedules in GCP Compute Engine!”