Workspaces - Update
Updates a machine learning workspace with the specified parameters.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}?api-version=2024-10-01
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string |
The ID of the target subscription. |
workspace
|
path | True |
string |
Name of Azure Machine Learning workspace. Regex pattern: |
api-version
|
query | True |
string |
The API version to use for this operation. |
Name | Type | Description |
---|---|---|
identity |
The identity of the resource. |
|
properties.applicationInsights |
string |
ARM id of the application insights associated with this workspace. |
properties.containerRegistry |
string |
ARM id of the container registry associated with this workspace. |
properties.description |
string |
The description of this workspace. |
properties.enableDataIsolation |
boolean |
|
properties.encryption | ||
properties.featureStoreSettings |
Settings for feature store type workspace. |
|
properties.friendlyName |
string |
The friendly name for this workspace. |
properties.imageBuildCompute |
string |
The compute name for image build |
properties.managedNetwork |
Managed Network settings for a machine learning workspace. |
|
properties.primaryUserAssignedIdentity |
string |
The user assigned identity resource id that represents the workspace identity. |
properties.publicNetworkAccess |
Whether requests from Public Network are allowed. |
|
properties.serverlessComputeSettings |
Settings for serverless compute created in the workspace |
|
properties.serviceManagedResourcesSettings |
The service managed resource settings. |
|
properties.v1LegacyMode |
boolean |
Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. |
sku |
The sku of the workspace. |
|
tags |
object |
The resource tags for the machine learning workspace. |
Name | Type | Description |
---|---|---|
200 OK |
The request was successful; the request was well-formed and received properly. |
|
202 Accepted |
Accepted Headers
|
|
Other Status Codes |
Error response describing why the operation failed |
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Sample request
PATCH https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace?api-version=2024-10-01
{
"properties": {
"friendlyName": "New friendly name",
"description": "new description",
"publicNetworkAccess": "Disabled"
}
}
Sample response
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace",
"name": "testworkspace",
"type": "Microsoft.MachineLearningServices/workspaces",
"location": "eastus2euap",
"identity": {
"principalId": "00000000-1111-2222-3333-444444444444",
"tenantId": "00000000-1111-2222-3333-444444444444",
"type": "SystemAssigned"
},
"properties": {
"containerRegistry": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ContainerRegistry/registries/testRegistry",
"keyVault": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv",
"applicationInsights": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/microsoft.insights/components/testinsights",
"storageAccount": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount",
"discoveryUrl": "http://example.com",
"friendlyName": "New friendly name",
"description": "new description",
"publicNetworkAccess": "Disabled"
}
}
Location: example_location
Name | Description |
---|---|
Compute |
Compute runtime config for feature store type workspace. |
Cosmos |
|
created |
The type of identity that created the resource. |
Encryption |
|
Encryption |
|
Encryption |
|
Encryption |
Indicates whether or not the encryption is enabled for the workspace. |
Encryption |
|
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Feature |
Settings for feature store type workspace. |
Firewall |
Firewall Sku used for FQDN Rules |
Fqdn |
FQDN Outbound Rule for the managed network of a machine learning workspace. |
Identity |
Identity that will be used to access key vault for encryption at rest |
Isolation |
Isolation mode for the managed network of a machine learning workspace. |
Managed |
Status of the Provisioning for the managed network of a machine learning workspace. |
Managed |
Managed Network settings for a machine learning workspace. |
Managed |
Status for the managed network of a machine learning workspace. |
Managed |
Managed service identity (system assigned and/or user assigned identities) |
Managed |
Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). |
Notebook |
|
Notebook |
|
Private |
The Private Endpoint resource. |
Private |
The Private Endpoint Connection resource. |
Private |
The current provisioning state. |
Private |
Private Endpoint destination for a Private Endpoint Outbound Rule for the managed network of a machine learning workspace. |
Private |
Private Endpoint Outbound Rule for the managed network of a machine learning workspace. |
Private |
The private endpoint connection status. |
Private |
A collection of information about the state of the connection between service consumer and provider. |
Provisioning |
The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. |
Public |
Whether requests from Public Network are allowed. |
Rule |
The action enum for networking rule. |
Rule |
Category of a managed network Outbound Rule of a machine learning workspace. |
Rule |
Type of a managed network Outbound Rule of a machine learning workspace. |
Rule |
Type of a managed network Outbound Rule of a machine learning workspace. |
Serverless |
|
Service |
|
Service |
Service Tag destination for a Service Tag Outbound Rule for the managed network of a machine learning workspace. |
Service |
Service Tag Outbound Rule for the managed network of a machine learning workspace. |
Shared |
|
Sku |
The resource model definition representing SKU |
Sku |
This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. |
system |
Metadata pertaining to creation and last modification of the resource. |
User |
User assigned identity properties |
Workspace |
An object that represents a machine learning workspace. |
Workspace |
WorkspaceHub's configuration object. |
Workspace |
The parameters for updating a machine learning workspace. |
Compute runtime config for feature store type workspace.
Name | Type | Description |
---|---|---|
sparkRuntimeVersion |
string |
Name | Type | Description |
---|---|---|
collectionsThroughput |
integer |
The throughput of the collections in cosmosdb database |
The type of identity that created the resource.
Value | Description |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
Name | Type | Description |
---|---|---|
identityClientId |
string |
For future use - The client id of the identity which will be used to access key vault. |
keyIdentifier |
string |
Key vault uri to access the encryption key. |
keyVaultArmId |
string |
The ArmId of the keyVault where the customer owned encryption key is present. |
Name | Type | Description |
---|---|---|
keyIdentifier |
string |
Name | Type | Description |
---|---|---|
identity |
The identity that will be used to access the key vault for encryption at rest. |
|
keyVaultProperties |
Customer Key vault properties. |
|
status |
Indicates whether or not the encryption is enabled for the workspace. |
Indicates whether or not the encryption is enabled for the workspace.
Value | Description |
---|---|
Disabled | |
Enabled |
Name | Type | Description |
---|---|---|
keyVaultProperties |
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
Settings for feature store type workspace.
Name | Type | Description |
---|---|---|
computeRuntime |
Compute runtime config for feature store type workspace. |
|
offlineStoreConnectionName |
string |
|
onlineStoreConnectionName |
string |
Firewall Sku used for FQDN Rules
Value | Description |
---|---|
Basic | |
Standard |
FQDN Outbound Rule for the managed network of a machine learning workspace.
Name | Type | Description |
---|---|---|
category |
Category of a managed network Outbound Rule of a machine learning workspace. |
|
destination |
string |
|
status |
Type of a managed network Outbound Rule of a machine learning workspace. |
|
type |
string:
FQDN |
Type of a managed network Outbound Rule of a machine learning workspace. |
Identity that will be used to access key vault for encryption at rest
Name | Type | Description |
---|---|---|
userAssignedIdentity |
string |
The ArmId of the user assigned identity that will be used to access the customer managed key vault |
Isolation mode for the managed network of a machine learning workspace.
Value | Description |
---|---|
AllowInternetOutbound | |
AllowOnlyApprovedOutbound | |
Disabled |
Status of the Provisioning for the managed network of a machine learning workspace.
Name | Type | Description |
---|---|---|
sparkReady |
boolean |
|
status |
Status for the managed network of a machine learning workspace. |
Managed Network settings for a machine learning workspace.
Name | Type | Description |
---|---|---|
firewallSku |
Firewall Sku used for FQDN Rules |
|
isolationMode |
Isolation mode for the managed network of a machine learning workspace. |
|
networkId |
string |
|
outboundRules |
object |
|
status |
Status of the Provisioning for the managed network of a machine learning workspace. |
Status for the managed network of a machine learning workspace.
Value | Description |
---|---|
Active | |
Inactive |
Managed service identity (system assigned and/or user assigned identities)
Name | Type | Description |
---|---|---|
principalId |
string |
The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. |
tenantId |
string |
The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. |
type |
Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). |
|
userAssignedIdentities |
<string,
User |
User-Assigned Identities |
Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
Value | Description |
---|---|
None | |
SystemAssigned | |
SystemAssigned,UserAssigned | |
UserAssigned |
Name | Type | Description |
---|---|---|
errorMessage |
string |
|
statusCode |
integer |
Name | Type | Description |
---|---|---|
fqdn |
string |
|
notebookPreparationError |
The error that occurs when preparing notebook. |
|
resourceId |
string |
the data plane resourceId that used to initialize notebook component |
The Private Endpoint resource.
Name | Type | Description |
---|---|---|
id |
string |
The ARM identifier for Private Endpoint |
The Private Endpoint Connection resource.
Name | Type | Description |
---|---|---|
id |
string |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
identity |
The identity of the resource. |
|
location |
string |
Specifies the location of the resource. |
name |
string |
The name of the resource |
properties.privateEndpoint |
The resource of private end point. |
|
properties.privateLinkServiceConnectionState |
A collection of information about the state of the connection between service consumer and provider. |
|
properties.provisioningState |
The provisioning state of the private endpoint connection resource. |
|
sku |
The sku of the workspace. |
|
systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
tags |
object |
Contains resource tags defined as key/value pairs. |
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
The current provisioning state.
Value | Description |
---|---|
Creating | |
Deleting | |
Failed | |
Succeeded |
Private Endpoint destination for a Private Endpoint Outbound Rule for the managed network of a machine learning workspace.
Name | Type | Description |
---|---|---|
serviceResourceId |
string |
|
sparkEnabled |
boolean |
|
sparkStatus |
Type of a managed network Outbound Rule of a machine learning workspace. |
|
subresourceTarget |
string |
Private Endpoint Outbound Rule for the managed network of a machine learning workspace.
Name | Type | Description |
---|---|---|
category |
Category of a managed network Outbound Rule of a machine learning workspace. |
|
destination |
Private Endpoint destination for a Private Endpoint Outbound Rule for the managed network of a machine learning workspace. |
|
status |
Type of a managed network Outbound Rule of a machine learning workspace. |
|
type | string: |
Type of a managed network Outbound Rule of a machine learning workspace. |
The private endpoint connection status.
Value | Description |
---|---|
Approved | |
Disconnected | |
Pending | |
Rejected | |
Timeout |
A collection of information about the state of the connection between service consumer and provider.
Name | Type | Description |
---|---|---|
actionsRequired |
string |
A message indicating if changes on the service provider require any updates on the consumer. |
description |
string |
The reason for approval/rejection of the connection. |
status |
Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. |
The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning.
Value | Description |
---|---|
Canceled | |
Creating | |
Deleting | |
Failed | |
Succeeded | |
Unknown | |
Updating |
Whether requests from Public Network are allowed.
Value | Description |
---|---|
Disabled | |
Enabled |
The action enum for networking rule.
Value | Description |
---|---|
Allow | |
Deny |
Category of a managed network Outbound Rule of a machine learning workspace.
Value | Description |
---|---|
Dependency | |
Recommended | |
Required | |
UserDefined |
Type of a managed network Outbound Rule of a machine learning workspace.
Value | Description |
---|---|
Active | |
Inactive |
Type of a managed network Outbound Rule of a machine learning workspace.
Value | Description |
---|---|
FQDN | |
PrivateEndpoint | |
ServiceTag |
Name | Type | Description |
---|---|---|
serverlessComputeCustomSubnet |
string |
The resource ID of an existing virtual network subnet in which serverless compute nodes should be deployed |
serverlessComputeNoPublicIP |
boolean |
The flag to signal if serverless compute nodes deployed in custom vNet would have no public IP addresses for a workspace with private endpoint |
Name | Type | Description |
---|---|---|
cosmosDb |
The settings for the service managed cosmosdb account. |
Service Tag destination for a Service Tag Outbound Rule for the managed network of a machine learning workspace.
Name | Type | Description |
---|---|---|
action |
The action enum for networking rule. |
|
addressPrefixes |
string[] |
Optional, if provided, the ServiceTag property will be ignored. |
portRanges |
string |
|
protocol |
string |
|
serviceTag |
string |
Service Tag Outbound Rule for the managed network of a machine learning workspace.
Name | Type | Description |
---|---|---|
category |
Category of a managed network Outbound Rule of a machine learning workspace. |
|
destination |
Service Tag destination for a Service Tag Outbound Rule for the managed network of a machine learning workspace. |
|
status |
Type of a managed network Outbound Rule of a machine learning workspace. |
|
type |
string:
Service |
Type of a managed network Outbound Rule of a machine learning workspace. |
Name | Type | Description |
---|---|---|
name |
string |
Unique name of the private link. |
properties.groupId |
string |
The private link resource group id. |
properties.privateLinkResourceId |
string |
The resource id that private link links to. |
properties.requestMessage |
string |
Request message. |
properties.status |
Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. |
The resource model definition representing SKU
Name | Type | Description |
---|---|---|
capacity |
integer |
If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. |
family |
string |
If the service has different generations of hardware, for the same SKU, then that can be captured here. |
name |
string |
The name of the SKU. Ex - P3. It is typically a letter+number code |
size |
string |
The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. |
tier |
This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. |
This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.
Value | Description |
---|---|
Basic | |
Free | |
Premium | |
Standard |
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |
User assigned identity properties
Name | Type | Description |
---|---|---|
clientId |
string |
The client ID of the assigned identity. |
principalId |
string |
The principal ID of the assigned identity. |
An object that represents a machine learning workspace.
Name | Type | Default value | Description |
---|---|---|---|
id |
string |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
|
identity |
The identity of the resource. |
||
kind |
string |
||
location |
string |
Specifies the location of the resource. |
|
name |
string |
The name of the resource |
|
properties.allowPublicAccessWhenBehindVnet |
boolean |
False |
The flag to indicate whether to allow public access when behind VNet. |
properties.applicationInsights |
string |
ARM id of the application insights associated with this workspace. |
|
properties.associatedWorkspaces |
string[] |
||
properties.containerRegistry |
string |
ARM id of the container registry associated with this workspace. |
|
properties.description |
string |
The description of this workspace. |
|
properties.discoveryUrl |
string |
Url for the discovery service to identify regional endpoints for machine learning experimentation services |
|
properties.enableDataIsolation |
boolean |
||
properties.encryption |
The encryption settings of Azure ML workspace. |
||
properties.featureStoreSettings |
Settings for feature store type workspace. |
||
properties.friendlyName |
string |
The friendly name for this workspace. This name in mutable |
|
properties.hbiWorkspace |
boolean |
False |
The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service |
properties.hubResourceId |
string |
||
properties.imageBuildCompute |
string |
The compute name for image build |
|
properties.keyVault |
string |
ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created |
|
properties.managedNetwork |
Managed Network settings for a machine learning workspace. |
||
properties.mlFlowTrackingUri |
string |
The URI associated with this workspace that machine learning flow must point at to set up tracking. |
|
properties.notebookInfo |
The notebook info of Azure ML workspace. |
||
properties.primaryUserAssignedIdentity |
string |
The user assigned identity resource id that represents the workspace identity. |
|
properties.privateEndpointConnections |
The list of private endpoint connections in the workspace. |
||
properties.privateLinkCount |
integer |
Count of private connections in the workspace |
|
properties.provisioningState |
The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. |
||
properties.publicNetworkAccess |
Whether requests from Public Network are allowed. |
||
properties.serverlessComputeSettings |
Settings for serverless compute created in the workspace |
||
properties.serviceManagedResourcesSettings |
The service managed resource settings. |
||
properties.serviceProvisionedResourceGroup |
string |
The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace |
|
properties.sharedPrivateLinkResources |
The list of shared private link resources in this workspace. |
||
properties.storageAccount |
string |
ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created |
|
properties.storageHnsEnabled |
boolean |
If the storage associated with the workspace has hierarchical namespace(HNS) enabled. |
|
properties.tenantId |
string |
The tenant id associated with this workspace. |
|
properties.v1LegacyMode |
boolean |
False |
Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. |
properties.workspaceHubConfig |
WorkspaceHub's configuration object. |
||
properties.workspaceId |
string |
The immutable id associated with this workspace. |
|
sku |
The sku of the workspace. |
||
systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
||
tags |
object |
Contains resource tags defined as key/value pairs. |
|
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
WorkspaceHub's configuration object.
Name | Type | Description |
---|---|---|
additionalWorkspaceStorageAccounts |
string[] |
|
defaultWorkspaceResourceGroup |
string |
The parameters for updating a machine learning workspace.
Name | Type | Description |
---|---|---|
identity |
The identity of the resource. |
|
properties.applicationInsights |
string |
ARM id of the application insights associated with this workspace. |
properties.containerRegistry |
string |
ARM id of the container registry associated with this workspace. |
properties.description |
string |
The description of this workspace. |
properties.enableDataIsolation |
boolean |
|
properties.encryption | ||
properties.featureStoreSettings |
Settings for feature store type workspace. |
|
properties.friendlyName |
string |
The friendly name for this workspace. |
properties.imageBuildCompute |
string |
The compute name for image build |
properties.managedNetwork |
Managed Network settings for a machine learning workspace. |
|
properties.primaryUserAssignedIdentity |
string |
The user assigned identity resource id that represents the workspace identity. |
properties.publicNetworkAccess |
Whether requests from Public Network are allowed. |
|
properties.serverlessComputeSettings |
Settings for serverless compute created in the workspace |
|
properties.serviceManagedResourcesSettings |
The service managed resource settings. |
|
properties.v1LegacyMode |
boolean |
Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. |
sku |
The sku of the workspace. |
|
tags |
object |
The resource tags for the machine learning workspace. |