Hi
We have been playing around with ARM templates and unfortunately now we have a resource group that contains something that makes us unable to delete it. From the portal and the powershell cmdlets the resource groups looks to be empty. But when we try to
delete it it seems that it contains some left over application insight stuff that prevents its deletion.
This is the failure that the operations log contains for the call, note before this call there is a call to delete the resource group. So apparently it believes that the group is not empty and tries to clean out its resources first. The error might be that
we by accident via the arm template have created a resource that have the name parameters('ApplicationInsightsName') which
i assume should have been substituted.
OPERATION NAME
Delete insights component
EVENTTIMESTAMP
Wed Sep 30 2015 11:58:53 GMT+0200 (Romance Daylight Time)
AUTHORIZATION
action:Microsoft.Resources/subscriptions/resourceGroups/delete
role:Subscription Admin
scope:/subscriptions/d492eeec-afe0-41e8-85d4-8141473d7e55/resourceGroups/DG.Mobile.Sync.Test
RESOURCE URI
/subscriptions/d492eeec-afe0-41e8-85d4-8141473d7e55/resourceGroups/DG.Mobile.Sync.Test/providers/Microsoft.Insights/components/parameters('ApplicationInsightsName')
SUBSCRIPTION ID
d492eeec-afe0-41e8-85d4-8141473d7e55
EVENT SUBMISSION TIMESTAMP
Wed Sep 30 2015 11:59:09 GMT+0200 (Romance Daylight Time)
OPERATION ID
d36c46af-7f8f-40c1-bed4-100a8fe36510
CORRELATION ID
cad1b39f-f0a1-4fcf-85af-79bf1ac98688
RESOURCE GROUP
DG.Mobile.Sync.Test
RESOURCE PROVIDER
Microsoft Insights
PROPERTIES
statusCode:InternalServerError
statusMessage:{"code":"The remote server returned an error: (400) Bad Request.","message":"The remote server returned an error: (400) Bad Request.","innererror":{"diagnosticcontext":"441542cf-4cf9-498d-b711-48b5f50e1af2","time":"2015-09-30T09:54:12.1914637Z"}}