From 600cc0cfe0e748562da63edeb2785a8d45bbf489 Mon Sep 17 00:00:00 2001 From: Deepak Sattiraju Date: Thu, 10 May 2018 11:46:16 +0530 Subject: [PATCH] [ARG Deploy] Updating description and stringifying error logs (#7154) * Updating description and stringifying error logs * Updating description * Minor version bump up. --- .../Strings/resources.resjson/en-US/resources.resjson | 2 +- Tasks/AzureResourceGroupDeploymentV2/operations/Utils.ts | 7 ++++--- Tasks/AzureResourceGroupDeploymentV2/task.json | 6 +++--- Tasks/AzureResourceGroupDeploymentV2/task.loc.json | 4 ++-- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Tasks/AzureResourceGroupDeploymentV2/Strings/resources.resjson/en-US/resources.resjson b/Tasks/AzureResourceGroupDeploymentV2/Strings/resources.resjson/en-US/resources.resjson index 949f7da70c22..4a0971fba00d 100644 --- a/Tasks/AzureResourceGroupDeploymentV2/Strings/resources.resjson/en-US/resources.resjson +++ b/Tasks/AzureResourceGroupDeploymentV2/Strings/resources.resjson/en-US/resources.resjson @@ -1,7 +1,7 @@ { "loc.friendlyName": "Azure Resource Group Deployment", "loc.helpMarkDown": "[More Information](https://aka.ms/argtaskreadme)", - "loc.description": "Deploy, start, stop, delete Azure Resource Groups", + "loc.description": "Deploy an Azure resource manager (ARM) template to a resource group. You can also start, stop, delete, deallocate all Virtual Machines (VM) in a resource group", "loc.instanceNameFormat": "Azure Deployment:$(action) action on $(resourceGroupName)", "loc.releaseNotes": "-Works with cross-platform agents (Linux, macOS, or Windows)\n- Supports Template JSONs located at any publicly accessible http/https URLs.\n- Enhanced UX for Override parameters which can now be viewed/edited in a grid.\n- NAT rule mapping for VMs which are backed by an Load balancer.\n- \"Resource group\" field is now renamed as \"VM details for  WinRM\" and is included in the section \"Advanced deployment options for virtual machines\".\n- Limitations: \n - No support for Classic subscriptions. Only for ARM subscriptions are supported.\n - No support for PowerShell syntax as the task is now node.js based. Ensure the case sensitivity of the parameter names match, when you override the template parameters. Also, remove the PowerShell cmdlets like \"ConvertTo-SecureString\" when you migrate from version 1.0 to version 2.0.", "loc.group.displayName.AzureDetails": "Azure Details", diff --git a/Tasks/AzureResourceGroupDeploymentV2/operations/Utils.ts b/Tasks/AzureResourceGroupDeploymentV2/operations/Utils.ts index 7c2cf5c8bc17..f15b1671ccb3 100644 --- a/Tasks/AzureResourceGroupDeploymentV2/operations/Utils.ts +++ b/Tasks/AzureResourceGroupDeploymentV2/operations/Utils.ts @@ -4,11 +4,12 @@ class Utils { return (!!str && !!str.trim()); } - public static getError(error: any) { + public static getError(error: any): string { if (error && error.message) { - return error.message; + return JSON.stringify(error.message); } - return error; + + return JSON.stringify(error); } } diff --git a/Tasks/AzureResourceGroupDeploymentV2/task.json b/Tasks/AzureResourceGroupDeploymentV2/task.json index 6de8ab02a713..66e37999502e 100644 --- a/Tasks/AzureResourceGroupDeploymentV2/task.json +++ b/Tasks/AzureResourceGroupDeploymentV2/task.json @@ -2,7 +2,7 @@ "id": "94A74903-F93F-4075-884F-DC11F34058B4", "name": "AzureResourceGroupDeployment", "friendlyName": "Azure Resource Group Deployment", - "description": "Deploy, start, stop, delete Azure Resource Groups", + "description": "Deploy an Azure resource manager (ARM) template to a resource group. You can also start, stop, delete, deallocate all Virtual Machines (VM) in a resource group", "helpMarkDown": "[More Information](https://aka.ms/argtaskreadme)", "category": "Deploy", "releaseNotes": "-Works with cross-platform agents (Linux, macOS, or Windows)\n- Supports Template JSONs located at any publicly accessible http/https URLs.\n- Enhanced UX for Override parameters which can now be viewed/edited in a grid.\n- NAT rule mapping for VMs which are backed by an Load balancer.\n- \"Resource group\" field is now renamed as \"VM details for  WinRM\" and is included in the section \"Advanced deployment options for virtual machines\".\n- Limitations: \n - No support for Classic subscriptions. Only for ARM subscriptions are supported.\n - No support for PowerShell syntax as the task is now node.js based. Ensure the case sensitivity of the parameter names match, when you override the template parameters. Also, remove the PowerShell cmdlets like \"ConvertTo-SecureString\" when you migrate from version 1.0 to version 2.0.", @@ -13,8 +13,8 @@ "author": "Microsoft Corporation", "version": { "Major": 2, - "Minor": 131, - "Patch": 3 + "Minor": 134, + "Patch": 0 }, "demands": [], "minimumAgentVersion": "2.119.1", diff --git a/Tasks/AzureResourceGroupDeploymentV2/task.loc.json b/Tasks/AzureResourceGroupDeploymentV2/task.loc.json index d89f622c308c..16253e7453d2 100644 --- a/Tasks/AzureResourceGroupDeploymentV2/task.loc.json +++ b/Tasks/AzureResourceGroupDeploymentV2/task.loc.json @@ -13,8 +13,8 @@ "author": "Microsoft Corporation", "version": { "Major": 2, - "Minor": 131, - "Patch": 3 + "Minor": 134, + "Patch": 0 }, "demands": [], "minimumAgentVersion": "2.119.1",