Azure Machine Learning Workspace
This page shows how to write Terraform and Azure Resource Manager for Machine Learning Workspace and write them securely.
azurerm_machine_learning_workspace (Terraform)
The Workspace in Machine Learning can be configured in Terraform with the resource name azurerm_machine_learning_workspace. The following sections describe 8 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_machine_learning_workspace" "ml" {
name = join("-", ["ml", var.namespace, var.environment])
location = azurerm_resource_group.ml.location
resource_group_name = azurerm_resource_group.ml.name
application_insights_id = azurerm_application_insights.ml.id
key_vault_id = azurerm_key_vault.ml.id
resource "azurerm_machine_learning_workspace" "AML" {
name = "cloudquickpocs-aml-workspace"
location = azurerm_resource_group.AML.location
resource_group_name = azurerm_resource_group.AML.name
application_insights_id = azurerm_application_insights.AML.id
key_vault_id = azurerm_key_vault.AML.id
resource "azurerm_machine_learning_workspace" "mlw" {
name = var.machine_learning_workspace_name
location = var.resource_group_location
resource_group_name = var.resource_group_name
application_insights_id = azurerm_application_insights.appi.id
key_vault_id = var.key_vault_id
resource "azurerm_machine_learning_workspace" "mlworkspace" {
name = var.name
location = data.azurerm_resource_group.ml_resource_group.location
resource_group_name = var.resource_group_name
application_insights_id = var.application_insights_id
key_vault_id = var.key_vault_id
resource "azurerm_machine_learning_workspace" "mlw" {
name = var.machine_learning_workspace_name
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
application_insights_id = azurerm_application_insights.appi.id
key_vault_id = azurerm_key_vault.kv.id
resource "azurerm_machine_learning_workspace" "this" {
name = var.workspace_name
location = var.location
resource_group_name = var.resource_group_name
application_insights_id = azurerm_application_insights.this.id
key_vault_id = var.key_vault_id
resource "azurerm_machine_learning_workspace" "ws" {
name = azurecaf_name.ws.result
location = var.location
resource_group_name = var.resource_group_name
application_insights_id = var.application_insights_id
key_vault_id = var.keyvault_id
resource "azurerm_machine_learning_workspace" "ws" {
name = azurecaf_name.ws.result
location = var.location
resource_group_name = var.resource_group_name
application_insights_id = var.application_insights_id
key_vault_id = var.keyvault_id
Parameters
-
application_insights_idrequired - string -
container_registry_idoptional - string -
descriptionoptional - string -
friendly_nameoptional - string -
high_business_impactoptional - bool -
idoptional computed - string -
key_vault_idrequired - string -
locationrequired - string -
namerequired - string -
resource_group_namerequired - string -
sku_nameoptional - string -
storage_account_idrequired - string -
tagsoptional - map from string to string -
identitylist block-
principal_idoptional computed - string -
tenant_idoptional computed - string -
typerequired - string
-
-
timeoutssingle block
Explanation in Terraform Registry
Manages a Azure Machine Learning Workspace
Microsoft.MachineLearningServices/workspaces (Azure Resource Manager)
The workspaces in Microsoft.MachineLearningServices can be configured in Azure Resource Manager with the resource name Microsoft.MachineLearningServices/workspaces. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
apiVersionrequired - stringidentityoptionaltypeoptional - stringThe identity type.
userAssignedIdentitiesoptional - undefineddictionary containing all the user assigned identities, with resourceId of the UAI as key.
locationoptional - stringSpecifies the location of the resource.
namerequired - stringName of Azure Machine Learning workspace.
propertiesrequiredallowPublicAccessWhenBehindVnetoptional - booleanThe flag to indicate whether to allow public access when behind VNet.
applicationInsightsoptional - stringARM id of the application insights associated with this workspace. This cannot be changed once the workspace has been created
containerRegistryoptional - stringARM id of the container registry associated with this workspace. This cannot be changed once the workspace has been created
descriptionoptional - stringThe description of this workspace.
discoveryUrloptional - stringUrl for the discovery service to identify regional endpoints for machine learning experimentation services
encryptionoptionalidentityoptionaluserAssignedIdentityoptional - stringThe ArmId of the user assigned identity that will be used to access the customer managed key vault
keyVaultPropertiesrequiredidentityClientIdoptional - stringFor future use - The client id of the identity which will be used to access key vault.
keyIdentifierrequired - stringKey vault uri to access the encryption key.
keyVaultArmIdrequired - stringThe ArmId of the keyVault where the customer owned encryption key is present.
statusrequired - stringIndicates whether or not the encryption is enabled for the workspace.
friendlyNameoptional - stringThe friendly name for this workspace. This name in mutable
hbiWorkspaceoptional - booleanThe flag to signal HBI data in the workspace and reduce diagnostic data collected by the service
imageBuildComputeoptional - stringThe compute name for image build
keyVaultoptional - stringARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created
primaryUserAssignedIdentityoptional - stringThe user assigned identity resource id that represents the workspace identity.
publicNetworkAccessoptional - stringWhether requests from Public Network are allowed.
serviceManagedResourcesSettingsoptionalcosmosDboptionalcollectionsThroughputoptional - integerThe throughput of the collections in cosmosdb database
sharedPrivateLinkResourcesoptional arraynameoptional - stringUnique name of the private link.
propertiesoptionalgroupIdoptional - stringThe private link resource group id.
privateLinkResourceIdoptional - stringThe resource id that private link links to.
requestMessageoptional - stringRequest message.
statusoptional - stringIndicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
storageAccountoptional - stringARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created
skuoptionalnameoptional - stringName of the sku
tieroptional - stringTier of the sku like Basic or Enterprise
systemDataoptionalcreatedAtoptional - stringThe timestamp of resource creation (UTC).
createdByoptional - stringThe identity that created the resource.
createdByTypeoptional - stringThe type of identity that created the resource.
lastModifiedAtoptional - stringThe timestamp of resource last modification (UTC)
lastModifiedByoptional - stringThe identity that last modified the resource.
lastModifiedByTypeoptional - stringThe type of identity that last modified the resource.
tagsoptional - stringContains resource tags defined as key/value pairs.
typerequired - string
Frequently asked questions
What is Azure Machine Learning Workspace?
Azure Machine Learning Workspace is a resource for Machine Learning of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure Machine Learning Workspace?
For Terraform, the dmaxim/terrademo, seeewhy/PythonHacks and FabLabGent/InfrastructureFabLabGent source code examples are useful. See the Terraform Example section for further details.