menu
arrow_back

Clean Up Unused and Orphaned Persistent Disks

Clean Up Unused and Orphaned Persistent Disks

1 个小时 7 个积分

GSP648

Google Cloud Self-Paced Labs

Overview

In this lab, you will use Cloud Functions and Cloud Scheduler to identify and clean up wasted cloud resources. In this case, you will schedule the Cloud Function to identify and clean up unattached and orphaned persistent disks.

What you'll do

  • Create two persistent disks.
  • Create a VM that uses one of the disks.
  • Detach the disk from the VM.
  • Review the Cloud Function code.
  • Deploy the Cloud Function.
  • Test the Cloud Function by using Cloud Scheduler jobs.

加入 Qwiklabs 即可阅读本实验的剩余内容…以及更多精彩内容!

  • 获取对“Google Cloud Console”的临时访问权限。
  • 200 多项实验,从入门级实验到高级实验,应有尽有。
  • 内容短小精悍,便于您按照自己的节奏进行学习。
加入以开始此实验
分数

—/100

Create Persistent Disk

运行步骤

/ 10

Create a VM instance with Persistent Disk

运行步骤

/ 10

Detach the orphaned disk from the VM

运行步骤

/ 10

Deploy the Cloud Function

运行步骤

/ 20

Create a Cloud Scheduler task to run the Cloud Function

运行步骤

/ 20

Test the job by manually triggering it

运行步骤

/ 30