{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-machine-learning/json-schema/microsoft-azure-machine-learning-workspace-update-parameters-schema.json",
  "title": "WorkspaceUpdateParameters",
  "description": "The parameters for updating a machine learning workspace.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-machine-learning-workspaces-api-openapi.yml#/components/schemas/WorkspaceUpdateParameters",
  "type": "object",
  "properties": {
    "identity": {
      "$ref": "#/$defs/ManagedServiceIdentity"
    },
    "properties": {
      "$ref": "#/$defs/WorkspacePropertiesUpdateParameters",
      "description": "The properties that the machine learning workspace will be updated with.",
      "x-ms-client-flatten": true
    },
    "sku": {
      "$ref": "#/$defs/Sku",
      "description": "Optional. This field is required to be implemented by the RP because AML is supporting more than one tier"
    },
    "tags": {
      "type": "object",
      "description": "The resource tags for the machine learning workspace.",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "ComputeRuntimeDto": {
      "type": "object",
      "properties": {
        "sparkRuntimeVersion": {
          "type": "string"
        }
      }
    },
    "CosmosDbSettings": {
      "type": "object",
      "properties": {
        "collectionsThroughput": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "EncryptionKeyVaultUpdateProperties": {
      "type": "object",
      "properties": {
        "keyIdentifier": {
          "type": "string",
          "minLength": 1,
          "pattern": "[a-zA-Z0-9_]"
        }
      },
      "required": [
        "keyIdentifier"
      ]
    },
    "EncryptionUpdateProperties": {
      "type": "object",
      "properties": {
        "keyVaultProperties": {
          "$ref": "#/$defs/EncryptionKeyVaultUpdateProperties"
        }
      },
      "required": [
        "keyVaultProperties"
      ]
    },
    "FeatureStoreSettings": {
      "type": "object",
      "properties": {
        "computeRuntime": {
          "$ref": "#/$defs/ComputeRuntimeDto"
        },
        "offlineStoreConnectionName": {
          "type": "string"
        },
        "onlineStoreConnectionName": {
          "type": "string"
        }
      }
    },
    "FirewallSku": {
      "type": "string",
      "description": "Firewall Sku used for FQDN Rules",
      "enum": [
        "Standard",
        "Basic"
      ],
      "x-ms-enum": {
        "name": "FirewallSku",
        "modelAsString": true,
        "values": [
          {
            "name": "Standard",
            "value": "Standard"
          },
          {
            "name": "Basic",
            "value": "Basic"
          }
        ]
      }
    },
    "IsolationMode": {
      "type": "string",
      "description": "Isolation mode for the managed network of a machine learning workspace.",
      "enum": [
        "Disabled",
        "AllowInternetOutbound",
        "AllowOnlyApprovedOutbound"
      ],
      "x-ms-enum": {
        "name": "IsolationMode",
        "modelAsString": true,
        "values": [
          {
            "name": "Disabled",
            "value": "Disabled"
          },
          {
            "name": "AllowInternetOutbound",
            "value": "AllowInternetOutbound"
          },
          {
            "name": "AllowOnlyApprovedOutbound",
            "value": "AllowOnlyApprovedOutbound"
          }
        ]
      }
    },
    "ManagedNetworkKind": {
      "type": "string",
      "description": "The Kind of the managed network. Users can switch from V1 to V2 for granular access controls, but cannot switch back to V1 once V2 is enabled.",
      "enum": [
        "V1",
        "V2"
      ],
      "x-ms-enum": {
        "name": "ManagedNetworkKind",
        "modelAsString": true,
        "values": [
          {
            "name": "V1",
            "value": "V1"
          },
          {
            "name": "V2",
            "value": "V2"
          }
        ]
      }
    },
    "ManagedNetworkProvisionStatus": {
      "type": "object",
      "description": "Status of the Provisioning for the managed network of a machine learning workspace.",
      "properties": {
        "sparkReady": {
          "type": "boolean"
        },
        "status": {
          "$ref": "#/$defs/ManagedNetworkStatus",
          "description": "Status for the managed network of a machine learning workspace."
        }
      }
    },
    "ManagedNetworkSettings": {
      "type": "object",
      "description": "Managed Network settings for a machine learning workspace.",
      "properties": {
        "enableNetworkMonitor": {
          "type": "boolean",
          "description": "A flag to indicate if monitoring needs to be enabled for the managed network.",
          "default": false
        },
        "isolationMode": {
          "$ref": "#/$defs/IsolationMode",
          "description": "Isolation mode for the managed network of a machine learning workspace."
        },
        "networkId": {
          "type": "string",
          "readOnly": true
        },
        "outboundRules": {
          "type": [
            "object",
            "null"
          ],
          "description": "Dictionary of <OutboundRule>",
          "additionalProperties": {
            "$ref": "#/$defs/OutboundRule"
          }
        },
        "status": {
          "$ref": "#/$defs/ManagedNetworkProvisionStatus",
          "description": "Status of the Provisioning for the managed network of a machine learning workspace."
        },
        "firewallSku": {
          "$ref": "#/$defs/FirewallSku",
          "description": "Firewall Sku used for FQDN Rules"
        },
        "managedNetworkKind": {
          "$ref": "#/$defs/ManagedNetworkKind",
          "description": "The Kind of the managed network. Users can switch from V1 to V2 for granular access controls, but cannot switch back to V1 once V2 is enabled."
        },
        "firewallPublicIpAddress": {
          "type": [
            "string",
            "null"
          ],
          "description": "Public IP address assigned to the Azure Firewall.",
          "readOnly": true
        }
      }
    },
    "ManagedNetworkStatus": {
      "type": "string",
      "description": "Status for the managed network of a machine learning workspace.",
      "enum": [
        "Inactive",
        "Active"
      ],
      "x-ms-enum": {
        "name": "ManagedNetworkStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Inactive",
            "value": "Inactive"
          },
          {
            "name": "Active",
            "value": "Active"
          }
        ]
      }
    },
    "ManagedServiceIdentity": {
      "type": "object",
      "description": "Managed service identity (system assigned and/or user assigned identities)",
      "properties": {
        "principalId": {
          "type": "string",
          "format": "uuid",
          "description": "The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.",
          "readOnly": true
        },
        "tenantId": {
          "type": "string",
          "format": "uuid",
          "description": "The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.",
          "readOnly": true
        },
        "type": {
          "$ref": "#/$defs/ManagedServiceIdentityType"
        },
        "userAssignedIdentities": {
          "$ref": "#/$defs/UserAssignedIdentities"
        }
      },
      "required": [
        "type"
      ]
    },
    "ManagedServiceIdentityType": {
      "type": "string",
      "description": "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).",
      "enum": [
        "None",
        "SystemAssigned",
        "UserAssigned",
        "SystemAssigned,UserAssigned"
      ],
      "x-ms-enum": {
        "name": "ManagedServiceIdentityType",
        "modelAsString": true
      }
    },
    "OutboundRule": {
      "type": "object",
      "description": "Outbound Rule for the managed network of a machine learning workspace.",
      "properties": {
        "category": {
          "$ref": "#/$defs/RuleCategory",
          "description": "Category of a managed network Outbound Rule of a machine learning workspace."
        },
        "status": {
          "$ref": "#/$defs/RuleStatus",
          "description": "Type of a managed network Outbound Rule of a machine learning workspace."
        },
        "type": {
          "$ref": "#/$defs/RuleType",
          "description": "Type of a managed network Outbound Rule of a machine learning workspace."
        },
        "errorInformation": {
          "type": "string",
          "description": "Error information about an outbound rule of a machine learning workspace if RuleStatus is failed.",
          "readOnly": true
        },
        "parentRuleNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "readOnly": true
        }
      },
      "required": [
        "type"
      ]
    },
    "PublicNetworkAccessType": {
      "type": "string",
      "description": "Enum to determine whether PublicNetworkAccess is Enabled or Disabled.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "PublicNetworkAccessType",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled"
          }
        ]
      }
    },
    "RuleCategory": {
      "type": "string",
      "description": "Category of a managed network Outbound Rule of a machine learning workspace.",
      "enum": [
        "Required",
        "Recommended",
        "UserDefined",
        "Dependency"
      ],
      "x-ms-enum": {
        "name": "RuleCategory",
        "modelAsString": true,
        "values": [
          {
            "name": "Required",
            "value": "Required"
          },
          {
            "name": "Recommended",
            "value": "Recommended"
          },
          {
            "name": "UserDefined",
            "value": "UserDefined"
          },
          {
            "name": "Dependency",
            "value": "Dependency"
          }
        ]
      }
    },
    "RuleStatus": {
      "type": "string",
      "description": "Type of a managed network Outbound Rule of a machine learning workspace.",
      "enum": [
        "Inactive",
        "Active",
        "Provisioning",
        "Deleting",
        "Failed"
      ],
      "x-ms-enum": {
        "name": "RuleStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Inactive",
            "value": "Inactive"
          },
          {
            "name": "Active",
            "value": "Active"
          },
          {
            "name": "Provisioning",
            "value": "Provisioning"
          },
          {
            "name": "Deleting",
            "value": "Deleting"
          },
          {
            "name": "Failed",
            "value": "Failed"
          }
        ]
      }
    },
    "RuleType": {
      "type": "string",
      "description": "Type of a managed network Outbound Rule of a machine learning workspace.",
      "enum": [
        "FQDN",
        "PrivateEndpoint",
        "ServiceTag"
      ],
      "x-ms-enum": {
        "name": "RuleType",
        "modelAsString": true,
        "values": [
          {
            "name": "FQDN",
            "value": "FQDN"
          },
          {
            "name": "PrivateEndpoint",
            "value": "PrivateEndpoint"
          },
          {
            "name": "ServiceTag",
            "value": "ServiceTag"
          }
        ]
      }
    },
    "ServerlessComputeSettings": {
      "type": "object",
      "properties": {
        "serverlessComputeCustomSubnet": {
          "type": "string",
          "format": "arm-id",
          "description": "The resource ID of an existing virtual network subnet in which serverless compute nodes should be deployed"
        },
        "serverlessComputeNoPublicIP": {
          "type": "boolean",
          "description": "The flag to signal if serverless compute nodes deployed in custom vNet would have no public IP addresses for a workspace with private endpoint"
        }
      }
    },
    "ServiceManagedResourcesSettings": {
      "type": "object",
      "properties": {
        "cosmosDb": {
          "$ref": "#/$defs/CosmosDbSettings"
        }
      }
    },
    "Sku": {
      "type": "object",
      "description": "The resource model definition representing SKU",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the SKU. Ex - P3. It is typically a letter+number code"
        },
        "tier": {
          "$ref": "#/$defs/SkuTier"
        },
        "size": {
          "type": "string",
          "description": "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. "
        },
        "family": {
          "type": "string",
          "description": "If the service has different generations of hardware, for the same SKU, then that can be captured here."
        },
        "capacity": {
          "type": "integer",
          "format": "int32",
          "description": "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."
        }
      },
      "required": [
        "name"
      ]
    },
    "SkuTier": {
      "type": "string",
      "description": "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.",
      "enum": [
        "Free",
        "Basic",
        "Standard",
        "Premium"
      ],
      "x-ms-enum": {
        "name": "SkuTier",
        "modelAsString": false
      }
    },
    "SystemDatastoresAuthMode": {
      "type": "string",
      "description": "The auth mode used for accessing the system datastores of the workspace.",
      "enum": [
        "AccessKey",
        "Identity",
        "UserDelegationSAS"
      ],
      "x-ms-enum": {
        "name": "SystemDatastoresAuthMode",
        "modelAsString": true,
        "values": [
          {
            "name": "AccessKey",
            "value": "AccessKey"
          },
          {
            "name": "Identity",
            "value": "Identity"
          },
          {
            "name": "UserDelegationSAS",
            "value": "UserDelegationSAS"
          }
        ]
      }
    },
    "WorkspacePropertiesUpdateParameters": {
      "type": "object",
      "description": "The parameters for updating a machine learning workspace.",
      "properties": {
        "applicationInsights": {
          "type": "string",
          "description": "ARM id of the application insights associated with this workspace."
        },
        "containerRegistry": {
          "type": "string",
          "description": "ARM id of the container registry associated with this workspace."
        },
        "description": {
          "type": "string",
          "description": "The description of this workspace."
        },
        "enableDataIsolation": {
          "type": "boolean"
        },
        "encryption": {
          "$ref": "#/$defs/EncryptionUpdateProperties"
        },
        "featureStoreSettings": {
          "$ref": "#/$defs/FeatureStoreSettings",
          "description": "Settings for feature store type workspace."
        },
        "friendlyName": {
          "type": "string",
          "description": "The friendly name for this workspace. This name in mutable"
        },
        "imageBuildCompute": {
          "type": "string",
          "description": "The compute name for image build"
        },
        "managedNetwork": {
          "$ref": "#/$defs/ManagedNetworkSettings"
        },
        "primaryUserAssignedIdentity": {
          "type": "string",
          "description": "The user assigned identity resource id that represents the workspace identity."
        },
        "publicNetworkAccess": {
          "$ref": "#/$defs/PublicNetworkAccessType",
          "description": "Whether requests from Public Network are allowed."
        },
        "serverlessComputeSettings": {
          "$ref": "#/$defs/ServerlessComputeSettings",
          "description": "Settings for serverless compute in a workspace"
        },
        "serviceManagedResourcesSettings": {
          "$ref": "#/$defs/ServiceManagedResourcesSettings",
          "description": "The service managed resource settings."
        },
        "systemDatastoresAuthMode": {
          "$ref": "#/$defs/SystemDatastoresAuthMode",
          "description": "The auth mode used for accessing the system datastores of the workspace."
        },
        "v1LegacyMode": {
          "type": "boolean",
          "description": "Enabling v1_legacy_mode may prevent you from using features provided by the v2 API."
        }
      }
    }
  }
}