Azure / Azure/azure-cli

az bot directline create fails to set--enable-enhanced-auth

Open
#16,659 7 comments 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad Bot Services Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

I know this is not about the docs itself, but I don't know where to submit an issue for an az bot command.

When using the following command:
az bot directline create --name myBot --resource-group myBot --enable-enhanced-auth true --trusted-origins https://www.test1.com https://www.test2.com

The result is that the site is created but the isSecureSiteEnabled is false and the trustedOrigins are null:
"sites": [
{
"isBlockUserUploadEnabled": false,
"isEnabled": true,
"isSecureSiteEnabled": false,
"isV1Enabled": true,
"isV3Enabled": true,
"key": "xxxxx",
"key2": "xxxxx",
"siteId": "xxx",
"siteName": "Default",
"trustedOrigins": null
}

When running the exact same command for the second time, everything is set correctly;
"sites": [
{
"isBlockUserUploadEnabled": false,
"isEnabled": true,
"isSecureSiteEnabled": true,
"isV1Enabled": true,
"isV3Enabled": true,
"key": "xxxxx",
"key2": "xxxxx",
"siteId": "xxx",
"siteName": "Default Site",
"trustedOrigins": [
"https://www.test1.com",
"https://www.test2.com"
]
}
]

Basically it needs the command to run twice to get it right.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 71bc2cda-94fc-b5dc-210c-35c04c79aa97
* Version Independent ID: 42c469d4-88bb-4c44-d02b-b6e4c8efa7ba
* Content: [az bot directline](https://docs.microsoft.com/en-us/cli/azure/bot/directline?view=azure-cli-latest#az_bot_directline_create)
* Content Source: [latest/docs-ref-autogen/bot/directline.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/master/latest/docs-ref-autogen/bot/directline.yml)
* Service: **bot-service**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.