System Assigned MI to Front Door through Bicep

RajNair 216 Reputation points
2023-09-19T13:26:47.81+00:00

I need to add System assigned managed identity while provisioning front door through bicep. How to do it... i tried the following way but it is giving error

User's image

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
662 questions
{count} votes

Accepted answer
  1. Tushar Kumar 3,321 Reputation points MVP
    2023-09-19T16:18:11.4966667+00:00

    Hi RajNa,

    Thanks you so much for your Question!

    As pe the comments the Api version you are using for the deployment was before front door even supported Managed Identity.

    So You need to use the new API to achive the same, all you need is to replace the following.

    https://learn.microsoft.com/en-us/azure/templates/microsoft.cdn/2022-11-01-preview/profiles?pivots=deployment-language-bicep

    replace

    resource symbolicname 'Microsoft.Cdn/profiles@2021-06-01'
    

    With

    resource symbolicname 'Microsoft.Cdn/profiles@2022-11-01-preview'
    

    Here is the full code for Profiles :

    resource symbolicname 'Microsoft.Cdn/profiles@2022-11-01-preview' = {
      name: 'string'
      location: 'string'
      tags: {
        tagName1: 'tagValue1'
        tagName2: 'tagValue2'
      }
      sku: {
        name: 'string'
      }
      identity: {
        type: 'string'
        userAssignedIdentities: {}
      }
      properties: {
        extendedProperties: {}
        originResponseTimeoutSeconds: int
      }
    }
    

    Please Click " Accept as answer" if this helps

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.