I have an issue with Function app 1 after step "Start ConfigureServices" it must be run step "defaultazurecredential.gettoken" like Function App 2
- Infrastructure:
+Both of them are located in the same ASP 1.
- Function App 1 located in App Service Plan 1 in App Service Environment 1
- Function App 2 located in App Service Plan 2 in App Service Environment 1
+Both ASP using the same Vnet.
+Both of them use Managed Identity connected to SQL.
The first time I checked Function App 1 ran Framework 6.0 and Function App 2 ran Framework 4.8. I ran the downgrade version Framework "Set-AzWebApp -NetFrameworkVersion v4.8 -Name $App -ResourceGroupName $ResoureGroup" and restart the web app and the issue was still there.
When the issue happened I think Funtion app can't connect to SQL but after investigating and trying many methods it looks like from Funtion App 1 did not run to get token that why it can't authen SQL, not from code, connection string or network.
Does anyone have any idea about this case?