Closed FH-Inway closed 4 months ago
As a workaround, the following script can be used to add the entry to the wif.config:
https://gist.github.com/FH-Inway/5b5e86a4eb7ee8cd1670c6a8599d8f1e
Usage: .\Add-AudienceUriInWifConfig.ps1 -AppId e70cac82-6a7c-4f9e-a8b9-e707b961e986
Since November 15, 2023, new cloud hosted environments are no longer integrated with the Microsoft Entra (formerly Active Directory) of the tenant the environment is deployed for.
This blocks some functionality, including import of Electronic reporting (ER) configurations.
Microsoft has provided instructions to set up the integration to enable the blocked functionality again: https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-tools/secure-developer-vm#external-integrations
Some of the steps of the instructions can be done with the New-D365EntraIntegration cmdlet.
However, it seems functionality around electronic reporting is not fully restored by this, see the feedback by @V4A001 in https://www.yammer.com/dynamicsaxfeedbackprograms/#/threads/show?threadId=2535916690333696&messageId=2536643224657920
To enable this, the New-D365EntraIntegration cmdlet should offer a new optional switch parameter
-AddAppRegistrationToWifConfig
that wouldBackup-D365WebConfig
)<audienceUris>
entry in the wif.config file with the application registration id of the -ClientId parameter. This entry should be added as first entry before the existing entry for the Microsoft app registration.