Hi everyone, I'm using YAML to describe IaC for Az...
# azure
a
Hi everyone, I'm using YAML to describe IaC for Azure. I'm trying to generate a web app with user assigned managed identity Here are userAssignedIdentity and webapp definitions:
Copy code
# Create a Managed User-Assigned Identity
  userAssignedIdentity:
    type: azure-native:managedidentity:UserAssignedIdentity
    properties:
      resourceGroupName: ${resourceGroup.name}
      resourceName: ${baseName}-${github-environment}-uai
  # Create a Web App
  webApp:
    type: azure-native:web:WebApp
    properties:
      name: ${baseName}-${github-environment}-wa
      resourceGroupName: ${resourceGroup.name}
      serverFarmId: ${appServicePlan.id}
      kind: app,linux
      identity:
        type: UserAssigned
        userAssignedIdentities:
          "${userAssignedIdentity.id}": {}
When I run pulumi up, I get:
Copy code
panic: interface conversion: ast.Expr is *ast.SymbolExpr, not *ast.StringExpr
Can anyone spot the problem? Thanx in advance, Gunnar
t
a
Ok, like this? identity: type: UserAssigned userAssignedIdentities: - ${userAssignedIdentity.id} Tried it, and it works. Appreciate it, mr Shilkov!