azureblog.co.uk
← cd ~/roles
// roles/azure · ai-machine-learning

Cognitive Services QnA Maker EditorAzure built-in role

Let's you create, edit, import and export a KB. You cannot publish or delete a KB.

Role IDf4cc2bf9-21be-47a1-bdf1-5c5804381025
CategoryAi-machine-learning
Actions3
Data actions39

Before you assign it

  • It reaches the data, not just the resource. It has 39 data actions, such as reading blobs, secrets or messages.

What it can do

PermissionWhat it allows
Microsoft.CognitiveServices/*/readAny read operation on anything under Microsoft.CognitiveServices
Microsoft.Authorization/roleAssignments/readGet information about a role assignment.
Microsoft.Authorization/roleDefinitions/readGet information about a role definition.

Data actions

PermissionWhat it allows
Microsoft.CognitiveServices/accounts/QnAMaker/knowledgebases/readGets List of Knowledgebases or details of a specific knowledgebase.
Microsoft.CognitiveServices/accounts/QnAMaker/knowledgebases/download/readDownload the knowledgebase.
Microsoft.CognitiveServices/accounts/QnAMaker/knowledgebases/create/writeAsynchronous operation to create a new knowledgebase.
Microsoft.CognitiveServices/accounts/QnAMaker/knowledgebases/writeAsynchronous operation to modify a knowledgebase or Replace knowledgebase contents.
Microsoft.CognitiveServices/accounts/QnAMaker/knowledgebases/generateanswer/actionGenerateAnswer call to query the knowledgebase.
Microsoft.CognitiveServices/accounts/QnAMaker/knowledgebases/train/actionTrain call to add suggestions to the knowledgebase.
Microsoft.CognitiveServices/accounts/QnAMaker/alterations/readDownload alterations from runtime.
Microsoft.CognitiveServices/accounts/QnAMaker/alterations/writeReplace alterations data.
Microsoft.CognitiveServices/accounts/QnAMaker/endpointkeys/readGets endpoint keys for an endpoint
Microsoft.CognitiveServices/accounts/QnAMaker/endpointkeys/refreshkeys/actionRe-generates an endpoint key.
Microsoft.CognitiveServices/accounts/QnAMaker/endpointsettings/readGets endpoint settings for an endpoint
Microsoft.CognitiveServices/accounts/QnAMaker/endpointsettings/writeUpdate endpoint settings for an endpoint.
Microsoft.CognitiveServices/accounts/QnAMaker/operations/readGets details of a specific long running operation.
Microsoft.CognitiveServices/accounts/QnAMaker.v2/knowledgebases/readGets List of Knowledgebases or details of a specific knowledgebase.
Microsoft.CognitiveServices/accounts/QnAMaker.v2/knowledgebases/download/readDownload the knowledgebase.
Microsoft.CognitiveServices/accounts/QnAMaker.v2/knowledgebases/create/writeAsynchronous operation to create a new knowledgebase.
Microsoft.CognitiveServices/accounts/QnAMaker.v2/knowledgebases/writeAsynchronous operation to modify a knowledgebase or Replace knowledgebase contents.
Microsoft.CognitiveServices/accounts/QnAMaker.v2/knowledgebases/generateanswer/actionGenerateAnswer call to query the knowledgebase.
Microsoft.CognitiveServices/accounts/QnAMaker.v2/knowledgebases/train/actionTrain call to add suggestions to the knowledgebase.
Microsoft.CognitiveServices/accounts/QnAMaker.v2/alterations/readDownload alterations from runtime.
Microsoft.CognitiveServices/accounts/QnAMaker.v2/alterations/writeReplace alterations data.
Microsoft.CognitiveServices/accounts/QnAMaker.v2/endpointkeys/readGets endpoint keys for an endpoint
Microsoft.CognitiveServices/accounts/QnAMaker.v2/endpointkeys/refreshkeys/actionRe-generates an endpoint key.
Microsoft.CognitiveServices/accounts/QnAMaker.v2/endpointsettings/readGets endpoint settings for an endpoint
Microsoft.CognitiveServices/accounts/QnAMaker.v2/endpointsettings/writeUpdate endpoint settings for an endpoint.
Microsoft.CognitiveServices/accounts/QnAMaker.v2/operations/readGets details of a specific long running operation.
Microsoft.CognitiveServices/accounts/TextAnalytics/QnAMaker/knowledgebases/readGets List of Knowledgebases or details of a specific knowledgebase.
Microsoft.CognitiveServices/accounts/TextAnalytics/QnAMaker/knowledgebases/download/readDownload the knowledgebase.
Microsoft.CognitiveServices/accounts/TextAnalytics/QnAMaker/knowledgebases/create/writeAsynchronous operation to create a new knowledgebase.
Microsoft.CognitiveServices/accounts/TextAnalytics/QnAMaker/knowledgebases/writeAsynchronous operation to modify a knowledgebase or Replace knowledgebase contents.
Microsoft.CognitiveServices/accounts/TextAnalytics/QnAMaker/knowledgebases/generateanswer/actionGenerateAnswer call to query the knowledgebase.
Microsoft.CognitiveServices/accounts/TextAnalytics/QnAMaker/knowledgebases/train/actionTrain call to add suggestions to the knowledgebase.
Microsoft.CognitiveServices/accounts/TextAnalytics/QnAMaker/alterations/readDownload alterations from runtime.
Microsoft.CognitiveServices/accounts/TextAnalytics/QnAMaker/alterations/writeReplace alterations data.
Microsoft.CognitiveServices/accounts/TextAnalytics/QnAMaker/endpointkeys/readGets endpoint keys for an endpoint
Microsoft.CognitiveServices/accounts/TextAnalytics/QnAMaker/endpointkeys/refreshkeys/actionRe-generates an endpoint key.
Microsoft.CognitiveServices/accounts/TextAnalytics/QnAMaker/endpointsettings/readGets endpoint settings for an endpoint
Microsoft.CognitiveServices/accounts/TextAnalytics/QnAMaker/endpointsettings/writeUpdate endpoint settings for an endpoint.
Microsoft.CognitiveServices/accounts/TextAnalytics/QnAMaker/operations/readGets details of a specific long running operation.

Assign it

Scope it as tightly as you can: a resource or resource group rather than the whole subscription.

azure cli
az role assignment create \
  --assignee "jane.doe@contoso.com" \
  --role "Cognitive Services QnA Maker Editor" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Cognitive Services QnA Maker Editor" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, 'f4cc2bf9-21be-47a1-bdf1-5c5804381025')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'f4cc2bf9-21be-47a1-bdf1-5c5804381025')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "f4cc2bf9-21be-47a1-bdf1-5c5804381025"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other ai-machine-learning roles

Find the smallest role for a task →