Manage your LUIS keys
It is important to author LUIS apps in regions where you also want to publish and query.
An authoring key, also known as a starter key, is created automatically when you create a LUIS account and it is free. You have one authoring key across all your LUIS apps. The authoring key is provided to author your LUIS app or to test endpoint queries.
To find the authoring Key, log in to LUIS and click on the account name in the upper-right navigation bar to open Account Settings.
When you want to make production endpoint queries, create an Azure LUIS subscription.
For convenience, many of the samples use the Authoring key since it provides a few endpoint calls in its quota.
When you need production endpoint queries, create an Azure LUIS key. This key allows a quota of endpoint hits based on the usage plan you specified when creating the key. See Cognitive Services Pricing for pricing information.
An endpoint key is directly tied to an Azure LUIS subscription key. The endpoint key can be used for all your LUIS apps or for specific LUIS apps. When you publish each LUIS app, you set the endpoint key. Part of this process is choosing the Azure LUIS subscription.
Do not use the endpoint key for authoring LUIS apps.
API usage of Ocp-Apim-Subscription-Key
Use the authoring key for authoring APIs. You can't pass the endpoint key for authoring APIs. If you do, you get a 401 error - access denied due to invalid subscription key.
See Key Limits and Azure Regions. The authoring key is free and used for authoring. The LUIS subscription key has a free tier but must be created by you and associated with your LUIS app on the Publish page. It can't be used for authoring, but only endpoint queries.
Publishing regions are different from authoring regions. Make sure you create an app in the authoring region corresponding to the publishing region you want.
Key limit errors
If you exceed your per second quota, you receive an HTTP 429 error. If you exceed your per month quota, you receive an HTTP 403 error.
Create and use an endpoint key
On the Publish app page, there is already a key in the Resources and Keys table. This is the authoring (starter) key.
In order to add the LUIS key created in the previous step, click the Add Key button to open the Assign a key to your app dialog.
Select a Tenant in the dialog.
In Azure, a tenant represents the Azure Active Directory ID of the client or organization associated with a service. If you previously signed up for an Azure subscription with your individual Microsoft Account, you already have a tenant! When you log in to the Azure portal, you are automatically logged in to your default tenant. You are free to use this tenant but you may want to create an Organizational administrator account.
Choose the Azure subscription associated with the Azure LUIS key you want to add.
Select the Azure LUIS account. The region of the account is displayed in parentheses.
Learn more about publishing regions including publishing in Europe, and Australia. Publishing regions are different from authoring regions. Make sure you create an app in the authoring region corresponding to the publishing region you want.
In the Resources and Keys list, click the trash bin icon next to the entity you want to unassign. Then, click OK in the confirmation message to confirm deletion.
Unassigning the LUIS key does not delete it from your Azure subscription.
Use your key to publish your app in the Publish app page. For instructions on publishing, see Publish app.