Rahul, Apologies for the delay from over the weekend.
Typically, you need to create a new Azure AD application and service principal for your V3 account, and then grant it access to your V2 account. You may follow the steps outlined in the docs (below) to create the new Azure AD application and service principal, and then grant it access to your V2 account.
Once you have done this, you can use the new Azure AD application and service principal to authenticate your requests to both the V2 and V3 APIs. You will need to update your code to use the new Azure AD application and service principal, and make sure that you are using the correct API version for each request.
Here are the high-level steps you need to follow:
- Create a new Azure AD application and service principal for your V3 account.
- Grant the new Azure AD application and service principal access to your V2 account.
- Update your code to use the new Azure AD application and service principal for authentication.
- Make sure that you are using the correct API version for each request.
For more detailed information on how to perform these steps, you may refer to the following docs:
Migrate from Media Services v2 to v3 introduction ( How to use this guide with 1, 2, 3, 4 steps)
API access differences between Azure Media Services V2 to v3 API
Step 3 - Set up to migrate to the V3 REST API or client SDK
Also, as mentioned in the doc note:
All Media Services accounts will have access to the V3 API. However, we strongly recommend migration development on a fresh account before applying updated code to an existing V2 account. This is because V3 entities aren't backwards compatible with V2. Some V2 entities like Assets are forward compatible with V3. You can continue to use existing accounts if you don’t mix the V2 and V3 APIs and then try to go back to V2, but this is discouraged.