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.
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