question

AndrewFraser-2188 avatar image
0 Votes"
AndrewFraser-2188 asked AndrewFraser-2188 commented

Assigning Correct Tenant with O365

Hi,

I have an existing Azure tenant via MSDN, and have used my MSDN developer benefits to create an O365 tenant. This in turn has given me another Azure tenant, but with no spend amount.

I have an AAD in both, and am wanting to write some Azure Functions to access Graph and SharePoint. I can create an App Registration in the newer Azure portal and grant
the Sites.Selected permission.

When I create my Azure Function in my original Azure tenant and try to configure Authentication, entering the details from my app registration I then get 'Application with ID <App ID> not found in the current tenant' - which is fair enough I guess.

How can I bring these two tenants together somehow so that I can combine my authentication and my spend amounts ? What have I done incorrectly so that I have to separate Azure tenants (or is this how it normally works?)

Regards

Andrew

azure-ad-authenticationazure-ad-app-registration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MarileeTurscak-MSFT avatar image
0 Votes"
MarileeTurscak-MSFT answered AndrewFraser-2188 commented

Multiple subscriptions can trust the same directory, but a subscription trusts only one directory. If you have the subscription applied to one tenant but want to move it to the other, you can transfer the subscription to the other tenant.

Depending on what your plan is, you can also create users in one tenant and add them as guest users in the other tenant so that they can access both resources. You can also create multi-tenant applications that are available to users in both tenants. https://docs.microsoft.com/en-us/azure/active-directory/develop/single-and-multi-tenant-apps

The spending limit is equal to the amount of credit. You can't change the amount of the spending limit. If you signed up for an Azure free account, your spending limit is $200 and you can't change it to $500. However, you can remove the spending limit. So, you either have no limit, or you have a limit equal to the amount of credit. https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/spending-limit



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, Thanks a lot for the information. I'm aiming to develop a single tenant Azure function and try using the built in authentication rather than writing MSAL to access Graph. I was surprised to get another Azure tenant when my O365 subscription was instantiated. From what I'm reading in your reply I can transfer the subscription across, which would give me $$ in the Azure tenant created for the O365 tenant. Is the creation of an Azure tenant with every O365 tenant a normal thing ? How do other developers do this ?

0 Votes 0 ·