fix(azuredeployer.gbapp): New pricing table.
This commit is contained in:
parent
584ed55f5c
commit
7f641bd5df
1 changed files with 13 additions and 4 deletions
|
@ -800,8 +800,7 @@ export class AzureDeployerService implements IGBInstallationDeployer {
|
||||||
private async createCognitiveServices(group, name, location, kind): Promise<CognitiveServicesAccount> {
|
private async createCognitiveServices(group, name, location, kind): Promise<CognitiveServicesAccount> {
|
||||||
const params = {
|
const params = {
|
||||||
sku: {
|
sku: {
|
||||||
name: this.freeTier || kind === 'LUIS.Authoring' || kind === 'TextAnalytics' ? 'F0' :
|
name: ""
|
||||||
kind === 'Bing.SpellCheck.v7' ? 'S1' : 'S0'
|
|
||||||
},
|
},
|
||||||
createMode: 'Default',
|
createMode: 'Default',
|
||||||
location: location,
|
location: location,
|
||||||
|
@ -809,6 +808,16 @@ export class AzureDeployerService implements IGBInstallationDeployer {
|
||||||
properties: {}
|
properties: {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (kind === 'LUIS.Authoring') {
|
||||||
|
params.sku.name = this.freeTier ? 'F0' : 'S0';
|
||||||
|
} else if (kind === 'TextAnalytics') {
|
||||||
|
params.sku.name = this.freeTier ? 'F0' : 'S0';
|
||||||
|
} else if (kind === 'Bing.SpellCheck.v7') {
|
||||||
|
params.sku.name = this.freeTier ? 'S0' : 'S1';
|
||||||
|
} else if (kind === 'CognitiveServices') {
|
||||||
|
params.sku.name = 'S0';
|
||||||
|
}
|
||||||
|
|
||||||
return await this.cognitiveClient.accounts.create(group, name, params);
|
return await this.cognitiveClient.accounts.create(group, name, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue