3

I'm fairly new to OCI.
What is a similar or close concept in Oracle Cloud Infrastructure similar to Microsoft Azure "Resource Groups"?

In Azure when a resource group is deleted all resources in that group will also be deleted along with it. But "Compartments" in Oracle cloud infrastructure is not the exact same concept, because in order to delete a compartment, each resource should be deleted first and then the compartment should be deleted. Is it possible to delete a compartment along with its resources without deleting resources one by one?

Nutella
  • 83
  • 8
Shehan Weerasooriya
  • 456
  • 2
  • 4
  • 17

2 Answers2

2

I see two options here:

  • You may use instance pools. Deleting an instance pool will delete all of its resources, but that only includes instances, boot volumes and block volumes. Networking and other resources wouldn't be impacted. Instance Pool only works for compute instances having the same configuration, so this is not a generic solution for your question.
  • Resource Manager can be used to create a stack with all the resources you need. When you destroy a stack by launching a destroy job, it will delete all the resources that are part of the stack. But resource manager requires you to create Terraform config files, which can be applied through the OCI Console. This also means that you cannot create any components of the stack manually using the GUI, you have to keep using the Resource Manager even if you would like to update any resources of the stack.
lsarecz
  • 318
  • 1
  • 9
1

Compartments in Oracle Cloud Infrastructure is similar to Azure Resource groups.

As per the doc, It is not possible to delete all the resources in compartment at a time similar to Azure.

karthik_varma_k
  • 223
  • 1
  • 19