# Enable Custom Translator with VNet integration
# Create a New Public Translator Resource
-
Create a public Translator resource and ensure “Allow public access” is checked.
-
Create a private endpoint.
# Add Workspace in Custom Translator Portal
-
Create a workspace.
-
Obtain the Workspace ID.
# Create a VM in the VNet, ensure this VM can connect to the private endpoint
# Enable Custom Translator for VNet Integration
- Set “Firewalls and virtual networks” to “Selected networks and private endpoints”, then add the subnet of the VM from step 3. Once added, Custom Translator will be enabled for VNet integration (this can be changed to “Disabled” after all settings are complete).
Reference: Enable Custom Translator through Azure Virtual Network
# Recreate Workspace for VNet Integration in Command Prompt on VM
- Create a workspace with the same name as the one created in step 2.1
1 | // Create a workspace |
- Get supported language codes
1 | // get supported LanguagePairId code |
- Create a project using the Workspace ID obtained in step 2.2. The sourceLanguageCode and targetLanguageCode can be found using the supported language codes from step 5.2
1 | // get supported LanguagePairId code |
- Open Custom Translator Portal on the VM and confirm the project created in step 5.3 is visible.