Blueprint deployment issue

Faqeer Danish 1 Reputation point
2021-06-24T14:09:34.24+00:00

I created a blueprint with resource group-managed identity owner level access I can deploy it. One of the blueprints contains only a resource group. That blueprint executed and create resource group as well. Now I added ARM templated JSON into my blueprint under the resource group. In ARM template contain information to create a new resource group. But after the assignment, it give me an error,

The artifact '30f228a2-d477-4bde-8e70-530fdc77b3dc' of type 'Template' failed to deploy due to the following error: Template deployment failed with error [ { "message": "No HTTP resource was found that matches the request URI 'https://management.azure.com/subscriptions/f4129cfc-7ecb-4884-bcaf-5a23f1a52c20/resourcegroups/rg-dis-009/providers/Microsoft.Resources/resourceGroups/test-raj?api-version=2018-05-01'." } ]

My blueprint,
{
"properties": {
"parameters": {
"createRG_rgLocation": {
"type": "string",
"metadata": {
"displayName": "rgLocation (Create RG)"
},
"defaultValue": "East US",
"allowedValues": []
},
"createRG_rgName": {
"type": "string",
"metadata": {
"displayName": "rgName (Create RG)"
},
"defaultValue": "test-raj",
"allowedValues": []
}
},
"resourceGroups": {
"ResourceGroup": {
"metadata": {
"displayName": "rg-dis"
},
"dependsOn": []
}
},
"targetScope": "subscription",
"status": {
"timeCreated": "2021-06-10T12:53:54+00:00",
"lastModified": "2021-06-22T10:27:08.6273145+00:00"
},
"description": "creating app service"
},
"id": "/subscriptions/f4129cfc-7ecb-4884-bcaf-5a23f1a52c20/providers/Microsoft.Blueprint/blueprints/dis-appservice",
"type": "Microsoft.Blueprint/blueprints",
"name": "dis-appservice"
}

How to resolve this error?

Azure Blueprints
Azure Blueprints
An Azure service that provides templates for quick, repeatable creation of fully governed cloud subscriptions.
70 questions
0 comments No comments
{count} votes