fix(azuredeployer.gbapp): Fix in bot booting.
This commit is contained in:
parent
fe5d56ff69
commit
fe86deff96
2 changed files with 12 additions and 1 deletions
|
@ -100,6 +100,7 @@ export class StartDialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prepares the first instance on bot farm.
|
// Prepares the first instance on bot farm.
|
||||||
|
|
||||||
const instance = <IGBInstance>{};
|
const instance = <IGBInstance>{};
|
||||||
|
|
||||||
instance.botId = botId;
|
instance.botId = botId;
|
||||||
|
|
|
@ -350,13 +350,23 @@ export class AzureDeployerService implements IGBInstallationDeployer {
|
||||||
};
|
};
|
||||||
await this.storageClient.firewallRules.createOrUpdate(groupName, serverName, 'gb', params);
|
await this.storageClient.firewallRules.createOrUpdate(groupName, serverName, 'gb', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async deployFarm(
|
public async deployFarm(
|
||||||
proxyAddress: string,
|
proxyAddress: string,
|
||||||
instance: IGBInstance,
|
instance: IGBInstance,
|
||||||
credentials: any,
|
credentials: any,
|
||||||
subscriptionId: string
|
subscriptionId: string
|
||||||
): Promise<IGBInstance> {
|
): Promise<IGBInstance> {
|
||||||
|
return await this.deployFarm2(proxyAddress,
|
||||||
|
instance,
|
||||||
|
credentials,
|
||||||
|
subscriptionId);
|
||||||
|
}
|
||||||
|
public async deployFarm2(
|
||||||
|
proxyAddress: string,
|
||||||
|
instance: IGBInstance,
|
||||||
|
credentials: any,
|
||||||
|
subscriptionId: string
|
||||||
|
){
|
||||||
const culture = 'en-us';
|
const culture = 'en-us';
|
||||||
|
|
||||||
const token = credentials['tokenCache']._entries[0];
|
const token = credentials['tokenCache']._entries[0];
|
||||||
|
|
Loading…
Add table
Reference in a new issue