title: When accessing Azure MSI IMDS endpoint in app service - getting error 'unable to connect to the remote server'
body: <p>I have enabled the Managed service endpoint for the app service and able to see the MSI_ENDPOINT and the MSI_SECRET injected in the environment. am able to get the azure AD access token also when invoking the MSI_ENDPoint.
  But as per Azure documentation (<a href="https://docs.microsoft.com/en-us/azure/active-directory/managed-service-identity/overview" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/active-directory/managed-service-identity/overview</a>), we have to use IMDS endpoint going forward. but when accessing the URL <a href="http://169.254.169.254/metadata/identity/oauth2/token" rel="nofollow noreferrer">http://169.254.169.254/metadata/identity/oauth2/token</a> properly with api-version and the metadat, via powershell am getting an error that 'unable to connect to the remote server'
  though am able to get access token from the same powershell when hitting the MSI_Endpoint which is <a href="http://localhost:xxxx/MSI/token" rel="nofollow noreferrer">http://localhost:xxxx/MSI/token</a></p>