d365collaborative / d365fo.tools

Tools used for Dynamics 365 Finance and Operations
MIT License
236 stars 97 forks source link

:sparkles: add Entra integration app registration to wif.config #796

Closed FH-Inway closed 4 months ago

FH-Inway commented 6 months ago

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 would

FH-Inway commented 6 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