Google Cloud Virtual Machine Lifecycle

Google Cloud Virtual Machine Lifecycle

Sudipta Deb

Sudipta Deb

Founder of Technical Potpourri, Co-Founder of Shrey Tech, Enterprise Cloud Architect

Understanding of Google Cloud Virtual Machine's Life Cycle is very important as it helps you to understand what action is allowed at what level. So in this blog post, I am going to explain the entire lifecycle of Google Ccloud's Virtual Machine.

Picture

The form you have selected does not exist.

Provisioning

When you define all the properrties of an instance and click Create, the instance entres into providioning state. Here the resource such as CPU, memory,   disks are being reseved, but instance is not running.

Staging

Instance moves to staging state where resources have been acquired and the instance is prepared for launch.

This is the stage where IP addresses are being assigned to VM, booting up the system imge, and booting up the system.

Running

This is the stage where the VM is actually running. Here it will go through pre-configured startup scripts and enable SSH or RDP access. From here you can do multiple stuffs like - migrate your live virtiual machine to another host in the same zone instead of requiring your instance to rebooted.

While you instance is running, it can move your VM todifferent zone, take snapshot, export the system image or reconfigure metadata. 

Stopping

Some actions on Virtual Machine needs the VM to be stopped. When VM enters into this state, it will go through pre-configured shutdown scripts and end in the Terminated state.

Terminated

From this state, you can either restart which will bring the VM back to provisioning state or you can delete it.

Repairing

When VM encounters some sort of problem, it will enter into Repaiting state for maintenance work. During this time, VM is unusuable. There will be no charge when VM is in repair. If repair is successful, VM will return to RUnning state.

Suspending / Suspended

When you suspend the VM, it enters into this state first before moving into Suspended state. You can then resume or delete the VM.

Methods Used in Lifecycle

Below is the summary of all the methods being used in the Virtual Machine's life cycle.

Method NamesState
resetremains running
restartterminated -> running
rebootrunning -> running
stoprunning -> terminated
shutdownrunning -> terminated
deleterunning -> N/A

Disclaimer

This article is not endorsed by Salesforce, Google, or any other company in any way. I shared my knowledge on this topic in this blog post. Please always refer to Official Documentation for the latest information.

Comments

Flow Repeater Element to Pre-Populate Data | Winter 25 Release

Flow Repeater Element to Pre-Populate Data | Winter 25 Release

Sudipta Deb

Sudipta Deb

Founder of Technical Potpourri, Co-Founder of Shrey Tech, Enterprise Cloud Architect

Salesforce Winter '25 Release is coming soon. In my earlier post, I have shared the information regarding the important dates about this release like when the pre-release org is coming, when sandbox will be migrated to Winter '25 and absolutely when production org will be migrated to Winter '25.

I have published a post dedicated to what are the new admin features from Winter 25 release. You can read the post by clicking here or watch the video by clicking here. In today's blog post, I will share the enhanced Flow Repeater Component where you can pre-populate the Repeater element with existing data and take actions accordingly. Please provide your feedback in the comment and don't forget to subscribe to my youtube channel and blog pot.

Watch The Video Or Read The Article (Or Do Both smile)

The form you have selected does not exist.

Introduction to Flow Repeater Component

The Flow Repeater component in Salesforce is a feature used within the Salesforce Lightning Flow Builder. It allows for the creation of dynamic lists that can display a collection of records or data. This component is particularly useful for scenarios where you need to show multiple items in a flow, such as a list of related records, and allows users to interact with these items. I have already published couple of videos in my youtube channel covering this powerful component. You can find them below -

Data Source for Flow Repeater Component

When you will add the Repeater Component in the Screen element, you will find one option Under Configure Data Source section, named as Collection for Prepopulated items. This is the place where you will provide the collection of records. Any child element you will add inside Repeater will get the data from this collection. This feature is very powerful, because if you have 4 elements inside the collection variable, repeater component will be displayed 4 times with each 4 four records displayed in one of the repeated items.

Other Properties of Flow Repeater Component

You will also configure whether you will allow yours users to add new items or allow users to remove pre-populated items under Configure Display Options section. And definitely you can control when you want to display this component under Set Component Visibility section.

Output of Flow Repeater Component

This Flow Repeater Component will provide 4 outputs to deal with different scenarios. They are -

  • All Items - This collection will contain all the pre-populated items and also the newly added items.
  • Added Items - This collection will only contain newly added items.
  • Prepopulated Items - This collection will only contain prepopulated items.
  • Removed Items - This collection will only contain removed items.

Final Thoughts

That's all for today. I hope with this blog post and youtube video, you will be able to figure this component out and will start using this in your implementation. In next couple of days, I will bring more Winter 25 features in this blog as well as my youtube channel. So it is highly recommended that you please subscribe to my channel and blog to come to know about all the nice features. Thank you!!

Disclaimer

This article is not endorsed by Salesforce, Google, or any other company in any way. I shared my knowledge on this topic in this blog post. Please always refer to Official Documentation for the latest information.

Comments

New Admin Features From Salesforce Winter ’25 Release

New Admin Features From Salesforce Winter ’25 Release

Sudipta Deb

Sudipta Deb

Founder of Technical Potpourri, Co-Founder of Shrey Tech, Enterprise Cloud Architect

Salesforce Winter '25 Release is coming soon. In my earlier post, I have shared the information regarding the important dates about this release like when the pre-release org is coming, when sandbox will be migrated to Winter '25 and absolutely when production org will be migrated to Winter '25.

This is the time when we should figure it out what new feature this release is bringing. Then implement those feature if needed in sandbox and making sure it will not break any of our existing implementation. That is why it is very important to know what new feature this release is bringing to us. In this blog post and youtube video, I will be sharing few of my favourite admin features coming along with Winter '25 release. Please provide your feedback in the comment and if you find something interesting from this release, don't forget to let me know by putting that in the comment section.

Watch The Video Or Read The Article (Or Do Both smile)

The form you have selected does not exist.

Dynamic Highlight Panel

With the introduction of Dynamic Highlight panel, you don't need to deal with Compact Layout anymore. You can add the Dynamic Highlight panel in your lightning page layout and add fields by dragging and dropping them in the desired section. You can also add actions in that section. So no more switching between Lightning Page and Compact layout to handle to look and feel of the record page. Below are few screenshots to demonstrate Dynamic Highlight Panel for Account record page.

Object Access

After Winter 25 release, if you go to any Salesforce object, you will find an option called "Object Access".Clicking on that, it will tell you what level of permissions you have for that object in each permission set, permission set group, profile level. This is a very powerful feature to provide object level access in one single place.

Access Granted By

This is one of my favourite feature from Winter 25 release. With this feature, if you go to User's View Summary Page, you will be able to find out which permission set, permission set group or profile is giving that specific permission to the user. This is super helpful while debugging some security issues like why some user is able to see particular record and why others not. From one single page, you can find out what level of access that user is having and which one is giving that permission to the user.

Description on Group & Queue

After Winter '25 Release, you will have the option to put description against Group and Queue. This is super helpful to document the reason for the group or queue and what purpose it is supposed to solve.

New Setup Menu

Winter 25 release is segregating Setup options into two. One being the old one, holding all setup options, whereas the other one is more specific to the service console and it is called Service Setup.

Enhanced User List View

Winter 25 is bringing Enhanced User List View option which you can enable by going into Setup -> Users -> User Management Settings. And from there enable the option "Enhanced User List View". This will manage users with a faster, updated user interface on the Users Setup page.

Final Thoughts

That's all for today. I hope you are as excited as me because of these faboulous features. As I discover more and more features, I will bring them to you here in. this blog as well as my youtube channel. So it is highly recommended that you please subscribe to my channel and blog to come to know about all the nice features. Thank you!!

Disclaimer

This article is not endorsed by Salesforce, Google, or any other company in any way. I shared my knowledge on this topic in this blog post. Please always refer to Official Documentation for the latest information.

Comments

Salesforce Winter ’25 Release Date + Preview Information

Salesforce Winter ’25 Release Date + Preview Information

Sudipta Deb

Sudipta Deb

Founder of Technical Potpourri, Co-Founder of Shrey Tech, Enterprise Cloud Architect

Salesforce Winter '25 Release is coming soon. In this post, I will share the information available today regarding this release, so you can be prepared in advance.

As more information comes in, I will be publishing those as well. So it is highly recommended that you please subscribe to my blog so that you will get the email right in your mailbox about all my upcoming blog posts.

The form you have selected does not exist.

What to Expect in Salesforce Winter ’25

Salesforce’s dedication to ongoing enhancement and customer-focused innovation is clearly reflected in their latest update. This release brings notable improvements across a range of Salesforce products and platforms, including Sales Cloud, Service Cloud, Marketing Cloud, and more. Key highlights are:

  1. Advanced AI Features: Salesforce continues to innovate in artificial intelligence with upgraded Einstein AI capabilities, providing more intuitive and predictive insights to propel your business.
  2. Optimized User Experience: The Winter '25 release prioritizes user interface and experience, offering sleeker designs and more intuitive navigation to enhance usability.
  3. Enhanced Integration Options: Look forward to deeper, more seamless integrations with third-party apps and systems, ensuring Salesforce remains central to your digital ecosystem.
  4. Greater Customization: Customize Salesforce to meet your unique business requirements with more options, providing increased flexibility and control.
  5. Superior Data Security: Salesforce remains committed to data security, with the new release introducing advanced features to safeguard your data more effectively.

Why Stay Tuned?

The Salesforce Winter '25 Release is more than just an update; it’s a step into the future of CRM technology. Staying abreast of these updates ensures that your business leverages the most advanced tools available, keeping you ahead of the curve in a rapidly evolving digital landscape.

Information about The Release Dates for Salesforce Winter '25

The release date for Winter '25 will depend on your Salesforce instance. Here are the main release weekends.

    • September 6, 2024
    • October 4, 2024
    • Octiber 12, 2024

Please refer Salesforce trust website, click on your instance name and hit “Maintenance”. This will show the dates when your production environment will get Winter '25 release.

Information about Winter '25 Sandbox Preview

One of the most important thing that you might be wondering when my sandbox will be upgraded to Winter 25. This is the chance when you as an admin or developer can test your existing implementation making sure new release is not breaking any of your existing code base. 

Salesforce normally has two release windows for Sandboxes. It totally depends on whether your Sandbox is a “Preview” instance or a “Non-Preview” instance. The official date for teh Sandbox preview is August 30th, 2024

Information about Winter '25 Pre-Release Org

Salesforce Pre-release orgs are a fantastic method to familiarize yourself with the new release before it arrives in your sandboxes. If you already have a preview orgs, it has been updated with the Winter '25 release, and you may log in to access the newest features.

Otherwise, you can sign up for a Winter '25 Pre-Release Org starting August 8th, 2024. For link click here.

Information about Salesforce Winter '25 Release Notes

Salesforce Release Notes is the place where you will come to know all the new and enhanced features for the first time. You need to go through the notes and find out the new features or potential areas where you need to test your implementation. Release notes are very organized and for each cloud, you will find different sections. Winter '25 Release notes will be available on August 14th, 2024. You find find the details by clicking here.

Final Thoughts

As we eagerly await the detailed release notes from Salesforce, stay tuned to our blog for in-depth analyses, feature breakdowns, and expert insights on how to make the most of the Salesforce Winter '25 Release. Whether you’re a seasoned Salesforce professional or just beginning your CRM journey, the Winter '25 Release has something exciting for everyone.

Disclaimer

This article is not endorsed by Salesforce, Google, or any other company in any way. I shared my knowledge on this topic in this blog post. Please always refer to Official Documentation for the latest information.

Comments

Important Parameters While Creating Virtual Machine with gcloud in GCP

Important Parameters While Creating Virtual Machine with gcloud in GCP

Sudipta Deb

Sudipta Deb

Founder of Technical Potpourri, Co-Founder of Shrey Tech, Enterprise Cloud Architect

In this blog post and video, I am going to show you two important parameters you can use while creating Virtual Machine with gcloud command. These will define the maximum duration the virtual machine will execute and what will happen after the time is over.

The form you have selected does not exist.

Watch The Video Or Read The Article (Or Do Both smile)

Create Virtual Machine with gcloud

We can create Virtual Machine in Google Cloud by executing the below command. This command takes lots of parameters to configure the Virtual Machine as needed. It gives lots of flexibility to the developer. Click here to go through the documentation of this command.

gcloud compute instances create instance-1 --machine-type=n1-standard-1 --zone=us-central1-b

The above command will create the Virtual Machine with name as instance-1, machine type as n1-standard-1 and zone as us-central1-b

Parameter #1: max_run_duration

This parameter limits how long this VM instance can run, specified as a duration relative to the last time when the VM began running. For example, specify 15m for a duration of 15 minutes or specify 2d5h31m4s for a duration of 2 day2, 5 hours, 31 minutes, and 4 seconds. 

Parameter #2: instance-termination-action

Specifies the termination action that will be taken upon VM preemption (--provisioning-model=SPOT) or automatic instance termination (--max-run-duration). We have two options here - either DELETE or STOP.

DELETE - Permanently delete the VM.

STOP - Default only for Spot VMs. Stop the VM without preserving memory. The VM can be restarted later.

Final gcloud Command

Including both the above parameters in gcloud command while creating Virtual Machine will give the flexibility to control how long the Virtual Machine will execute and what will be happen at the end of the execution. Here is a sample command -

gcloud compute instances create sudipta-vm-test \
--zone=us-central1-a \
--max-run-duration=15m \
--instance-termination-action=DELETE

The above command is going to create the virtual machine which will remain live for 15 minutes and after 15 minutes, Google Cloud will automatically delete the virtual machine.

Final Thoughts

That's all for today. I think these two are very important parameters. When we are practicing something with limited credit, we don't want our Virtual Machine to run for idefinitely amount of time, which will create unexpected billing. So it is always a good idea to create Virtual Machines with these parameters so that it will only execute for specified amount of time and after that it will get deleted automatically. And thus no impact on billing. What do you think. Please provide your feedback below in the comment section. Thank you !!

Disclaimer

This article is not endorsed by Salesforce, Google, or any other company in any way. I shared my knowledge on this topic in this blog post. Please always refer to Official Documentation for the latest information.

Comments