Queries for the AmlEnvironmentEvent table
For information on using these queries in the Azure portal, see Log Analytics tutorial. For the REST API, see Query.
Request the history of accessing environment
Request the history of accessing specific environment in the specific AML workspace.
AmlEnvironmentEvent
| where AmlEnvironmentName =="experiment_env" and split(_ResourceId, "/")[-1]=="amlws"
| extend Identity=(parse_json(Identity))
| where Identity.UserName!=""
| project TimeGenerated, OperationName=split(OperationName, "/")[-1], WorkspaceName=split(_ResourceId, "/")[-1], AmlEnvironmentName,AmlEnvironmentVersion, UserName=Identity.UserName
| limit 100