Hello @somya lavania
Thank you for reaching out to Microsoft QnA platform. There are multiple ways you can change subscription directory either by "Retaining subscription billing and changing subscription directory" or "Moving billing ownership of the subscription to an account in different directory".
Option A: If you do not want to move the billing from Account B to Account A, you can follow this approach:
- Since inviting Account B to directory A, is not possible you can try to perform following workaround.
- Create a new user Account C in Directory B.
- Add this user Account C as Owner on the Subscription and Global Admin on the directory B.
- Invite this Account C to Directory A.
- Later follow the steps mentioned on following article to change directory of the subscription: How to Change your Azure Directory Tenant.
Option B: If you would like to move the billing of the subscription from Account B to Account A, you can follow this approach:
- You can perform billing ownership transfer of your Azure subscription from Account B to Account A.
- This would make your Account A as the Account Admin as well as Service Admin/Owner on the subscription and also change the directory of the subscription to Directory A.
- You follow the steps as listed on following document to know more about billing ownership transfer: Transfer billing ownership of an MOSP Azure subscription to another account.
- If you face issues performing this you can create a Azure Support Request with Azure Subscription Management Support to help you with completing the transfer.
For more information and impact please review following documentation: https://learn.microsoft.com/en-us/azure/role-based-access-control/transfer-subscription
I hope this answer helps to resolve your issue. Please "Accept the answer" if the information helped you. This will help us and others in the community as well.