Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
feat: Configure automatically Cognitive Account with Communication
Clémence Lesnéa1e974d72170
diff --git a/bicep/app.bicep b/bicep/app.bicepindex 7a84a0e..5b4339d 100644--- a/bicep/app.bicep+++ b/bicep/app.bicep@@ -202,6 +202,20 @@ resource eventgridTopic 'Microsoft.EventGrid/systemTopics@2023-12-15-preview' =}}+resource roleCognitiveUser 'Microsoft.Authorization/roleDefinitions@2022-04-01' existing = {+ name: 'a97b65f3-24c7-4388-baec-2e87135dc908'+}++resource appUserCommunication 'Microsoft.Authorization/roleAssignments@2022-04-01' = {+ name: guid(subscription().id, deployment().name, 'appUserCommunication')+ scope: cognitiveCommunication+ properties: {+ principalId: communication.identity.principalId+ principalType: 'ServicePrincipal'+ roleDefinitionId: roleCognitiveUser.id+ }+}+resource cognitiveCommunication 'Microsoft.CognitiveServices/accounts@2023-10-01-preview' = {name: '${prefix}-communication'location: location