Hello @AzCredits User,
Migrating Custom Vision models between two different Azure subscriptions across tenants is not supported through a native one-click feature in Azure. However, this can be accomplished by exporting and re-importing your projects and models manually or through automation.
It is recommended to back up your project metadata, including tags, iterations, and training images, using the Custom Vision Training API or the Azure SDK for Python. These backups help you replicate the original setup more accurately in the destination subscription.
Once you’ve set up new Custom Vision resources (Training and Prediction) in the target tenant and logged in to the Custom Vision portal, you can create a new project matching the original project’s configuration. If the model was exportable, you can deploy and use it directly for predictions either hosted on your own environment or using the exported package. If not, you'll need to retrain the model using the backed-up images and tags.
If you're working in an environment where both tenants or subscriptions are accessible via the same authenticated user or service principal, you may use the Custom Vision REST APIs (ExportProject
and ImportProject
) to perform the migration programmatically.
Use the ExportProject API to export your Custom Vision project from the source subscription. You'll need to find your training keys and endpoint URL from your Custom Vision resource for this step.
POST https://<your-resource-endpoint>/customvision/v3.0/projects/<project-id>/export
Once you have exported your project, you can then use the ImportProject API to import it into your target Custom Vision resource in the new subscription.
POST https://<your-target-resource-endpoint>/customvision/v3.0/projects/import
These APIs allow you to export a project from the source and import it into the destination, provided both resources support it and are configured correctly.
Please refer this for copying and backing up your Custom Vision projects here.
Before you begin the migration process, ensure that you have the necessary access to both Azure subscriptions involved both the source and the destination.
It's important to verify that you meet all prerequisite conditions, such as having the appropriate permissions on the Custom Vision resources.
Additionally, take time to familiarize yourself with the settings of your Custom Vision resources, as you will need specific details like the training keys and endpoint URLs in order to export, import, or retrain your models effectively.
I Hope this helps. Do let me know if you have any further queries.
If this answers your query, please do click Accept Answer
and Yes
for was this answer helpful.
Thank you!