Added check for .toLowerCase and added upgrade message for clarity. (#20187)

Co-authored-by: Candice Ye <canye@microsoft.com>
This commit is contained in:
Candice Ye
2022-07-28 13:52:26 -07:00
committed by GitHub
parent d3073a33fe
commit 28d5382dc3
8 changed files with 76 additions and 42 deletions

View File

@@ -100,7 +100,7 @@ export class MiaaModel extends ResourceModel {
try {
try {
let result;
if (this.controllerModel.info.connectionMode === ConnectionMode.direct) {
if (this.controllerModel.info.connectionMode.toLowerCase() === ConnectionMode.direct) {
result = await this._azApi.az.sql.miarc.show(
this.info.name,
{