mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-27 01:25:36 -05:00
SQL MIAA list now accounts for new text output from Azure CLI (#20305)
* SQL MIAA list now accounts for new text output in line 1 * Version bump Co-authored-by: Candice Ye <canye@microsoft.com>
This commit is contained in:
@@ -207,7 +207,7 @@ export class AzTool implements azExt.IAzApi {
|
||||
// Additional arguments
|
||||
},
|
||||
additionalEnvVars?: azExt.AdditionalEnvVars
|
||||
): Promise<azExt.AzOutput<azExt.SqlMiListResult[]>> => {
|
||||
): Promise<azExt.AzOutput<azExt.SqlMiListRawOutput>> => {
|
||||
const argsArray = ['sql', 'mi-arc', 'list'];
|
||||
if (args.resourceGroup) {
|
||||
argsArray.push('--resource-group', args.resourceGroup);
|
||||
@@ -216,7 +216,8 @@ export class AzTool implements azExt.IAzApi {
|
||||
argsArray.push('--k8s-namespace', args.namespace);
|
||||
argsArray.push('--use-k8s');
|
||||
}
|
||||
return this.executeCommand<azExt.SqlMiListResult[]>(argsArray, additionalEnvVars);
|
||||
return this.executeCommand<azExt.SqlMiListRawOutput>(argsArray, additionalEnvVars);
|
||||
|
||||
},
|
||||
show: (
|
||||
name: string,
|
||||
|
||||
7
extensions/azcli/src/typings/az-ext.d.ts
vendored
7
extensions/azcli/src/typings/az-ext.d.ts
vendored
@@ -29,6 +29,11 @@ declare module 'az-ext' {
|
||||
protocol: string // "https"
|
||||
}
|
||||
|
||||
export interface SqlMiListRawOutput {
|
||||
text: string,
|
||||
miaaList: SqlMiListResult[]
|
||||
}
|
||||
|
||||
export interface SqlMiListResult {
|
||||
name: string, // "arc-miaa"
|
||||
replicas: string, // "1/1"
|
||||
@@ -592,7 +597,7 @@ declare module 'az-ext' {
|
||||
},
|
||||
// Additional arguments
|
||||
additionalEnvVars?: AdditionalEnvVars
|
||||
): Promise<AzOutput<SqlMiListResult[]>>,
|
||||
): Promise<AzOutput<SqlMiListRawOutput>>,
|
||||
show(
|
||||
name: string,
|
||||
args: {
|
||||
|
||||
Reference in New Issue
Block a user