diff --git a/commands/azureCommands/run-buildTask.ts b/commands/azureCommands/run-buildTask.ts index 3f1009f1f6..52822f2f5b 100644 --- a/commands/azureCommands/run-buildTask.ts +++ b/commands/azureCommands/run-buildTask.ts @@ -29,15 +29,15 @@ export async function runBuildTask(context?: TaskNode): Promise { const client = AzureUtilityManager.getInstance().getContainerRegistryManagementClient(subscription); let runRequest: TaskRunRequest = { - type: 'Task', + type: 'TaskRunRequest', taskName: taskName }; try { - await client.registries.scheduleRun(resourceGroup.name, registry.name, runRequest); + let taskRun = await client.registries.scheduleRun(resourceGroup.name, registry.name, runRequest); + vscode.window.showInformationMessage(`Successfully ran the Task: ${taskName} with ID: ${taskRun.runId}`); } catch (err) { ext.outputChannel.append(err); + vscode.window.showErrorMessage(`Failed to ran the Task: ${taskName}`); } - vscode.window.showInformationMessage(`Successfully ran the Task, ${taskName}`); - } diff --git a/package.json b/package.json index d0913a915d..13c6782ed0 100644 --- a/package.json +++ b/package.json @@ -656,7 +656,7 @@ }, { "command": "vscode-docker.run-ACR-BuildTask", - "title": "Run a Task", + "title": "Run Task", "category": "Docker" }, {