Internal server error while deploying an arm template to azure












0














I am deploying an new metric alert to Azure with an ARM template.
I am following the exact same way of Microsoft doc.
With the only change that I deploy just 1 metric to an Automation account and not to an storage account



Template file



  "variables": {
"criterion1": "[array(parameters('criterion1'))]",
"criteria": "[concat(variables('criterion1'))]"


},
"resources": [
{
"name": "[parameters('alertName')]",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"apiVersion": "2018-03-01",
"tags": {},
"properties": {
"description": "[parameters('alertDescription')]",
"severity": "[parameters('alertSeverity')]",
"enabled": "[parameters('isEnabled')]",
"scopes": [
"[parameters('resourceId')]"
],
"evaluationFrequency": "[parameters('evaluationFrequency')]",
"windowSize": "[parameters('windowSize')]",
"criteria": {
"odata.type": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria",
"allOf": "[variables('criteria')]"
},
"actions": [
{}
]
}
}
]


parameter file



  "criterion1": {
"value": {
"name": "1st criterion",
"metricName": "TotalJob",
"dimensions": [
{
"name": "Status",
"operator": "Include",
"values": [
"Failed"
]
},
{
"name": "Status",
"operator": "Include",
"values": [
"Completed"
]
}
],
"operator": "GreaterThan",
"threshold": "5",
"timeAggregation": "Total"
}
}


But when i deploy this to Azure my Powershell command get stuck without giving any errors even with -DeploymentDebugLogLevel All parameter on it. In Azure portal I got the error "Internal server error" without any context. The json log gives me following logs:



{
"authorization": {
"action": "Microsoft.Insights/metricAlerts/write",
"scope": "/subscriptions/xxxxxx/resourcegroups/bilalachahbar/providers/Microsoft.Insights/metricAlerts/New Metric Alert"
},
"caller": "xxxx",
"channels": "Operation",
"claims": {
"aud": "https://management.azure.com/",
"iss": "https://sts.windows.net/17b5a1d-057c-4ac-a15a-08758f7a7064/",
"iat": "15596014",
"nbf": "15596014",
"exp": "15599914",
"aio": "42RgYDgypS7rfe/Of0l1R+q3TbCgA=",
"appid": "0e4a093a-c6fd-4fba-b4e5-f07ba479f203",
"appidacr": "1",
"http://schemas.microsoft.com/identity/claims/identityprovider": "https://sts.windows.net/17b35a1d-057c-4ac5-a15a-08758f7a7064/",
"http://schemas.microsoft.com/identity/claims/objectidentifier": "a3db39bf-8c65-4b84-b049-d7af99bfb3e",
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "a3db39bf-8c65-4b84-b049-d7af99bfb3e",
"http://schemas.microsoft.com/identity/claims/tenantid": "17b35a1d-057c-4ac5-a15a-087f7a7064",
"uti": "SCkIk235EScz0Hst20AA",
"ver": "1.0"
},
"correlationId": "8013b5-9788-41ed-afcf-0dbd8276349c",
"description": "",
"eventDataId": "e39509-0837-4435-af7a-02ba1462055f",
"eventName": {
"value": "EndRequest",
"localizedValue": "End request"
},
"category": {
"value": "Administrative",
"localizedValue": "Administrative"
},
"eventTimestamp": "2018-12-27T14:11:48.1462445Z",
"id": "/subscriptions/xxxxx/resourcegroups/xxxxxx/providers/Microsoft.Insights/metricAlerts/New+Metric+Alert/events/e39509-0837-4435-af7a-02ba1462055f/ticks/815167081462445",
"level": "Error",
"operationId": "e390389-ecc1-4a2-8c2-d94ea635cb",
"operationName": {
"value": "Microsoft.Insights/metricAlerts/write",
"localizedValue": "Create or update metric alert"
},
"resourceGroupName": "xxxxx",
"resourceProviderName": {
"value": "Microsoft.Insights",
"localizedValue": "Microsoft Insights"
},
"resourceType": {
"value": "Microsoft.Insights/metricAlerts",
"localizedValue": "Microsoft.Insights/metricAlerts"
},
"resourceId": "/subscriptions/xxxxxx/resourcegroups/bilalachahbar/providers/Microsoft.Insights/metricAlerts/New Metric Alert",
"status": {
"value": "Failed",
"localizedValue": "Failed"
},
"subStatus": {
"value": "InternalServerError",
"localizedValue": "Internal Server Error (HTTP Status Code: 500)"
},
"submissionTimestamp": "2018-12-27T14:12:05.0719055Z",
"subscriptionId": "xxxxxx",
"properties": {
"statusCode": "InternalServerError",
"serviceRequestId": "8613b5-9788-41d-afcf-0dbd27639c",
"statusMessage": "{"error":{"code":"InternalServerError","message":"The server encountered an internal error, please retry. If the problem persists, contact support."}}"
},
"relatedEvents":


}



An other stack overflow question got an sort of same question.
He got the problem when using an resource that is not supported anymore but I guess that is not the case with me because the official MS documentation is from september this year. I got the same issues when I use the exact same arm template that is provided in the documentation










share|improve this question





























    0














    I am deploying an new metric alert to Azure with an ARM template.
    I am following the exact same way of Microsoft doc.
    With the only change that I deploy just 1 metric to an Automation account and not to an storage account



    Template file



      "variables": {
    "criterion1": "[array(parameters('criterion1'))]",
    "criteria": "[concat(variables('criterion1'))]"


    },
    "resources": [
    {
    "name": "[parameters('alertName')]",
    "type": "Microsoft.Insights/metricAlerts",
    "location": "global",
    "apiVersion": "2018-03-01",
    "tags": {},
    "properties": {
    "description": "[parameters('alertDescription')]",
    "severity": "[parameters('alertSeverity')]",
    "enabled": "[parameters('isEnabled')]",
    "scopes": [
    "[parameters('resourceId')]"
    ],
    "evaluationFrequency": "[parameters('evaluationFrequency')]",
    "windowSize": "[parameters('windowSize')]",
    "criteria": {
    "odata.type": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria",
    "allOf": "[variables('criteria')]"
    },
    "actions": [
    {}
    ]
    }
    }
    ]


    parameter file



      "criterion1": {
    "value": {
    "name": "1st criterion",
    "metricName": "TotalJob",
    "dimensions": [
    {
    "name": "Status",
    "operator": "Include",
    "values": [
    "Failed"
    ]
    },
    {
    "name": "Status",
    "operator": "Include",
    "values": [
    "Completed"
    ]
    }
    ],
    "operator": "GreaterThan",
    "threshold": "5",
    "timeAggregation": "Total"
    }
    }


    But when i deploy this to Azure my Powershell command get stuck without giving any errors even with -DeploymentDebugLogLevel All parameter on it. In Azure portal I got the error "Internal server error" without any context. The json log gives me following logs:



    {
    "authorization": {
    "action": "Microsoft.Insights/metricAlerts/write",
    "scope": "/subscriptions/xxxxxx/resourcegroups/bilalachahbar/providers/Microsoft.Insights/metricAlerts/New Metric Alert"
    },
    "caller": "xxxx",
    "channels": "Operation",
    "claims": {
    "aud": "https://management.azure.com/",
    "iss": "https://sts.windows.net/17b5a1d-057c-4ac-a15a-08758f7a7064/",
    "iat": "15596014",
    "nbf": "15596014",
    "exp": "15599914",
    "aio": "42RgYDgypS7rfe/Of0l1R+q3TbCgA=",
    "appid": "0e4a093a-c6fd-4fba-b4e5-f07ba479f203",
    "appidacr": "1",
    "http://schemas.microsoft.com/identity/claims/identityprovider": "https://sts.windows.net/17b35a1d-057c-4ac5-a15a-08758f7a7064/",
    "http://schemas.microsoft.com/identity/claims/objectidentifier": "a3db39bf-8c65-4b84-b049-d7af99bfb3e",
    "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "a3db39bf-8c65-4b84-b049-d7af99bfb3e",
    "http://schemas.microsoft.com/identity/claims/tenantid": "17b35a1d-057c-4ac5-a15a-087f7a7064",
    "uti": "SCkIk235EScz0Hst20AA",
    "ver": "1.0"
    },
    "correlationId": "8013b5-9788-41ed-afcf-0dbd8276349c",
    "description": "",
    "eventDataId": "e39509-0837-4435-af7a-02ba1462055f",
    "eventName": {
    "value": "EndRequest",
    "localizedValue": "End request"
    },
    "category": {
    "value": "Administrative",
    "localizedValue": "Administrative"
    },
    "eventTimestamp": "2018-12-27T14:11:48.1462445Z",
    "id": "/subscriptions/xxxxx/resourcegroups/xxxxxx/providers/Microsoft.Insights/metricAlerts/New+Metric+Alert/events/e39509-0837-4435-af7a-02ba1462055f/ticks/815167081462445",
    "level": "Error",
    "operationId": "e390389-ecc1-4a2-8c2-d94ea635cb",
    "operationName": {
    "value": "Microsoft.Insights/metricAlerts/write",
    "localizedValue": "Create or update metric alert"
    },
    "resourceGroupName": "xxxxx",
    "resourceProviderName": {
    "value": "Microsoft.Insights",
    "localizedValue": "Microsoft Insights"
    },
    "resourceType": {
    "value": "Microsoft.Insights/metricAlerts",
    "localizedValue": "Microsoft.Insights/metricAlerts"
    },
    "resourceId": "/subscriptions/xxxxxx/resourcegroups/bilalachahbar/providers/Microsoft.Insights/metricAlerts/New Metric Alert",
    "status": {
    "value": "Failed",
    "localizedValue": "Failed"
    },
    "subStatus": {
    "value": "InternalServerError",
    "localizedValue": "Internal Server Error (HTTP Status Code: 500)"
    },
    "submissionTimestamp": "2018-12-27T14:12:05.0719055Z",
    "subscriptionId": "xxxxxx",
    "properties": {
    "statusCode": "InternalServerError",
    "serviceRequestId": "8613b5-9788-41d-afcf-0dbd27639c",
    "statusMessage": "{"error":{"code":"InternalServerError","message":"The server encountered an internal error, please retry. If the problem persists, contact support."}}"
    },
    "relatedEvents":


    }



    An other stack overflow question got an sort of same question.
    He got the problem when using an resource that is not supported anymore but I guess that is not the case with me because the official MS documentation is from september this year. I got the same issues when I use the exact same arm template that is provided in the documentation










    share|improve this question



























      0












      0








      0







      I am deploying an new metric alert to Azure with an ARM template.
      I am following the exact same way of Microsoft doc.
      With the only change that I deploy just 1 metric to an Automation account and not to an storage account



      Template file



        "variables": {
      "criterion1": "[array(parameters('criterion1'))]",
      "criteria": "[concat(variables('criterion1'))]"


      },
      "resources": [
      {
      "name": "[parameters('alertName')]",
      "type": "Microsoft.Insights/metricAlerts",
      "location": "global",
      "apiVersion": "2018-03-01",
      "tags": {},
      "properties": {
      "description": "[parameters('alertDescription')]",
      "severity": "[parameters('alertSeverity')]",
      "enabled": "[parameters('isEnabled')]",
      "scopes": [
      "[parameters('resourceId')]"
      ],
      "evaluationFrequency": "[parameters('evaluationFrequency')]",
      "windowSize": "[parameters('windowSize')]",
      "criteria": {
      "odata.type": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria",
      "allOf": "[variables('criteria')]"
      },
      "actions": [
      {}
      ]
      }
      }
      ]


      parameter file



        "criterion1": {
      "value": {
      "name": "1st criterion",
      "metricName": "TotalJob",
      "dimensions": [
      {
      "name": "Status",
      "operator": "Include",
      "values": [
      "Failed"
      ]
      },
      {
      "name": "Status",
      "operator": "Include",
      "values": [
      "Completed"
      ]
      }
      ],
      "operator": "GreaterThan",
      "threshold": "5",
      "timeAggregation": "Total"
      }
      }


      But when i deploy this to Azure my Powershell command get stuck without giving any errors even with -DeploymentDebugLogLevel All parameter on it. In Azure portal I got the error "Internal server error" without any context. The json log gives me following logs:



      {
      "authorization": {
      "action": "Microsoft.Insights/metricAlerts/write",
      "scope": "/subscriptions/xxxxxx/resourcegroups/bilalachahbar/providers/Microsoft.Insights/metricAlerts/New Metric Alert"
      },
      "caller": "xxxx",
      "channels": "Operation",
      "claims": {
      "aud": "https://management.azure.com/",
      "iss": "https://sts.windows.net/17b5a1d-057c-4ac-a15a-08758f7a7064/",
      "iat": "15596014",
      "nbf": "15596014",
      "exp": "15599914",
      "aio": "42RgYDgypS7rfe/Of0l1R+q3TbCgA=",
      "appid": "0e4a093a-c6fd-4fba-b4e5-f07ba479f203",
      "appidacr": "1",
      "http://schemas.microsoft.com/identity/claims/identityprovider": "https://sts.windows.net/17b35a1d-057c-4ac5-a15a-08758f7a7064/",
      "http://schemas.microsoft.com/identity/claims/objectidentifier": "a3db39bf-8c65-4b84-b049-d7af99bfb3e",
      "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "a3db39bf-8c65-4b84-b049-d7af99bfb3e",
      "http://schemas.microsoft.com/identity/claims/tenantid": "17b35a1d-057c-4ac5-a15a-087f7a7064",
      "uti": "SCkIk235EScz0Hst20AA",
      "ver": "1.0"
      },
      "correlationId": "8013b5-9788-41ed-afcf-0dbd8276349c",
      "description": "",
      "eventDataId": "e39509-0837-4435-af7a-02ba1462055f",
      "eventName": {
      "value": "EndRequest",
      "localizedValue": "End request"
      },
      "category": {
      "value": "Administrative",
      "localizedValue": "Administrative"
      },
      "eventTimestamp": "2018-12-27T14:11:48.1462445Z",
      "id": "/subscriptions/xxxxx/resourcegroups/xxxxxx/providers/Microsoft.Insights/metricAlerts/New+Metric+Alert/events/e39509-0837-4435-af7a-02ba1462055f/ticks/815167081462445",
      "level": "Error",
      "operationId": "e390389-ecc1-4a2-8c2-d94ea635cb",
      "operationName": {
      "value": "Microsoft.Insights/metricAlerts/write",
      "localizedValue": "Create or update metric alert"
      },
      "resourceGroupName": "xxxxx",
      "resourceProviderName": {
      "value": "Microsoft.Insights",
      "localizedValue": "Microsoft Insights"
      },
      "resourceType": {
      "value": "Microsoft.Insights/metricAlerts",
      "localizedValue": "Microsoft.Insights/metricAlerts"
      },
      "resourceId": "/subscriptions/xxxxxx/resourcegroups/bilalachahbar/providers/Microsoft.Insights/metricAlerts/New Metric Alert",
      "status": {
      "value": "Failed",
      "localizedValue": "Failed"
      },
      "subStatus": {
      "value": "InternalServerError",
      "localizedValue": "Internal Server Error (HTTP Status Code: 500)"
      },
      "submissionTimestamp": "2018-12-27T14:12:05.0719055Z",
      "subscriptionId": "xxxxxx",
      "properties": {
      "statusCode": "InternalServerError",
      "serviceRequestId": "8613b5-9788-41d-afcf-0dbd27639c",
      "statusMessage": "{"error":{"code":"InternalServerError","message":"The server encountered an internal error, please retry. If the problem persists, contact support."}}"
      },
      "relatedEvents":


      }



      An other stack overflow question got an sort of same question.
      He got the problem when using an resource that is not supported anymore but I guess that is not the case with me because the official MS documentation is from september this year. I got the same issues when I use the exact same arm template that is provided in the documentation










      share|improve this question















      I am deploying an new metric alert to Azure with an ARM template.
      I am following the exact same way of Microsoft doc.
      With the only change that I deploy just 1 metric to an Automation account and not to an storage account



      Template file



        "variables": {
      "criterion1": "[array(parameters('criterion1'))]",
      "criteria": "[concat(variables('criterion1'))]"


      },
      "resources": [
      {
      "name": "[parameters('alertName')]",
      "type": "Microsoft.Insights/metricAlerts",
      "location": "global",
      "apiVersion": "2018-03-01",
      "tags": {},
      "properties": {
      "description": "[parameters('alertDescription')]",
      "severity": "[parameters('alertSeverity')]",
      "enabled": "[parameters('isEnabled')]",
      "scopes": [
      "[parameters('resourceId')]"
      ],
      "evaluationFrequency": "[parameters('evaluationFrequency')]",
      "windowSize": "[parameters('windowSize')]",
      "criteria": {
      "odata.type": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria",
      "allOf": "[variables('criteria')]"
      },
      "actions": [
      {}
      ]
      }
      }
      ]


      parameter file



        "criterion1": {
      "value": {
      "name": "1st criterion",
      "metricName": "TotalJob",
      "dimensions": [
      {
      "name": "Status",
      "operator": "Include",
      "values": [
      "Failed"
      ]
      },
      {
      "name": "Status",
      "operator": "Include",
      "values": [
      "Completed"
      ]
      }
      ],
      "operator": "GreaterThan",
      "threshold": "5",
      "timeAggregation": "Total"
      }
      }


      But when i deploy this to Azure my Powershell command get stuck without giving any errors even with -DeploymentDebugLogLevel All parameter on it. In Azure portal I got the error "Internal server error" without any context. The json log gives me following logs:



      {
      "authorization": {
      "action": "Microsoft.Insights/metricAlerts/write",
      "scope": "/subscriptions/xxxxxx/resourcegroups/bilalachahbar/providers/Microsoft.Insights/metricAlerts/New Metric Alert"
      },
      "caller": "xxxx",
      "channels": "Operation",
      "claims": {
      "aud": "https://management.azure.com/",
      "iss": "https://sts.windows.net/17b5a1d-057c-4ac-a15a-08758f7a7064/",
      "iat": "15596014",
      "nbf": "15596014",
      "exp": "15599914",
      "aio": "42RgYDgypS7rfe/Of0l1R+q3TbCgA=",
      "appid": "0e4a093a-c6fd-4fba-b4e5-f07ba479f203",
      "appidacr": "1",
      "http://schemas.microsoft.com/identity/claims/identityprovider": "https://sts.windows.net/17b35a1d-057c-4ac5-a15a-08758f7a7064/",
      "http://schemas.microsoft.com/identity/claims/objectidentifier": "a3db39bf-8c65-4b84-b049-d7af99bfb3e",
      "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "a3db39bf-8c65-4b84-b049-d7af99bfb3e",
      "http://schemas.microsoft.com/identity/claims/tenantid": "17b35a1d-057c-4ac5-a15a-087f7a7064",
      "uti": "SCkIk235EScz0Hst20AA",
      "ver": "1.0"
      },
      "correlationId": "8013b5-9788-41ed-afcf-0dbd8276349c",
      "description": "",
      "eventDataId": "e39509-0837-4435-af7a-02ba1462055f",
      "eventName": {
      "value": "EndRequest",
      "localizedValue": "End request"
      },
      "category": {
      "value": "Administrative",
      "localizedValue": "Administrative"
      },
      "eventTimestamp": "2018-12-27T14:11:48.1462445Z",
      "id": "/subscriptions/xxxxx/resourcegroups/xxxxxx/providers/Microsoft.Insights/metricAlerts/New+Metric+Alert/events/e39509-0837-4435-af7a-02ba1462055f/ticks/815167081462445",
      "level": "Error",
      "operationId": "e390389-ecc1-4a2-8c2-d94ea635cb",
      "operationName": {
      "value": "Microsoft.Insights/metricAlerts/write",
      "localizedValue": "Create or update metric alert"
      },
      "resourceGroupName": "xxxxx",
      "resourceProviderName": {
      "value": "Microsoft.Insights",
      "localizedValue": "Microsoft Insights"
      },
      "resourceType": {
      "value": "Microsoft.Insights/metricAlerts",
      "localizedValue": "Microsoft.Insights/metricAlerts"
      },
      "resourceId": "/subscriptions/xxxxxx/resourcegroups/bilalachahbar/providers/Microsoft.Insights/metricAlerts/New Metric Alert",
      "status": {
      "value": "Failed",
      "localizedValue": "Failed"
      },
      "subStatus": {
      "value": "InternalServerError",
      "localizedValue": "Internal Server Error (HTTP Status Code: 500)"
      },
      "submissionTimestamp": "2018-12-27T14:12:05.0719055Z",
      "subscriptionId": "xxxxxx",
      "properties": {
      "statusCode": "InternalServerError",
      "serviceRequestId": "8613b5-9788-41d-afcf-0dbd27639c",
      "statusMessage": "{"error":{"code":"InternalServerError","message":"The server encountered an internal error, please retry. If the problem persists, contact support."}}"
      },
      "relatedEvents":


      }



      An other stack overflow question got an sort of same question.
      He got the problem when using an resource that is not supported anymore but I guess that is not the case with me because the official MS documentation is from september this year. I got the same issues when I use the exact same arm template that is provided in the documentation







      azure automation metrics arm-template






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 28 at 7:25









      HariHaran

      512112




      512112










      asked Dec 27 at 14:25









      achahbar

      9414




      9414
























          1 Answer
          1






          active

          oldest

          votes


















          0














          I found my own error
          Action groups are required when you want to deploy metric alerts.
          As you can see in the documentation they provide an action ID, and I didn't. As I thought that it wasn't necessary it actually is.
          I know this is obvious but unfortunately I did not saw this in the documentation or in the error. After some debugging and looking in the Resource Explorer I've noticed this.
          SO future reader I hope this will solve your issue



          One little feedback is that there is no depends on value ATM so I can not create an action group resource first in the same arm template






          share|improve this answer





















            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53946597%2finternal-server-error-while-deploying-an-arm-template-to-azure%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I found my own error
            Action groups are required when you want to deploy metric alerts.
            As you can see in the documentation they provide an action ID, and I didn't. As I thought that it wasn't necessary it actually is.
            I know this is obvious but unfortunately I did not saw this in the documentation or in the error. After some debugging and looking in the Resource Explorer I've noticed this.
            SO future reader I hope this will solve your issue



            One little feedback is that there is no depends on value ATM so I can not create an action group resource first in the same arm template






            share|improve this answer


























              0














              I found my own error
              Action groups are required when you want to deploy metric alerts.
              As you can see in the documentation they provide an action ID, and I didn't. As I thought that it wasn't necessary it actually is.
              I know this is obvious but unfortunately I did not saw this in the documentation or in the error. After some debugging and looking in the Resource Explorer I've noticed this.
              SO future reader I hope this will solve your issue



              One little feedback is that there is no depends on value ATM so I can not create an action group resource first in the same arm template






              share|improve this answer
























                0












                0








                0






                I found my own error
                Action groups are required when you want to deploy metric alerts.
                As you can see in the documentation they provide an action ID, and I didn't. As I thought that it wasn't necessary it actually is.
                I know this is obvious but unfortunately I did not saw this in the documentation or in the error. After some debugging and looking in the Resource Explorer I've noticed this.
                SO future reader I hope this will solve your issue



                One little feedback is that there is no depends on value ATM so I can not create an action group resource first in the same arm template






                share|improve this answer












                I found my own error
                Action groups are required when you want to deploy metric alerts.
                As you can see in the documentation they provide an action ID, and I didn't. As I thought that it wasn't necessary it actually is.
                I know this is obvious but unfortunately I did not saw this in the documentation or in the error. After some debugging and looking in the Resource Explorer I've noticed this.
                SO future reader I hope this will solve your issue



                One little feedback is that there is no depends on value ATM so I can not create an action group resource first in the same arm template







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 28 at 8:23









                achahbar

                9414




                9414






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53946597%2finternal-server-error-while-deploying-an-arm-template-to-azure%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Mossoró

                    Error while reading .h5 file using the rhdf5 package in R

                    Pushsharp Apns notification error: 'InvalidToken'