01 Define the configuration file for your new Azure Machine Learning workspace. Create a new configuration file (YAML format), name the file workspace-config.yml, and paste the following content. Set hbi_workspace to true to enable High Business Impact (HBI), and replace other configuration parameter values with your own information):
$schema: https://azuremlschemas.azureedge.net/latest/workspace.schema.json
name: tm-new-project5-workspace
location: westeurope
display_name: tm-new-project5-workspace
customer_managed_key:
key_vault: /subscriptions/abcd1234-abcd-1234-abcd-1234abcd1234/resourceGroups/cloud-shell-storage-westeurope/providers/Microsoft.KeyVault/vaults/cc-project5-vault
key_uri: https://cc-project5-vault.vault.azure.net/keys/cc-ml-workspace-key/abcd1234abcd1234abcd1234abcd1234
hbi_workspace: true
02 Run ml workspace create command (Windows/macOS/Linux) with the configuration file defined at the previous step (i.e. workspace-config.yml), to create your new, HBI-protected Azure Machine Learning workspace:
az ml workspace create
--resource-group cloud-shell-storage-westeurope
--file workspace-config.yml
03 The command output should return the new workspace configuration information:
{
"hbi_workspace": true,
"customer_managed_key": {
"cosmosdb_id": "",
"key_uri": "https://cc-project5-vault.vault.azure.net/keys/cc-ml-workspace-key/abcd1234abcd1234abcd1234abcd1234",
"key_vault": "/subscriptions/abcd1234-abcd-1234-abcd-1234abcd1234/resourceGroups/cloud-shell-storage-westeurope/providers/Microsoft.KeyVault/vaults/cc-project5-vault",
"search_id": "",
"storage_id": ""
},
"description": "tm-new-project5-workspace",
"discovery_url": "https://westeurope.api.azureml.ms/discovery",
"display_name": "tm-new-project5-workspace",
"enable_data_isolation": false,
"id": "/subscriptions/abcd1234-abcd-1234-abcd-1234abcd1234/resourceGroups/cloud-shell-storage-westeurope/providers/Microsoft.MachineLearningServices/workspaces/tm-new-project5-workspace",
"identity": {
"principal_id": "abcd1234-abcd-1234-abcd-1234abcd1234",
"tenant_id": "abcd1234-abcd-1234-abcd-1234abcd1234",
"type": "system_assigned"
},
"key_vault": "/subscriptions/abcd1234-abcd-1234-abcd-1234abcd1234/resourceGroups/cloud-shell-storage-westeurope/providers/Microsoft.Keyvault/vaults/1234abcd12341234abcd1234",
"location": "westeurope",
"managed_network": {
"isolation_mode": "disabled",
"outbound_rules": []
},
"mlflow_tracking_uri": "azureml://westeurope.api.azureml.ms/mlflow/v1.0/subscriptions/abcd1234-abcd-1234-abcd-1234abcd1234/resourceGroups/cloud-shell-storage-westeurope/providers/Microsoft.MachineLearningServices/workspaces/tm-new-project5-workspace",
"name": "tm-new-project5-workspace",
"public_network_access": "Enabled",
"resourceGroup": "cloud-shell-storage-westeurope",
"resource_group": "cloud-shell-storage-westeurope",
"serverless_compute": {
"no_public_ip": false
},
"storage_account": "/subscriptions/abcd1234-abcd-1234-abcd-1234abcd1234/resourceGroups/cloud-shell-storage-westeurope/providers/Microsoft.Storage/storageAccounts/1234abcd12341234abcd1234",
"tags": {
"AttachAppInsightsToWorkspace": "false",
"createdByToolkit": "cli-v2-1.16.1"
}
}
04 Repeat steps no. 1 - 3 for each workspace that you want to re-create, available in the selected Azure subscription.
05 Repeat steps no. 1 – 4 for each subscription available in your Microsoft Azure cloud account.