Azure / azure-cli

Azure Command-Line Interface
MIT License
4k stars 2.98k forks source link

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

Open cxbuilders opened 3 years ago

cxbuilders commented 3 years ago

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.

yonzhan commented 3 years ago

bot

munozemilio commented 3 years ago

Thanks for bringing this up @cxbuilders Im taking over the botservice component. I will asses and try to accommodate as soon as possible in the corresponding release.

cxbuilders commented 3 years ago

@munozemilio Do you know if around yesterday something has changed in the Bot Channels regsitration resource setup. We are running now into the following issue: https://github.com/microsoft/botframework-sdk/issues/6203

munozemilio commented 3 years ago

@cxbuilders Im not aware on any change. @swagatmishra2007 do you know what could be the reason>

swagatmishra2007 commented 3 years ago

i would need a botid to debug

cxbuilders commented 3 years ago

@swagatmishra2007 as mentioned in the other issue this has resolved itself. The original issue is still there, takes two arm / azure cli runs to create a direct line channel where the securesiteenabled is actually coming through

swagatmishra2007 commented 3 years ago

that might be existing behavior ..i will bring it up for investigation and a possible fix.