Home
%3CLINGO-SUB%20id%3D%22lingo-sub-303754%22%20slang%3D%22en-US%22%3EHow%20to%20publish%20Bot%20app%20to%20Azure%20using%20az%20botservice%20extension%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303754%22%20slang%3D%22en-US%22%3E%3CP%3E1.%20Install%20the%20latest%20version%20of%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fcli%2Fazure%2Finstall-azure-cli-windows%3Fview%3Dazure-cli-latest%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20cli%20tool%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E2.%20Launch%20PowerShell%20window%20with%20administrator%20privileges%3C%2FP%3E%0A%3CP%3ERun%20the%20following%20commands%3A%3CBR%20%2F%3Eaz%20extension%20add%20-n%20botservice%3CBR%20%2F%3Eaz%20login%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%26nbsp%3BAzure%20CLI%202.0.53%3A%3C%2FP%3E%0A%3CP%3Eaz%20bot%20publish%20-g%20JasonBotV4Test%20--resource-group%20ASPNetCoreJasonTestRG%20-n%20JasonBotV4Test%20--proj-file%20BasicBot.csproj%20--version%20v4%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ewhere%26nbsp%3B%3CSPAN%3EJasonBotV4Test%26nbsp%3Bis%20the%20Bot%20Name%2C%26nbsp%3BASPNetCoreJasonTestRG%26nbsp%3Bis%20the%20ResourceGroup%20name%2C%26nbsp%3BBasicBot.csproj%26nbsp%3Bis%20the%20project%20file%20name.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%26nbsp%3BAzure%20CLI%202.0.55%3A%3C%2FP%3E%0A%3CP%3Eaz%20bot%20publish%20-g%26nbsp%3BBOT_NAME--resource-group%26nbsp%3BRESOURCE_GROUP%26nbsp%3B-n%26nbsp%3BBOT_NAME%26nbsp%3B-v%20v4%20--proj-name%26nbsp%3BBOT_NAME%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-303754%22%20slang%3D%22en-US%22%3E%3CP%3E1.%20Install%20the%20latest%20version%20of%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fcli%2Fazure%2Finstall-azure-cli-windows%3Fview%3Dazure-cli-latest%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20cli%20tool%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E2.%20Launch%20PowerShell%20window%20with%20administrator%20privileges%3C%2FP%3E%0A%3CP%3ERun%20the%20following%20commands%3A%3CBR%20%2F%3Eaz%20extension%20add%20-n%20botservice%3CBR%20%2F%3Eaz%20login%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%26nbsp%3BAzure%20CLI%202.0.53%3A%3C%2FP%3E%0A%3CP%3Eaz%20bot%20publish%20-g%20JasonBotV4Test%20--resource-group%20ASPNetCoreJasonTestRG%20-n%20JasonBotV4Test%20--proj-file%20BasicBot.csproj%20--version%20v4%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ewhere%26nbsp%3B%3CSPAN%3EJasonBotV4Test%26nbsp%3Bis%20the%20Bot%20Name%2C%26nbsp%3BASPNetCoreJasonTestRG%26nbsp%3Bis%20the%20ResourceGroup%20name%2C%26nbsp%3BBasicBot.csproj%26nbsp%3Bis%20the%20project%20file%20name.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EFor%26nbsp%3BAzure%20CLI%202.0.55%3A%3C%2FP%3E%0A%3CP%3Eaz%20bot%20publish%20-g%26nbsp%3BBOT_NAME--resource-group%26nbsp%3BRESOURCE_GROUP%26nbsp%3B-n%26nbsp%3BBOT_NAME%26nbsp%3B-v%20v4%20--proj-name%26nbsp%3BBOT_NAME%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-303754%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Ehuanchix%40microsoft.com%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

1. Install the latest version of the Azure cli tool.

2. Launch PowerShell window with administrator privileges

Run the following commands:
az extension add -n botservice
az login

 

For Azure CLI 2.0.53:

az bot publish -g JasonBotV4Test --resource-group ASPNetCoreJasonTestRG -n JasonBotV4Test --proj-file BasicBot.csproj --version v4

 

where JasonBotV4Test is the Bot Name, ASPNetCoreJasonTestRG is the ResourceGroup name, BasicBot.csproj is the project file name.

 

 

For Azure CLI 2.0.55:

az bot publish -g BOT_NAME--resource-group RESOURCE_GROUP -n BOT_NAME -v v4 --proj-name BOT_NAME