Replies: 3 comments 4 replies
-
@eerhardt This might be a gap. If you write a custom bicep resource, you can't participate in our role assignment infrastructure. aspire/src/Aspire.Hosting.Azure/AzureProvisioningResource.cs Lines 38 to 57 in ced7327 Essentially, the role assignments are completely external to the resource, but the resource describes default role assignments. On a per edge (compute resource, azure resource) the user can override those default role assignments. This works by the infrastructure calling AddRoleAssignments on the You might be in luck: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/provisioning/Azure.Provisioning.Communication Can you share your AzureCommunicationServices.bicep? You should be able to build a quick replacement for that resource while we work on this issue for the next version. |
Beta Was this translation helpful? Give feedback.
-
Sure, here it is
|
Beta Was this translation helpful? Give feedback.
-
I found a workaround... I lookup the principal object id in the UI in Azure and manually specified it in the code. I know this is not very good, but at least we can deploy Aspire 9.4. I hope there is a solution soon to fix this or even better to have an aspire plugin for communications service. Thanks |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Some time ago we have added a custom Bicep File for Azure Communication Services. This does not work anymore after upgrade to Aspire 9.4 and I am not sure what to do?
Inside that bicep we need to specific the
principalId
Due to that we have passed that down from the Apphost:
After upgrading to Aspire 9.4 and adding
AddAzureContainerAppEnvironment
everything deploys fine except the Communication Services. The following error appears:When I understand correctly the well known parameter
AzureBicepResource.KnownParameters.PrincipalId
is obsolete and there is no way to get that principalId anymore...What is the recommended way to fix this?
I have already tried
AddAzureUserAssignedIdentity
but then the deployment complains, that I cannot change the identity (RoleAssignmentUpdateNotPermitted: Tenant ID, application ID, principal ID, and scope are not allowed to be updated.)Any help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions