Create an Azure Resource Group using Cloud Catalog Item

Aidan
Tera Guru

I have a simple requirement to simply create a catalog item which allows for resource groups to be created in Azure.  I can create a suitable template and build the catalog item, however the problem comes with the default fields that ServiceNow adds.

 

So what's happening is that ServiceNow is creating the Resource group from it's own attributes and then trying to create the resource group from the ARM template which then fails (obviously).

 

Is there any obvious way that I'm missing which will allow me to separate out the RG creation?

4 REPLIES 4

Ram Devanathan1
ServiceNow Employee
ServiceNow Employee

Aidan, with Terraform templates this is easier to do - as this is governed from the template side. the steps for for ARM is different - the resource group creation is done through a CAPI call outside of the actual ARM deployment.

Aidan
Tera Guru

Thanks Ram, that was my thought but was hoping there would be a solution that didn't need Terraform (not every customer uses it)

Forbes
Tera Contributor

Hello Aidan,
Did you ever work around this issue?
It seems there are some challenges navigating around Resource Groups in the CPG ARM Templates approach. In our Azure environment, we use Azure Policy, and this is proving to be an issue as the "Create Resource Group" option does not address the necessary Tags for the deployment to succeed.

Gautham Raju
Tera Expert

Resource Group seems a base for other resource provisioning, considering to create a resource group via ARM is not the right approach through CPG. CPG normally checks if the resource group mentioned is available else it will create it then proceed with the other resource creation.

 

Mark help full!!!!