← cd ~/roles
// roles/azure · analytics
Stream Analytics Query TesterAzure built-in role
Lets you perform query testing without creating a stream analytics job first
| Role ID | 1ec5b3c1-b17e-4e25-8312-2acb3c3c5abf |
|---|---|
| Category | Analytics |
| Actions | 4 |
| Data actions | 0 |
What it can do
| Permission | What it allows |
|---|---|
Microsoft.StreamAnalytics/locations/TestQuery/action | Test Query for Stream Analytics Resource Provider |
Microsoft.StreamAnalytics/locations/OperationResults/read | Read Stream Analytics Operation Result |
Microsoft.StreamAnalytics/locations/SampleInput/action | Sample Input for Stream Analytics Resource Provider |
Microsoft.StreamAnalytics/locations/CompileQuery/action | Compile Query for Stream Analytics Resource Provider |
Assign it
Scope it as tightly as you can: a resource or resource group rather than the whole subscription.
az role assignment create \
--assignee "jane.doe@contoso.com" \
--role "Stream Analytics Query Tester" \
--scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
-RoleDefinitionName "Stream Analytics Query Tester" `
-Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(resourceGroup().id, principalId, '1ec5b3c1-b17e-4e25-8312-2acb3c3c5abf')
properties: {
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '1ec5b3c1-b17e-4e25-8312-2acb3c3c5abf')
principalId: principalId
}
}Who already has it?
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "1ec5b3c1-b17e-4e25-8312-2acb3c3c5abf"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)Other analytics roles
- Azure Event Hubs Data Owner · 2 permissions
- Azure Event Hubs Data Receiver · 2 permissions
- Azure Event Hubs Data Sender · 2 permissions
- Schema Registry Contributor · 2 permissions
- Schema Registry Reader · 2 permissions
- HDInsight Domain Services Contributor · 3 permissions
- Data Factory Contributor · 9 permissions
- HDInsight Cluster Operator · 9 permissions