I have two Azure subscriptions, which have unique tenant IDs. One is my company's "production" environment and the other is one each of our developers received with a monthly credit from our Visual Studio MPN, I'll call that one "dev". For O365 we only have one tenant.
I have created an Azure Automation Runbook in dev and added to a flow that is triggered by a Sharepoint list item creation event. It works great and I was able to test the code several times without messing with our production Azure environment. Once I got the sign-off to migrate to the production side, I can't seem to access the production tenant. It doesn't appear in the drop down, I've tried submitting the subscription ID as it states in the dialog box as well the tenant ID. Neither of those worked and I reveice the below message
Could not retrieve values. The access token is from the wrong issuer 'https://sts.windows.net/58e6813e-XXXX-XXXX-XXXX-3aXXXXXXX58b/'. It must match the tenant 'https://sts.windows.net/1617d2f6-XXXX-XXXX-XXXX-44XXXXXX46a4/' associated with this subscription. Please use the authority (URL) 'https://login.windows.net/1617d2f6-XXXX-XXXX-XXXX-44XXXXXX46a4' to get the token. Note, if the subscription is transferred to another tenant there is no impact to the services, but information about new tenant could take time to propagate (up to an hour). If you just transferred your subscription and see this error message, please try back later.
Is there something that I"m missing to register the production tenant and how is it that the dev one seems to be the default without me doing anything?