microsoft / botframework-solutions

Welcome to the Bot Framework Solutions repository which is the home for a set of templates and solutions to help build advanced conversational experiences using Azure Bot Service and Bot Framework. Microsoft Bot Framework is a comprehensive framework for building enterprise-grade conversational AI experiences.
https://aka.ms/bfsolutionsdocs
MIT License
1.05k stars 528 forks source link

Error when trying to create AADV2 Connection from Powershell with Az Bot authsetting #703

Closed awaemmanuel closed 5 years ago

awaemmanuel commented 5 years ago

Project Virtual Assistant

Description Using the az bot command to create authsettings, I have a related issue when I try to create the AADv2 connection. It doesn't run for me. I get the error below

To Reproduce

  1. Key in this command:- az bot authsetting create --resource-group YOUR_BOT_NAME --name YOUR_BOT_NAME --setting-name "YOUR_AUTH_CONNECTION_NAME" --client-id "YOUR_APPLICATION_ID" --client-secret "YOUR_APPLICATION_PASSWORD" --provider-scope-string "Calendars.ReadWrite Mail.Read Mail.Send Notes.ReadWrite People.Read User.Read" --service Aadv2
  2. Command doesn't work. I end up with error below.
az bot authsetting create: error: the following arguments are required: --provider-scope-string, --service
usage: az bot authsetting create [-h] [--verbose] [--debug]
                                 [--output {json,jsonc,table,tsv,yaml,none}]
                                 [--query JMESPATH] --resource-group
                                 RESOURCE_GROUP_NAME --name NAME
                                 --setting-name CONNECTION_NAME --client-id
                                 CLIENT_ID --client-secret CLIENT_SECRET
                                 --provider-scope-string SCOPES --service
                                 SERVICE_PROVIDER_NAME
                                 [--parameters PARAMETERS [PARAMETERS ...]]
                                 [--subscription _SUBSCRIPTION]

Expected behavior The aadv2 connection should be created and oauth settings fields populated.

lauren-mills commented 5 years ago

See comment on issue #233

lauren-mills commented 5 years ago

Closing this due to age. I think the issue it resolved, but feel free to reopen if not!