Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ export class AzureResourceMananger {
* Deploy luis authoring resource
* @param config
*/
public async deployLuisAuthoringResource(config: LuisAuthoringResourceConfig) {
public async deployLuisAuthoringResource(
config: LuisAuthoringResourceConfig
): Promise<{ authoringKey: string; authoringEndpoint: string; location: string }> {
try {
this.logger({
status: BotProjectDeployLoggerType.PROVISION_INFO,
Expand Down Expand Up @@ -170,7 +172,8 @@ export class AzureResourceMananger {
const authoringEndpoint = deployResult.properties?.endpoint ?? '';
const keys = await cognitiveServicesManagementClient.accounts.listKeys(config.resourceGroupName, config.name);
const authoringKey = keys?.key1 ?? '';
return { authoringKey, authoringEndpoint };
const location = deployResult.location;
return { authoringKey, authoringEndpoint, location };
} catch (err) {
this.logger({
status: BotProjectDeployLoggerType.PROVISION_ERROR,
Expand All @@ -184,7 +187,9 @@ export class AzureResourceMananger {
* Deploy luis resource
* @param config
*/
public async deployLuisResource(config: LuisResourceConfig): Promise<{ endpoint: string; endpointKey: string }> {
public async deployLuisResource(
config: LuisResourceConfig
): Promise<{ endpoint: string; endpointKey: string; location: string }> {
try {
this.logger({
status: BotProjectDeployLoggerType.PROVISION_INFO,
Expand Down Expand Up @@ -218,7 +223,8 @@ export class AzureResourceMananger {
const endpoint = deployResult.properties?.endpoint ?? '';
const keys = await cognitiveServicesManagementClient.accounts.listKeys(config.resourceGroupName, config.name);
const endpointKey = keys?.key1 ?? '';
return { endpoint, endpointKey };
const location = deployResult.location;
return { endpoint, endpointKey, location };
} catch (err) {
this.logger({
status: BotProjectDeployLoggerType.PROVISION_ERROR,
Expand Down