79259177

Date: 2024-12-06 19:35:55
Score: 1.5
Natty:
Report link

I recently suffered through this. Could you try to bring the scope outside of properties please?

{
  "type": "Microsoft.Storage/storageAccounts/providers/roleAssignments",
  "name": "[concat(variables('storageAccountName'),'/Microsoft.Authorization/',guid(subscription().subscriptionId))]",
  "apiVersion": "2019-04-01-preview",
  "dependsOn": [
    "[resourceId('Microsoft.Storage/storageAccounts/blobServices', variables('storageAccountName'), 'default')]",
    "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
  ],
  "scope": "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
  "properties": {
    "roleDefinitionId": "[concat(resourceGroup().id, '/providers/Microsoft.Authorization/roleDefinitions/17d1049b-9a84-46fb-8f53-869881c3d3ab')]",
    "principalId": "[parameters('principalId')]"
  }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Ron