cgraus
cgraus

Reputation: 812

Azure app service using Azure AD from a different subscription

We have a .NET Core application with a React app in it, and we've developed it using our Azure AD for login. Now when I try to change the settings to point to a different Azure AD account, it runs locally, but blows up in Azure. I found the application literally breaks with weird errors unless I change the GUIDs and other values back to use the internal Azure AD.

Is this a known restriction? Can I host an app for a client in my Azure and use their AD?

Upvotes: 1

Views: 360

Answers (1)

Tony Ju
Tony Ju

Reputation: 15609

No, there is no restriction regarding this. You can host an app for the client and use their AD.

I just tested this by using a JavascriptSPA. I deployed this app to A subscription and use B AD settings. It works fine.

it runs locally, but blows up in Azure.

Make sure you added the website url to your client AD as the redirect url.

enter image description here

Update:

You just need to change the clientId and tenant to your client AD info.

clientId: '{client ID}', //This is your client ID
authority: "https://login.microsoftonline.com/{tenant}" //This is your tenant info

Upvotes: 1

Related Questions