When Azure creates the Azure Bot resource, it stores the app password in Azure Key Vault. To get the Azure Bot resource app Id, refer to my post here.
Prerequisites
Get app password
Open the resource with type Key Vault that was created along with the Azure Bot resource.

Under Settings, click on Secrets
.

Open the record that is visible. If you are getting an error on viewing this page, refer to my post here to fix it. The following error may be shown – The operation “List” is not enabled in this key vault’s access policy.

Click on the latest version.

Scroll to the bottom and click on Show Secret Value
.

App Id and password
You need the Azure bot resource app Id and password to configure your bot for deployment. You will assign their values to the related variables: MicrosoftAppId
and MicrosoftAppPassword
contained in your bot project configuration file.
The file differs depending on the programming language you use to create the bot.
The appsettings.json
file contains these settings for C# implementation:
{
"MicrosoftAppId": "<your app id>",
"MicrosoftAppPassword": "<your password>"
}