Facing this issue while creating a VM.

Karthikvimal Renganathan 20 Reputation points
2024-06-19T19:59:16.94+00:00

{"code":"InvalidTemplateDeployment","message":"The template deployment 'CreateVm-microsoftwindowsdesktop.windows-11-win11-20240619115956' is not valid according to the validation procedure. The tracking id is '8b601049-8f58-486e-9105-225f7573a399'. See inner errors for details.","details":[{"code":"SecurityRuleParameterMissing","target":"/subscriptions/8b39e412-76a2-4520-a6ae-60718da5ac74/resourceGroups/HoneypotLab/providers/Microsoft.Network/networkSecurityGroups/honeypot-vm-nsg","message":"Required security rule parameter Protocol is missing for security rule with Id: /subscriptions/8b39e412-76a2-4520-a6ae-60718da5ac74/resourceGroups/HoneypotLab/providers/Microsoft.Network/networkSecurityGroups/honeypot-vm-nsg/securityRules/DANGER_ANY_IN.","details":[]}]}

While creating a VM, kindly help me to resolve this issue.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,549 questions
0 comments No comments
{count} votes

Accepted answer
  1. Marcin Policht 18,005 Reputation points MVP
    2024-06-19T20:40:00.43+00:00

    Apparently the ARM template you're using includes a definition of an NSG rule which is missing the Protocol parameter. You'd need to update the template - use https://learn.microsoft.com/en-us/azure/templates/microsoft.network/networksecuritygroups?pivots=deployment-language-bicep as a guide


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful