Hi,
I'm currently create vm d365fo in lcs with Finance and Operations - Demo (10.0.24 with Platform update 48)
but when try first login to environtment geting error like image below
What should i do for this error?
*note:
This new environment and not any customization yet with pu48
$AADTenant = <Value of Aad.TenantDomainGUID from web.config> $EnvironmentUrl = <Value of Infrastructure.HostUrl from web.config> # For example, if value is spn:fd663e81-110e-4c18-8995-ddf534bcf5e1 then take only fd663e81-110e-4c18-8995-ddf534bcf5e1 $AADRealm = <Value of Aad.Realm from web.config without spn: prefix. >
$SP = Get-AzureADServicePrincipal -Filter "AppId eq '$AADRealm'"
JFI. It looks like you can't have more than 255 records in the $SP.ReplyUrls.
In this case, it is necessary to identify outdated URLs and remove them from the list.
Please find the PowerShell example below:
$SP.ReplyUrls.Remove('https://valeryapp80u1584c8de8cacd63d01devaos.cloudax.dynamics.com/oauth') $SP.ReplyUrls.Remove('https://valeryapp80u1584c8de8cacd63d01devaos.cloudax.dynamics.com') $SP.ReplyUrls.Remove('https://mainmenumanagementa8f400eddb832deddevaos.cloudax.dynamics.com/oauth') $SP.ReplyUrls.Remove('https://mainmenumanagementa8f400eddb832deddevaos.cloudax.dynamics.com') #Set/Update Reply URL Set-AzureADServicePrincipal -ObjectId $SP.ObjectId -ReplyUrls $SP.ReplyUrls
Hi Valery Moskalenko,
Thanks for you replay, it's work for me.
I had a similar issue. I followed this article and it resolve the issue.
Deploy and access development environments - Finance & Operations | Dynamics 365 | Microsoft Docs
If an existing environment can't be deleted and redeployed, its URL must be added to the configured Azure AD tenant. The following commands can be run by the tenant admin.
Retrieve the following values from the web.config file.
Run the following commands via the tenant admin account for the Azure AD tenant in the web.config file.
# Using tenant admin account under this tenant login to via AzureAD PowerShell cmdlet. Connect-AzureAD # Get Service Principal details $SP = Get-AzureADServicePrincipal -Filter "AppId eq '$AADRealm'" #Add Reply URLs $SP.ReplyUrls.Add("$EnvironmentUrl") $SP.ReplyUrls.Add("$EnvironmentUrl/oauth") #Set/Update Reply URL Set-AzureADServicePrincipal -ObjectId $SP.ObjectId -ReplyUrls $SP.ReplyUrls
Thanks for your replay.
Hi Saepuloh,
I'm out of my options. I would suggest to log an incident for Microsoft Support.
Yes we have try create new environment with the same issue, even on other users who have mpn subscription we have same issue.
Hi Seapuloh,,
Can you try to deploy another new environment and check if it has the same issue?
Hi André,
We use same login account to deploy and login environment, and we don't restore database from other environment or other tenant, we just deploy demo environment and use demo database.
Regards
Hi Seapuloh,
Did you only deploy the environment and you want to login directly? If so, are the login credentials the same which was used during deployment?
If you did an additional action like database restore on this environment, was the database backup from the same tenant?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 2,257
André Arnaud de Cal... 913 Super User 2025 Season 2
Sohaib Cheema 611 User Group Leader