add create log messages for setting up firewall and credentials (#1532)
This commit is contained in:
Родитель
377eceb9c5
Коммит
b9f7654607
|
@ -6,6 +6,7 @@
|
|||
import { Server } from 'azure-arm-postgresql/lib/models';
|
||||
import { Progress } from 'vscode';
|
||||
import { AzureWizardExecuteStep } from 'vscode-azureextensionui';
|
||||
import { ext } from '../../../extensionVariables';
|
||||
import { localize } from '../../../utils/localize';
|
||||
import { nonNullProp } from '../../../utils/nonNull';
|
||||
import { setPostgresCredentials } from '../setPostgresCredentials';
|
||||
|
@ -24,7 +25,7 @@ export class PostgresServerSetCredentialsStep extends AzureWizardExecuteStep<IPo
|
|||
}
|
||||
const setupMessage: string = localize('setupCredentialsMessage', 'Setting up Credentials for server "{0}"...', newServerName);
|
||||
progress.report({ message: setupMessage });
|
||||
|
||||
ext.outputChannel.appendLog(setupMessage);
|
||||
const password: string = nonNullProp(wizardContext, 'adminPassword');
|
||||
const server: Server = nonNullProp(wizardContext, 'server');
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ import PostgreSQLManagementClient from 'azure-arm-postgresql';
|
|||
import { FirewallRule } from 'azure-arm-postgresql/lib/models';
|
||||
import { Progress } from 'vscode';
|
||||
import { AzureWizardExecuteStep, createAzureClient } from 'vscode-azureextensionui';
|
||||
import { ext } from '../../../extensionVariables';
|
||||
import { localize } from '../../../utils/localize';
|
||||
import { nonNullProp } from '../../../utils/nonNull';
|
||||
import { IPostgresWizardContext } from './IPostgresWizardContext';
|
||||
|
@ -29,7 +30,7 @@ export class PostgresServerSetFirewallStep extends AzureWizardExecuteStep<IPostg
|
|||
|
||||
const addFirewallMessage: string = localize('configuringFirewall', 'Adding firewall rule for your IP "{0}" to server "{1}"...', ip, newServerName);
|
||||
progress.report({ message: addFirewallMessage });
|
||||
|
||||
ext.outputChannel.appendLog(addFirewallMessage);
|
||||
await client.firewallRules.createOrUpdate(resourceGroup, newServerName, firewallRuleName, newFirewallRule);
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче