Thank you @Abrar Adil S and @romungi-MSFT , putting together the type Microsoft.MachinelearningServices/workspaces
and the kind Hub
did the trick. With that policy I'm able to block Azure AI Studio, and the Machine Learning workspaces and the Cognitive services are not impacted.
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.MachineLearningServices/workspaces"
},
{
"field": "kind",
"equals": "Hub"
}
]
},