Ksama Arora

Access in Azure ML Workspace*

Using Python SDK to interact with Azure ML workspace*

IMP Note

IMP Note: Managing Azure ML Workspace w.r.t. Data Security

Create Azure ML Workspace and use custom data encryption key for data security

from azure.ai.ml.entities import Workspace, CustomerManagedKey

ws = Workspace(
    name="my_workspace",
    location="eastus",
    display_name="My workspace",
    description="This example shows how to create a workspace",
    customer_managed_key=CustomerManagedKey(
        key_vault="/subscriptions/<SUBSCRIPTION_ID>/resourcegroups/<RESOURCE_GROUP>/providers/microsoft.keyvault/vaults/<VAULT_NAME>",
        key_uri="<KEY-IDENTIFIER>"
    ),
    tags=dict(purpose="DP-100 Exam")
)

ml_client.workspaces.begin_create(ws)

Using Azure CLI to interact with Azure ML workspace