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

@@ -270,10 +270,10 @@ export class BigDataClusterDeploymentProfile {
}
public setAuthenticationMode(mode: string): void {
// If basic authentication is picked, the security section must be removed
// If basic authentication is picked, the activeDirectory security section must be removed
// otherwise azdata will throw validation error
if (mode === AuthenticationMode.Basic && 'security' in this._controlConfig) {
delete this._controlConfig.security;
if (mode === AuthenticationMode.Basic && 'security' in this._controlConfig && 'activeDirectory' in this._controlConfig.security) {
delete this._controlConfig.security.activeDirectory;
}
}