oms-all-deploy
https://github.com/Azure/azure-quickstart-templates/tree/master/oms-all-deploy
Error: Code=CannotUpdatePlan; Message=Resource plan can not be changed.
Thanks. The APIs are in preview (solution + operationalInsights), so you might see this error when you re-run the deployment.
Hey Lyon - this should now be fixed. Please give it a spin if you can :-) 馃憤
Is it broken again? I still have such error
I'm getting this error as well when trying to release my custom solution from an ARM template
Hi Guys, it麓s broken again ? can you try to validate or help me here ?
I am still facing this issue, how can we fix it?
It's been an year, still idempotency is breaking. Can't redeploy the template. Could someone from MS look in to this?
Hi @spbreed
you need to validate the arm template to remove the issues, on my case I had the update the solutions to match the existing name of the OMS solutions and then the template was fine without any failures.
Hi @spbreed and @sudmis, I ran into this issue as well and for me the problem was that at first deployment of the template, the plan name specified in the template for the resource type Microsoft.OperationsManagement/solutions apparently did not end up to be the plan name of to the resource that was actually deployed. (You can see this in the portal when you view the Overview screen of the "Solution" resource: on the top right (under the "Solution" header) the plan name is shown. In my case, this was different from the plan name that I had specified in my template.)
When re-deploying the template, this difference caused validation to fail with a "can't update plan" error.
The fix (workaround?) is to make sure that the "name" of the resource is the same as the "name" of the plan, as shown in this fragment:
{
"apiVersion": "2015-11-01-preview",
"type": "Microsoft.OperationsManagement/solutions",
"location": "[variables('workspaceLocation')]",
"name": "[concat(variables('workspaceName'), '-containerinsights')]",
"properties": {
"workspaceResourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', variables('workspaceName'))]"
},
"plan": {
"name": "[concat(variables('workspaceName'), '-containerinsights')]",
"product": "OMSGallery/ContainerInsights",
"promotionCode": "",
"publisher": "Microsoft"
},
"dependsOn": [
"[concat('Microsoft.OperationalInsights/workspaces/', variables('workspaceName'))]"
]
}
After making this change, my template worked as expected, including idempotency.
Still facing the same issue even after making sure the name of the plan and the resource in the template is the same
Most helpful comment
I am still facing this issue, how can we fix it?