DEV Community

Cover image for Azure Management Tasks #Part 5: Clean up resources

Azure Management Tasks #Part 5: Clean up resources

Table of Contents


Introduction

Congratulations! You've completed most of the tasks associated with Microsoft Azure management tasks. In this final part of the series, we will remove all the resources created in the previous parts. It’s important to avoid unexpected costs, so ensure you completely remove resources created during this series.


Prerequisite

To successfully complete the tasks in this project, you need to

  • Login to Microsoft Azure portal.
  • Complete the previous articles in the series.
  • Make sure you do not need the resources anymore.

Step 1: Remove delete locks.

> **Important:** Clear delete locks from resources you intend to delete before issuing the delete command.
Enter fullscreen mode Exit fullscreen mode
  • From the Azure portal home page, in the search box, enter virtual machines.
  • Select virtual machines under services.
  • Select the management-tasks-vm virtual machine.

Screenshot of the VM.

  • If necessary, expand the Settings submenu.
  • Select Locks.
  • Select Delete on the line for the VM-delete-lock.
  • On the pop-up window, select Delete to confirm deletion of the lock.

Screenshot of the delete locks being deleted.

Once the delete lock is removed, you’ll be able to delete the VM. While this was the only delete lock required by the exercise, if you applied other delete locks during the exercise, remove them now. When you’re done, select Home to return to the Azure portal home page.


Step 2: Delete the project resource group

  • From the Azure portal home page, in the search box, enter Resource groups.
  • Select resource groups under services.
  • Select the management-tasks-rg resource group.

Screenshot of RG.

  • Select Delete resource group.
  • Select Apply force delete…
  • Enter management-tasks-rg in the confirmation box.
  • Select Delete.
  • On the Delete confirmation pop-up, select Delete.

Screenshot of the NetworkWatcherRG being deleted.


Step 3: Delete the NetworkWatcherRG.

> **Important:** If the NetworkWatcherRG existed prior to starting the guided project, do not delete it as part of the guided project clean up.
Enter fullscreen mode Exit fullscreen mode
  • From the Azure portal home page, in the search box, enter Resource groups.
  • Select resource groups under services.
  • Select the NetworkWatcherRG resource group.
  • Select Delete resource group.
  • Enter NetworkWatcherRG in the confirmation box.
  • Select Delete.
  • On the Delete confirmation pop-up, select Delete.

Screenshot of the NetworkWatcherRG being deleted.


Conclusion

Congratulations! You've successfully completed all the tasks for managing tasks on Microsoft Azure.


Thank you for reading my blog. 😊😊

If you need further assistance, feel free to reach out in the comments or hit me up on Twitter. You can also follow me on GitHub. My DMs are open, and love discussions on cloud topics as always! 😁

Oluwatofunmi Emmanuel Oluwaloseyi

Top comments (0)