Fix BDC deployment removing all security settings from config (#14756)

This commit is contained in:
Charles Gagnon
2021-03-16 15:44:21 -07:00
committed by GitHub
parent 784d76b886
commit 89e5ee3c80
2 changed files with 4 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ export class AzdataService implements IAzdataService {
const env: NodeJS.ProcessEnv = {};
// azdata requires this environment variables to be set
env['ACCEPT_EULA'] = 'yes';
await this.platformService.runCommand(`azdata bdc config init --source ${profileName} --target ${profileName} --force`, { workingDirectory: this.platformService.storagePath(), additionalEnvironmentVariables: env });
await this.platformService.runCommand(`azdata bdc config init --source ${profileName} --path ${profileName} --force`, { workingDirectory: this.platformService.storagePath(), additionalEnvironmentVariables: env });
const configObjects = await Promise.all([
this.getJsonObjectFromFile(path.join(this.platformService.storagePath(), profileName, 'bdc.json')),
this.getJsonObjectFromFile(path.join(this.platformService.storagePath(), profileName, 'control.json'))