From 76d102bb656d3c237d46959727217a167d25c37b Mon Sep 17 00:00:00 2001 From: wyunchi-ms Date: Wed, 24 Feb 2021 17:57:12 +0800 Subject: [PATCH 1/6] Fix the issue of automation in string --- src/Automation/Automation/Common/PowershellJsonConverter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Automation/Automation/Common/PowershellJsonConverter.cs b/src/Automation/Automation/Common/PowershellJsonConverter.cs index 1504b514c58d..8150c8e37027 100644 --- a/src/Automation/Automation/Common/PowershellJsonConverter.cs +++ b/src/Automation/Automation/Common/PowershellJsonConverter.cs @@ -36,7 +36,7 @@ public static string Serialize(object inputObject) } if (inputObject is string @str) { - return str.Trim(); + return JsonConvert.SerializeObject(str.Trim()); } else if (inputObject is object[] @objectArray) { From 6a9b120fcba2c06071f5fa7dbc8d359fca3b1044 Mon Sep 17 00:00:00 2001 From: wyunchi-ms Date: Wed, 24 Feb 2021 18:01:23 +0800 Subject: [PATCH 2/6] Update Changelog.md --- src/Automation/Automation/ChangeLog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Automation/Automation/ChangeLog.md b/src/Automation/Automation/ChangeLog.md index ab5b36fed5a8..7b647cb94bfa 100644 --- a/src/Automation/Automation/ChangeLog.md +++ b/src/Automation/Automation/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fixed the issue that string cannot be serialized correctly. [#14215] * Added Support for Python3 Runbook Type ## Version 1.4.3 From f1eebaeb004d5ffc240755700c4fd81854bc1f49 Mon Sep 17 00:00:00 2001 From: wyunchi-ms Date: Fri, 26 Feb 2021 16:34:49 +0800 Subject: [PATCH 3/6] Update test case and fix issue for int --- .../ScenarioTests/VariableTests.cs | 28 +- .../ScenarioTests/VariableTests.ps1 | 148 +++- .../TestArrayVariable.json | 719 ++++++++++++++++++ .../TestE2EVariableAsset.json | 524 ++++++------- .../TestJsonInValueVariable.json | 719 ++++++++++++++++++ .../TestNormalHashTableVariable.json | 719 ++++++++++++++++++ .../Common/PowershellJsonConverter.cs | 29 +- 7 files changed, 2607 insertions(+), 279 deletions(-) create mode 100644 src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestArrayVariable.json create mode 100644 src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestJsonInValueVariable.json create mode 100644 src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestNormalHashTableVariable.json diff --git a/src/Automation/Automation.Test/ScenarioTests/VariableTests.cs b/src/Automation/Automation.Test/ScenarioTests/VariableTests.cs index 04610d921378..f3890550bcdb 100644 --- a/src/Automation/Automation.Test/ScenarioTests/VariableTests.cs +++ b/src/Automation/Automation.Test/ScenarioTests/VariableTests.cs @@ -26,12 +26,38 @@ public VariableTests(Xunit.Abstractions.ITestOutputHelper output) [Fact] [Trait(Category.Service, Category.Automation)] - [Trait(Category.RunType, Category.LiveOnly)] [Trait(Category.AcceptanceType, Category.CheckIn)] [Trait(Category.AcceptanceType, Category.BVT)] public void TestE2EVariableAsset() { TestRunner.RunTestScript("Test-E2EVariableAsset"); } + + [Fact] + [Trait(Category.Service, Category.Automation)] + [Trait(Category.AcceptanceType, Category.CheckIn)] + [Trait(Category.AcceptanceType, Category.BVT)] + public void TestArrayVariable() + { + TestRunner.RunTestScript("Test-ArrayVariable"); + } + + [Fact] + [Trait(Category.Service, Category.Automation)] + [Trait(Category.AcceptanceType, Category.CheckIn)] + [Trait(Category.AcceptanceType, Category.BVT)] + public void TestNormalHashTableVariable() + { + TestRunner.RunTestScript("Test-NormalHashTableVariable"); + } + + [Fact] + [Trait(Category.Service, Category.Automation)] + [Trait(Category.AcceptanceType, Category.CheckIn)] + [Trait(Category.AcceptanceType, Category.BVT)] + public void TestJsonInValueVariable() + { + TestRunner.RunTestScript("Test-JsonInValueVariable"); + } } } diff --git a/src/Automation/Automation.Test/ScenarioTests/VariableTests.ps1 b/src/Automation/Automation.Test/ScenarioTests/VariableTests.ps1 index 46c03149feac..3d5004cedebc 100644 --- a/src/Automation/Automation.Test/ScenarioTests/VariableTests.ps1 +++ b/src/Automation/Automation.Test/ScenarioTests/VariableTests.ps1 @@ -18,8 +18,8 @@ Tests create new automation variable with string value. #> function Test-E2EVariableAsset { - $resourceGroupName = "to-delete-01" - $automationAccountName = "fbs-aa-01" + $resourceGroupName = "wyunchi-automation" + $automationAccountName = "test-automation-0" $output = Get-AzAutomationAccount -ResourceGroupName $resourceGroupName -AutomationAccountName $automationAccountName -ErrorAction SilentlyContinue $variableName = "CreateNewVariableWithValue" $variableValue = "StringValue" @@ -50,6 +50,150 @@ function Test-E2EVariableAsset Assert-AreEqual $variableValueUpdated $getVariable.value + Remove-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -Name $variableName + + $output = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName -ErrorAction SilentlyContinue + + Assert-True {$output -eq $null} + } + +<# +.SYNOPSIS +Tests create new automation variable with array. +#> +function Test-ArrayVariable +{ + $resourceGroupName = "wyunchi-automation" + $automationAccountName = "test-automation-0" + $output = Get-AzAutomationAccount -ResourceGroupName $resourceGroupName -AutomationAccountName $automationAccountName -ErrorAction SilentlyContinue + $variableName = "NewArrayVariable" + $variableValue = Get-Process | where {$_.ProcessName -like "WmiPrvSE"} | Select-Object ProcessName,CPU,Id + $variableValueUpdated = Get-Process | where {$_.ProcessName -like "WmiPrvSE"} | Select-Object ProcessName,Id + + $variableCreated = New-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName ` + -value $variableValue ` + -Encrypted:$false ` + -Description "array" + Assert-AreEqual ($variableValue | ConvertTo-Json) $variableCreated.value.toString() + + $getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName + + Set-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -Name $variableName ` + -Encrypted:$false ` + -value $variableValueUpdated + + $getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName + + Assert-AreEqual ($variableValueUpdated | ConvertTo-Json) $getVariable.value.toString() + + Remove-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -Name $variableName + + $output = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName -ErrorAction SilentlyContinue + + Assert-True {$output -eq $null} + } + +<# +.SYNOPSIS +Tests create new automation variable with simple hashtable. +#> +function Test-NormalHashTableVariable +{ + $resourceGroupName = "wyunchi-automation" + $automationAccountName = "test-automation-0" + $output = Get-AzAutomationAccount -ResourceGroupName $resourceGroupName -AutomationAccountName $automationAccountName -ErrorAction SilentlyContinue + $variableName = "NormalHashTable" + $variableValue = @{"key0" = "value0"} + $variableValueUpdated = @{"key1" = "value1"} + + $variableCreated = New-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName ` + -value $variableValue ` + -Encrypted:$false ` + -Description "NormalHashTableVariable" + Assert-AreEqual ($variableValue | ConvertTo-Json) $variableCreated.value.toString() + + $getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName + + Set-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -Name $variableName ` + -Encrypted:$false ` + -value $variableValueUpdated + + $getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName + + Assert-AreEqual ($variableValueUpdated | ConvertTo-Json) $getVariable.value.toString() + + Remove-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -Name $variableName + + $output = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName -ErrorAction SilentlyContinue + + Assert-True {$output -eq $null} + } + +<# +.SYNOPSIS +Tests create new automation variable with multi level dict. +#> +function Test-JsonInValueVariable +{ + $resourceGroupName = "wyunchi-automation" + $automationAccountName = "test-automation-0" + $output = Get-AzAutomationAccount -ResourceGroupName $resourceGroupName -AutomationAccountName $automationAccountName -ErrorAction SilentlyContinue + $variableName = "JsonInValueVariable" + $variableValue = @{"key0" = @{"subkey" = "subvalue"}} + $variableValueUpdated = @{"key0" = @{"subkey" = @{"3rdkey" = "3rd-value"}}} + + $variableCreated = New-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName ` + -value $variableValue ` + -Encrypted:$false ` + -Description "JsonInValueVariable" + Assert-AreEqual ($variableValue | ConvertTo-Json) $variableCreated.value.toString() + + $getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName + + Set-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -Name $variableName ` + -Encrypted:$false ` + -value $variableValueUpdated + + $getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName + + Assert-AreEqual ($variableValueUpdated | ConvertTo-Json) $getVariable.value.toString() + Remove-AzAutomationVariable -ResourceGroupName $resourceGroupName ` -AutomationAccountName $automationAccountName ` -Name $variableName diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestArrayVariable.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestArrayVariable.json new file mode 100644 index 000000000000..e7b03afdc726 --- /dev/null +++ b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestArrayVariable.json @@ -0,0 +1,719 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "40d19de5-3946-4838-b55d-3e758920200c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ocp-automation-accountid": [ + "1f2cbd06-83a6-470d-b1bc-af146f663017" + ], + "x-ms-request-id": [ + "40d19de5-3946-4838-b55d-3e758920200c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "3d9765c2-1c16-4d0d-a477-da02dbb5f33e" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083011Z:3d9765c2-1c16-4d0d-a477-da02dbb5f33e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:30:11 GMT" + ], + "Content-Length": [ + "624" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-automation-0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"etag\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"family\": null,\r\n \"capacity\": null\r\n },\r\n \"state\": \"Ok\",\r\n \"RegistrationUrl\": \"https://1f2cbd06-83a6-470d-b1bc-af146f663017.agentsvc.eus.azure-automation.net/accounts/1f2cbd06-83a6-470d-b1bc-af146f663017\",\r\n \"creationTime\": \"2021-02-26T15:25:27.07+08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2021-02-26T15:25:27.07+08:00\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdBcnJheVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "db3fa1dc-9136-49df-bda0-f8df41dde66d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "db3fa1dc-9136-49df-bda0-f8df41dde66d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "d6f8d245-4a7a-4244-9af6-d56b033860eb" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083013Z:d6f8d245-4a7a-4244-9af6-d56b033860eb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:30:13 GMT" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdBcnJheVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4f7fc1be-2987-40f1-9bdf-200269f700f1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4f7fc1be-2987-40f1-9bdf-200269f700f1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "888ea40b-571a-4aab-9c8f-d6533b577536" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083015Z:888ea40b-571a-4aab-9c8f-d6533b577536" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:30:14 GMT" + ], + "Content-Length": [ + "834" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:14.53+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:14.53+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdBcnJheVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4a2b612b-7fa7-4623-ac3a-9ae17d3558b5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4a2b612b-7fa7-4623-ac3a-9ae17d3558b5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "3b538368-c663-4be4-b797-dcf515ee4582" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083015Z:3b538368-c663-4be4-b797-dcf515ee4582" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:30:15 GMT" + ], + "Content-Length": [ + "834" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:14.53+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:14.53+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdBcnJheVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4a2b612b-7fa7-4623-ac3a-9ae17d3558b5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4a2b612b-7fa7-4623-ac3a-9ae17d3558b5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "f4b01360-631d-4595-a8d7-c08931102a55" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083018Z:f4b01360-631d-4595-a8d7-c08931102a55" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:30:17 GMT" + ], + "Content-Length": [ + "743" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:14.53+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:17.63+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdBcnJheVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "71fc64cf-fc5e-4cd7-9c62-2fe2ef71868b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "71fc64cf-fc5e-4cd7-9c62-2fe2ef71868b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "cd6e33aa-4781-452d-a0b3-6f15ef39f7d1" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083018Z:cd6e33aa-4781-452d-a0b3-6f15ef39f7d1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:30:17 GMT" + ], + "Content-Length": [ + "743" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:14.53+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:17.63+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdBcnJheVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a272a8cb-4181-471e-817f-3988a1b4f88f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a272a8cb-4181-471e-817f-3988a1b4f88f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "fca43a01-cb6f-4418-8caa-44c805050287" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083022Z:fca43a01-cb6f-4418-8caa-44c805050287" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:30:21 GMT" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdBcnJheVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"name\": \"NewArrayVariable\",\r\n \"properties\": {\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\",\r\n \"isEncrypted\": false\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "db3fa1dc-9136-49df-bda0-f8df41dde66d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "528" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31" + ], + "x-ms-request-id": [ + "db3fa1dc-9136-49df-bda0-f8df41dde66d" + ], + "x-ms-location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31" + ], + "ocp-location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "a2d5f433-ab9b-4df4-9b97-16099a16a668" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083014Z:a2d5f433-ab9b-4df4-9b97-16099a16a668" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:30:14 GMT" + ], + "Content-Length": [ + "834" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:14.53+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:14.53+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdBcnJheVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"name\": \"NewArrayVariable\",\r\n \"properties\": {\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4a2b612b-7fa7-4623-ac3a-9ae17d3558b5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "381" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4a2b612b-7fa7-4623-ac3a-9ae17d3558b5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "dd7718b8-b155-49de-a762-fa545faf8942" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083017Z:dd7718b8-b155-49de-a762-fa545faf8942" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:30:17 GMT" + ], + "Content-Length": [ + "743" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:14.53+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:17.63+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdBcnJheVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b2fb6eab-203c-4d85-a1c8-aa3ed82d5a78" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "b2fb6eab-203c-4d85-a1c8-aa3ed82d5a78" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "06b15017-f922-4547-b4d1-7e521a38825b" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083021Z:06b15017-f922-4547-b4d1-7e521a38825b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:30:20 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f" + } +} \ No newline at end of file diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestE2EVariableAsset.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestE2EVariableAsset.json index 3130cd25499d..ba8521c8f846 100644 --- a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestE2EVariableAsset.json +++ b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestE2EVariableAsset.json @@ -1,66 +1,66 @@ { "Entries": [ { - "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e8863d9f-8ac1-4081-b07c-f6c8b792b488" + "453734e2-3aed-4575-8bb3-68cfda2b30ea" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.3190.0", + "FxVersion/4.6.29719.03", "OSName/Windows", - "OSVersion/6.3.9600.0", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.0.0" + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" ] }, "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], "Pragma": [ "no-cache" ], "ocp-automation-accountid": [ - "70c03a7a-1ee5-4c33-972c-b84fe0b1b31f" + "1f2cbd06-83a6-470d-b1bc-af146f663017" ], "x-ms-request-id": [ - "e8863d9f-8ac1-4081-b07c-f6c8b792b488" + "453734e2-3aed-4575-8bb3-68cfda2b30ea" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" + "11992" ], "x-ms-correlation-request-id": [ - "911dc000-94dc-4e42-85c1-9e7855647aac" + "029c79d6-c81f-48e7-a623-2648c2dc055a" ], "x-ms-routing-request-id": [ - "WESTUS2:20181109T021726Z:911dc000-94dc-4e42-85c1-9e7855647aac" + "SOUTHEASTASIA:20210226T083025Z:029c79d6-c81f-48e7-a623-2648c2dc055a" ], "X-Content-Type-Options": [ "nosniff" ], - "Cache-Control": [ - "no-cache" - ], "Date": [ - "Fri, 09 Nov 2018 02:17:26 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Fri, 26 Feb 2021 08:30:24 GMT" ], "Content-Length": [ - "580" + "624" ], "Content-Type": [ "application/json; charset=utf-8" @@ -69,64 +69,64 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"fbs-aa-01\",\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts\",\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"etag\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"family\": null,\r\n \"capacity\": null\r\n },\r\n \"state\": \"Ok\",\r\n \"RegistrationUrl\": \"https://eus2-agentservice-prod-1.azure-automation.net/accounts/70c03a7a-1ee5-4c33-972c-b84fe0b1b31f\",\r\n \"creationTime\": \"2018-10-18T16:39:00.267-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-11-01T10:07:37.523-07:00\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"test-automation-0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"etag\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"family\": null,\r\n \"capacity\": null\r\n },\r\n \"state\": \"Ok\",\r\n \"RegistrationUrl\": \"https://1f2cbd06-83a6-470d-b1bc-af146f663017.agentsvc.eus.azure-automation.net/accounts/1f2cbd06-83a6-470d-b1bc-af146f663017\",\r\n \"creationTime\": \"2021-02-26T15:25:27.07+08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2021-02-26T15:25:27.07+08:00\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/variables/CreateNewVariableWithValue?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS92YXJpYWJsZXMvQ3JlYXRlTmV3VmFyaWFibGVXaXRoVmFsdWU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f1cf3c7b-3b7b-4643-a466-0c8e3bf081b2" + "30575b2f-f814-4b05-a56f-8a674364cb20" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.3190.0", + "FxVersion/4.6.29719.03", "OSName/Windows", - "OSVersion/6.3.9600.0", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.0.0" + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" ] }, "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "f1cf3c7b-3b7b-4643-a466-0c8e3bf081b2" + "30575b2f-f814-4b05-a56f-8a674364cb20" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" + "11997" ], "x-ms-correlation-request-id": [ - "35596b60-300c-4f4a-b9ed-2355662d9aa8" + "624202e5-da7f-4701-82f7-06bd75878c65" ], "x-ms-routing-request-id": [ - "WESTUS2:20181109T021726Z:35596b60-300c-4f4a-b9ed-2355662d9aa8" + "SOUTHEASTASIA:20210226T083025Z:624202e5-da7f-4701-82f7-06bd75878c65" ], "X-Content-Type-Options": [ "nosniff" ], - "Cache-Control": [ - "no-cache" - ], "Date": [ - "Fri, 09 Nov 2018 02:17:26 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Fri, 26 Feb 2021 08:30:25 GMT" ], "Content-Length": [ "51" @@ -142,63 +142,63 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/variables/CreateNewVariableWithValue?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS92YXJpYWJsZXMvQ3JlYXRlTmV3VmFyaWFibGVXaXRoVmFsdWU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ca6c3491-84d5-4175-8143-6c849590736b" + "9483d156-73b1-468f-8893-9aac778f212a" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.3190.0", + "FxVersion/4.6.29719.03", "OSName/Windows", - "OSVersion/6.3.9600.0", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.0.0" + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" ] }, "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "ca6c3491-84d5-4175-8143-6c849590736b" + "9483d156-73b1-468f-8893-9aac778f212a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11986" + "11994" ], "x-ms-correlation-request-id": [ - "8d8e8ed9-89db-4a07-9731-5a594f56d7bd" + "d04c01ae-a595-40db-b4f4-a988e1d82c82" ], "x-ms-routing-request-id": [ - "WESTUS2:20181109T021728Z:8d8e8ed9-89db-4a07-9731-5a594f56d7bd" + "SOUTHEASTASIA:20210226T083027Z:d04c01ae-a595-40db-b4f4-a988e1d82c82" ], "X-Content-Type-Options": [ "nosniff" ], - "Cache-Control": [ - "no-cache" - ], "Date": [ - "Fri, 09 Nov 2018 02:17:28 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Fri, 26 Feb 2021 08:30:27 GMT" ], "Content-Length": [ - "457" + "473" ], "Content-Type": [ "application/json; charset=utf-8" @@ -207,67 +207,67 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2018-11-08T18:17:28.2-08:00\",\r\n \"lastModifiedTime\": \"2018-11-08T18:17:28.2-08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:25.89+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:25.89+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/variables/CreateNewVariableWithValue?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS92YXJpYWJsZXMvQ3JlYXRlTmV3VmFyaWFibGVXaXRoVmFsdWU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2f15d82f-1c1f-4e8e-8324-ac968489f424" + "e1727f51-2e7f-47b5-91fc-a12d6af59b8e" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.3190.0", + "FxVersion/4.6.29719.03", "OSName/Windows", - "OSVersion/6.3.9600.0", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.0.0" + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" ] }, "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "2f15d82f-1c1f-4e8e-8324-ac968489f424" + "e1727f51-2e7f-47b5-91fc-a12d6af59b8e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11985" + "11997" ], "x-ms-correlation-request-id": [ - "8479493b-b05d-46c0-8318-be393ba3c167" + "54704c4a-a206-4031-a3a9-0b4a33db79dc" ], "x-ms-routing-request-id": [ - "WESTUS2:20181109T021728Z:8479493b-b05d-46c0-8318-be393ba3c167" + "SOUTHEASTASIA:20210226T083029Z:54704c4a-a206-4031-a3a9-0b4a33db79dc" ], "X-Content-Type-Options": [ "nosniff" ], - "Cache-Control": [ - "no-cache" - ], "Date": [ - "Fri, 09 Nov 2018 02:17:28 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Fri, 26 Feb 2021 08:30:28 GMT" ], "Content-Length": [ - "457" + "473" ], "Content-Type": [ "application/json; charset=utf-8" @@ -276,67 +276,67 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2018-11-08T18:17:28.2-08:00\",\r\n \"lastModifiedTime\": \"2018-11-08T18:17:28.2-08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:25.89+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:25.89+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/variables/CreateNewVariableWithValue?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS92YXJpYWJsZXMvQ3JlYXRlTmV3VmFyaWFibGVXaXRoVmFsdWU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "11eeaa15-8078-4a4d-a827-88b62345b937" + "e1727f51-2e7f-47b5-91fc-a12d6af59b8e" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.3190.0", + "FxVersion/4.6.29719.03", "OSName/Windows", - "OSVersion/6.3.9600.0", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.0.0" + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" ] }, "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "11eeaa15-8078-4a4d-a827-88b62345b937" + "e1727f51-2e7f-47b5-91fc-a12d6af59b8e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11984" + "11996" ], "x-ms-correlation-request-id": [ - "6f8ddcef-08bb-46ff-a4f6-b9c7105440b9" + "e2fce80f-78eb-4fba-afcd-317dd6f22dfe" ], "x-ms-routing-request-id": [ - "WESTUS2:20181109T021729Z:6f8ddcef-08bb-46ff-a4f6-b9c7105440b9" + "SOUTHEASTASIA:20210226T083032Z:e2fce80f-78eb-4fba-afcd-317dd6f22dfe" ], "X-Content-Type-Options": [ "nosniff" ], - "Cache-Control": [ - "no-cache" - ], "Date": [ - "Fri, 09 Nov 2018 02:17:28 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Fri, 26 Feb 2021 08:30:31 GMT" ], "Content-Length": [ - "464" + "485" ], "Content-Type": [ "application/json; charset=utf-8" @@ -345,67 +345,67 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2018-11-08T18:17:28.2-08:00\",\r\n \"lastModifiedTime\": \"2018-11-08T18:17:29.2-08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValueChanged\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:25.89+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:31.8266667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValueChanged\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/variables/CreateNewVariableWithValue?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS92YXJpYWJsZXMvQ3JlYXRlTmV3VmFyaWFibGVXaXRoVmFsdWU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "835843d4-134e-4f97-a01a-bb964c0c98ae" + "21683f3f-ebca-41fd-b1a9-97ebd1911f70" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.3190.0", + "FxVersion/4.6.29719.03", "OSName/Windows", - "OSVersion/6.3.9600.0", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.0.0" + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" ] }, "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "835843d4-134e-4f97-a01a-bb964c0c98ae" + "21683f3f-ebca-41fd-b1a9-97ebd1911f70" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11983" + "11993" ], "x-ms-correlation-request-id": [ - "e0f9f697-19d3-458a-951e-f0b330618c23" + "55ca7bda-adf2-4572-b967-3f78f47b511d" ], "x-ms-routing-request-id": [ - "WESTUS2:20181109T021729Z:e0f9f697-19d3-458a-951e-f0b330618c23" + "SOUTHEASTASIA:20210226T083032Z:55ca7bda-adf2-4572-b967-3f78f47b511d" ], "X-Content-Type-Options": [ "nosniff" ], - "Cache-Control": [ - "no-cache" - ], "Date": [ - "Fri, 09 Nov 2018 02:17:29 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Fri, 26 Feb 2021 08:30:32 GMT" ], "Content-Length": [ - "464" + "485" ], "Content-Type": [ "application/json; charset=utf-8" @@ -414,64 +414,64 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2018-11-08T18:17:28.2-08:00\",\r\n \"lastModifiedTime\": \"2018-11-08T18:17:29.2-08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValueChanged\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:25.89+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:31.8266667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValueChanged\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/variables/CreateNewVariableWithValue?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS92YXJpYWJsZXMvQ3JlYXRlTmV3VmFyaWFibGVXaXRoVmFsdWU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c747855b-59df-4643-a81a-b70b8a221c0e" + "dd81497e-41b0-4b25-9a18-82c5cbf60886" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.3190.0", + "FxVersion/4.6.29719.03", "OSName/Windows", - "OSVersion/6.3.9600.0", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.0.0" + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" ] }, "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "c747855b-59df-4643-a81a-b70b8a221c0e" + "dd81497e-41b0-4b25-9a18-82c5cbf60886" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11982" + "11991" ], "x-ms-correlation-request-id": [ - "7af0ce32-5fef-4592-a82c-3120c44b2eea" + "06a6e991-6689-4f89-b741-5f95fda3d60a" ], "x-ms-routing-request-id": [ - "WESTUS2:20181109T021729Z:7af0ce32-5fef-4592-a82c-3120c44b2eea" + "SOUTHEASTASIA:20210226T083036Z:06a6e991-6689-4f89-b741-5f95fda3d60a" ], "X-Content-Type-Options": [ "nosniff" ], - "Cache-Control": [ - "no-cache" - ], "Date": [ - "Fri, 09 Nov 2018 02:17:29 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Fri, 26 Feb 2021 08:30:35 GMT" ], "Content-Length": [ "51" @@ -487,22 +487,22 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/variables/CreateNewVariableWithValue?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS92YXJpYWJsZXMvQ3JlYXRlTmV3VmFyaWFibGVXaXRoVmFsdWU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"properties\": {\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\",\r\n \"isEncrypted\": false\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "049492d8-e68d-4214-ae82-5427cc344164" + "30575b2f-f814-4b05-a56f-8a674364cb20" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.3190.0", + "FxVersion/4.6.29719.03", "OSName/Windows", - "OSVersion/6.3.9600.0", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.0.0" + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -512,53 +512,53 @@ ] }, "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], "Pragma": [ "no-cache" ], + "Location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31" + ], "x-ms-request-id": [ - "049492d8-e68d-4214-ae82-5427cc344164" + "30575b2f-f814-4b05-a56f-8a674364cb20" ], "x-ms-location": [ - "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/variables/CreateNewVariableWithValue?api-version=2015-10-31" + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31" ], "ocp-location": [ - "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/variables/CreateNewVariableWithValue?api-version=2015-10-31" + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "1dc9b106-dbfc-4935-b92e-75d4ff26c6bd" + "db12bde2-dba9-4e65-be75-a9e7d33d91bc" ], "x-ms-routing-request-id": [ - "WESTUS2:20181109T021728Z:1dc9b106-dbfc-4935-b92e-75d4ff26c6bd" + "SOUTHEASTASIA:20210226T083026Z:db12bde2-dba9-4e65-be75-a9e7d33d91bc" ], "X-Content-Type-Options": [ "nosniff" ], - "Cache-Control": [ - "no-cache" - ], "Date": [ - "Fri, 09 Nov 2018 02:17:27 GMT" - ], - "Location": [ - "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/variables/CreateNewVariableWithValue?api-version=2015-10-31" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Fri, 26 Feb 2021 08:30:25 GMT" ], "Content-Length": [ - "457" + "473" ], "Content-Type": [ "application/json; charset=utf-8" @@ -567,26 +567,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2018-11-08T18:17:28.2-08:00\",\r\n \"lastModifiedTime\": \"2018-11-08T18:17:28.2-08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:25.89+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:25.89+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/variables/CreateNewVariableWithValue?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS92YXJpYWJsZXMvQ3JlYXRlTmV3VmFyaWFibGVXaXRoVmFsdWU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", "RequestMethod": "PATCH", "RequestBody": "{\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"properties\": {\r\n \"value\": \"\\\"StringValueChanged\\\"\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "cb339705-db5f-447e-804e-e72a937ca45b" + "e1727f51-2e7f-47b5-91fc-a12d6af59b8e" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.3190.0", + "FxVersion/4.6.29719.03", "OSName/Windows", - "OSVersion/6.3.9600.0", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.0.0" + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -596,44 +596,44 @@ ] }, "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "cb339705-db5f-447e-804e-e72a937ca45b" + "e1727f51-2e7f-47b5-91fc-a12d6af59b8e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1199" ], "x-ms-correlation-request-id": [ - "735ce160-0152-44ca-a2bd-9643e9abc4a1" + "6f9cfd0a-38db-48f6-992f-2864cecc7cbb" ], "x-ms-routing-request-id": [ - "WESTUS2:20181109T021729Z:735ce160-0152-44ca-a2bd-9643e9abc4a1" + "SOUTHEASTASIA:20210226T083032Z:6f9cfd0a-38db-48f6-992f-2864cecc7cbb" ], "X-Content-Type-Options": [ "nosniff" ], - "Cache-Control": [ - "no-cache" - ], "Date": [ - "Fri, 09 Nov 2018 02:17:28 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" + "Fri, 26 Feb 2021 08:30:31 GMT" ], "Content-Length": [ - "464" + "485" ], "Content-Type": [ "application/json; charset=utf-8" @@ -642,70 +642,70 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2018-11-08T18:17:28.2-08:00\",\r\n \"lastModifiedTime\": \"2018-11-08T18:17:29.2-08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValueChanged\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:25.89+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:31.8266667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValueChanged\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/variables/CreateNewVariableWithValue?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS92YXJpYWJsZXMvQ3JlYXRlTmV3VmFyaWFibGVXaXRoVmFsdWU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "96865082-97e1-4162-b17a-894d9abe7e83" + "8499693b-502d-4a36-9dd4-7824918230a0" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.3190.0", + "FxVersion/4.6.29719.03", "OSName/Windows", - "OSVersion/6.3.9600.0", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.0.0" + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" ] }, "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "96865082-97e1-4162-b17a-894d9abe7e83" + "8499693b-502d-4a36-9dd4-7824918230a0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" + "14998" ], "x-ms-correlation-request-id": [ - "4fcca54a-c662-4ddb-b511-8ec6153197c7" + "9718d3a9-4207-47fc-8eed-e6737ed2489a" ], "x-ms-routing-request-id": [ - "WESTUS2:20181109T021729Z:4fcca54a-c662-4ddb-b511-8ec6153197c7" + "SOUTHEASTASIA:20210226T083036Z:9718d3a9-4207-47fc-8eed-e6737ed2489a" ], "X-Content-Type-Options": [ "nosniff" ], - "Cache-Control": [ - "no-cache" - ], "Date": [ - "Fri, 09 Nov 2018 02:17:29 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-AspNet-Version": [ - "4.0.30319" + "Fri, 26 Feb 2021 08:30:35 GMT" ], - "X-Powered-By": [ - "ASP.NET" + "Expires": [ + "-1" ], "Content-Length": [ "0" - ], - "Expires": [ - "-1" ] }, "ResponseBody": "", @@ -714,6 +714,6 @@ ], "Names": {}, "Variables": { - "SubscriptionId": "422b6c61-95b0-4213-b3be-7282315df71d" + "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f" } } \ No newline at end of file diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestJsonInValueVariable.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestJsonInValueVariable.json new file mode 100644 index 000000000000..de52976e0e99 --- /dev/null +++ b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestJsonInValueVariable.json @@ -0,0 +1,719 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "69a55f4d-8967-410f-aa42-2b74588f5174" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ocp-automation-accountid": [ + "1f2cbd06-83a6-470d-b1bc-af146f663017" + ], + "x-ms-request-id": [ + "69a55f4d-8967-410f-aa42-2b74588f5174" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "7a4e86c9-0279-42ea-8929-bc20db8f955e" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083052Z:7a4e86c9-0279-42ea-8929-bc20db8f955e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:30:52 GMT" + ], + "Content-Length": [ + "624" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-automation-0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"etag\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"family\": null,\r\n \"capacity\": null\r\n },\r\n \"state\": \"Ok\",\r\n \"RegistrationUrl\": \"https://1f2cbd06-83a6-470d-b1bc-af146f663017.agentsvc.eus.azure-automation.net/accounts/1f2cbd06-83a6-470d-b1bc-af146f663017\",\r\n \"creationTime\": \"2021-02-26T15:25:27.07+08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2021-02-26T15:25:27.07+08:00\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5WYWx1ZVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "87ca0d77-7ab1-4c72-9437-722114130bb1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "87ca0d77-7ab1-4c72-9437-722114130bb1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "6cdfd78c-cf59-4552-81df-175ec825d737" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083054Z:6cdfd78c-cf59-4552-81df-175ec825d737" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:30:53 GMT" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5WYWx1ZVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9e659577-9fd7-4f29-bd80-245ba504b55e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "9e659577-9fd7-4f29-bd80-245ba504b55e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "c7c9ca40-fd78-4a8d-b81e-788eb5ed4afd" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083055Z:c7c9ca40-fd78-4a8d-b81e-788eb5ed4afd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:30:54 GMT" + ], + "Content-Length": [ + "504" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable\",\r\n \"name\": \"JsonInValueVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:54.3833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:54.3833333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":\\\"subvalue\\\"}}\",\r\n \"description\": \"JsonInValueVariable\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5WYWx1ZVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c9d36f22-fc9d-4a05-83d1-71e1d545ef15" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c9d36f22-fc9d-4a05-83d1-71e1d545ef15" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "98d0a652-8033-4fbe-8534-bdae837b789e" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083056Z:98d0a652-8033-4fbe-8534-bdae837b789e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:30:56 GMT" + ], + "Content-Length": [ + "504" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable\",\r\n \"name\": \"JsonInValueVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:54.3833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:54.3833333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":\\\"subvalue\\\"}}\",\r\n \"description\": \"JsonInValueVariable\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5WYWx1ZVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c9d36f22-fc9d-4a05-83d1-71e1d545ef15" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c9d36f22-fc9d-4a05-83d1-71e1d545ef15" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "a138ab3e-2af1-424b-bdbc-5d4aa23aa35b" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083058Z:a138ab3e-2af1-424b-bdbc-5d4aa23aa35b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:30:57 GMT" + ], + "Content-Length": [ + "484" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable\",\r\n \"name\": \"JsonInValueVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:54.3833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:57.97+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"JsonInValueVariable\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5WYWx1ZVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0083fe02-cbbc-40bf-a8ed-99d8c29dd0bd" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "0083fe02-cbbc-40bf-a8ed-99d8c29dd0bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "edbcd1e4-8efd-43ae-b7f5-e32661994f34" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083059Z:edbcd1e4-8efd-43ae-b7f5-e32661994f34" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:30:58 GMT" + ], + "Content-Length": [ + "484" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable\",\r\n \"name\": \"JsonInValueVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:54.3833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:57.97+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"JsonInValueVariable\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5WYWx1ZVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "deac91bc-a60e-4e5f-92d8-18a9ca6d8ac5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "deac91bc-a60e-4e5f-92d8-18a9ca6d8ac5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "b9423ced-29a9-479f-af40-a95f75582334" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083103Z:b9423ced-29a9-479f-af40-a95f75582334" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:31:02 GMT" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5WYWx1ZVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"name\": \"JsonInValueVariable\",\r\n \"properties\": {\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":\\\"subvalue\\\"}}\",\r\n \"description\": \"JsonInValueVariable\",\r\n \"isEncrypted\": false\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "87ca0d77-7ab1-4c72-9437-722114130bb1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "185" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31" + ], + "x-ms-request-id": [ + "87ca0d77-7ab1-4c72-9437-722114130bb1" + ], + "x-ms-location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31" + ], + "ocp-location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "d65c2102-c178-48c3-ac76-1b0d2656ad51" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083054Z:d65c2102-c178-48c3-ac76-1b0d2656ad51" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:30:54 GMT" + ], + "Content-Length": [ + "504" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable\",\r\n \"name\": \"JsonInValueVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:54.3833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:54.3833333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":\\\"subvalue\\\"}}\",\r\n \"description\": \"JsonInValueVariable\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5WYWx1ZVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"name\": \"JsonInValueVariable\",\r\n \"properties\": {\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c9d36f22-fc9d-4a05-83d1-71e1d545ef15" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "100" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c9d36f22-fc9d-4a05-83d1-71e1d545ef15" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "fe503299-1e65-44c8-82da-84095bfc1ad6" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083058Z:fe503299-1e65-44c8-82da-84095bfc1ad6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:30:57 GMT" + ], + "Content-Length": [ + "484" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable\",\r\n \"name\": \"JsonInValueVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:54.3833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:57.97+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"JsonInValueVariable\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5WYWx1ZVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "edbf2fb9-bafb-4112-9d35-f8c7192fd176" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "edbf2fb9-bafb-4112-9d35-f8c7192fd176" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "0a67da72-c625-41d2-8c45-be265362a46e" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083102Z:0a67da72-c625-41d2-8c45-be265362a46e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:31:02 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f" + } +} \ No newline at end of file diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestNormalHashTableVariable.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestNormalHashTableVariable.json new file mode 100644 index 000000000000..47a2a8032ebb --- /dev/null +++ b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestNormalHashTableVariable.json @@ -0,0 +1,719 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "57e99865-c5f1-423b-92a1-36a48d9856d8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ocp-automation-accountid": [ + "1f2cbd06-83a6-470d-b1bc-af146f663017" + ], + "x-ms-request-id": [ + "57e99865-c5f1-423b-92a1-36a48d9856d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "7ddfc600-cd3a-457a-8f77-91500055beee" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083147Z:7ddfc600-cd3a-457a-8f77-91500055beee" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:31:46 GMT" + ], + "Content-Length": [ + "624" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-automation-0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"etag\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"family\": null,\r\n \"capacity\": null\r\n },\r\n \"state\": \"Ok\",\r\n \"RegistrationUrl\": \"https://1f2cbd06-83a6-470d-b1bc-af146f663017.agentsvc.eus.azure-automation.net/accounts/1f2cbd06-83a6-470d-b1bc-af146f663017\",\r\n \"creationTime\": \"2021-02-26T15:25:27.07+08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2021-02-26T15:25:27.07+08:00\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Ob3JtYWxIYXNoVGFibGU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e78d2095-c83d-4931-9428-9027bc15cca5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "e78d2095-c83d-4931-9428-9027bc15cca5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "6db7fd0c-5320-4a06-aed2-65f76e316c82" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083148Z:6db7fd0c-5320-4a06-aed2-65f76e316c82" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:31:47 GMT" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Ob3JtYWxIYXNoVGFibGU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fe0d7531-15da-4eff-af8e-063f8491f1da" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "fe0d7531-15da-4eff-af8e-063f8491f1da" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "59b3b4ac-4a90-46c2-9c8c-0aa752e525f9" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083149Z:59b3b4ac-4a90-46c2-9c8c-0aa752e525f9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:31:48 GMT" + ], + "Content-Length": [ + "475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"NormalHashTable\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:31:48.71+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:31:48.71+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"value0\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Ob3JtYWxIYXNoVGFibGU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d28e2288-6544-4028-912f-5957395a5f19" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d28e2288-6544-4028-912f-5957395a5f19" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "deaaddf8-e6e7-403a-ae1d-275f0879e13e" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083150Z:deaaddf8-e6e7-403a-ae1d-275f0879e13e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:31:50 GMT" + ], + "Content-Length": [ + "475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:31:48.71+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:31:48.71+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"value0\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Ob3JtYWxIYXNoVGFibGU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d28e2288-6544-4028-912f-5957395a5f19" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d28e2288-6544-4028-912f-5957395a5f19" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "6c20eca9-5a10-4ca2-a7ae-6c9d1e195485" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083151Z:6c20eca9-5a10-4ca2-a7ae-6c9d1e195485" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:31:51 GMT" + ], + "Content-Length": [ + "480" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:31:48.71+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:31:50.7066667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Ob3JtYWxIYXNoVGFibGU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "18ea2222-a901-4901-856e-897b9c8de738" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "18ea2222-a901-4901-856e-897b9c8de738" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "8773bea4-9a3c-4e3c-9870-6d43fadd1664" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083151Z:8773bea4-9a3c-4e3c-9870-6d43fadd1664" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:31:51 GMT" + ], + "Content-Length": [ + "480" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:31:48.71+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:31:50.7066667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Ob3JtYWxIYXNoVGFibGU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e46cbb58-c6d6-499a-aa93-f88f84375d32" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "e46cbb58-c6d6-499a-aa93-f88f84375d32" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "d2e23ac8-3b6e-4cc9-baf4-216a3e790c53" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083155Z:d2e23ac8-3b6e-4cc9-baf4-216a3e790c53" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:31:55 GMT" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Ob3JtYWxIYXNoVGFibGU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"name\": \"NormalHashTable\",\r\n \"properties\": {\r\n \"value\": \"{\\\"key0\\\":\\\"value0\\\"}\",\r\n \"description\": \"NormalHashTableVariable\",\r\n \"isEncrypted\": false\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e78d2095-c83d-4931-9428-9027bc15cca5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "170" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable?api-version=2015-10-31" + ], + "x-ms-request-id": [ + "e78d2095-c83d-4931-9428-9027bc15cca5" + ], + "x-ms-location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable?api-version=2015-10-31" + ], + "ocp-location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable?api-version=2015-10-31" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "6cd1854e-12ff-4360-86fe-63f9bb18a35b" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083148Z:6cd1854e-12ff-4360-86fe-63f9bb18a35b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:31:47 GMT" + ], + "Content-Length": [ + "475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:31:48.71+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:31:48.71+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"value0\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Ob3JtYWxIYXNoVGFibGU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"name\": \"NormalHashTable\",\r\n \"properties\": {\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d28e2288-6544-4028-912f-5957395a5f19" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "96" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d28e2288-6544-4028-912f-5957395a5f19" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "04dd9f5c-a4bd-4057-80b4-d74bd4f2f3fb" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083150Z:04dd9f5c-a4bd-4057-80b4-d74bd4f2f3fb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:31:50 GMT" + ], + "Content-Length": [ + "480" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:31:48.71+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:31:50.7066667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Ob3JtYWxIYXNoVGFibGU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "12436e51-bdef-4c7f-a7b6-9d720e9a0baf" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "12436e51-bdef-4c7f-a7b6-9d720e9a0baf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "981d173b-1eda-46e5-b62b-37cf70c9bc79" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T083155Z:981d173b-1eda-46e5-b62b-37cf70c9bc79" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:31:55 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f" + } +} \ No newline at end of file diff --git a/src/Automation/Automation/Common/PowershellJsonConverter.cs b/src/Automation/Automation/Common/PowershellJsonConverter.cs index 8150c8e37027..fc28d15ecb50 100644 --- a/src/Automation/Automation/Common/PowershellJsonConverter.cs +++ b/src/Automation/Automation/Common/PowershellJsonConverter.cs @@ -30,40 +30,41 @@ public static class PowerShellJsonConverter { public static string Serialize(object inputObject) { - if (inputObject == null) - { - return null; - } + return JsonConvert.SerializeObject(ConvertObjectInternal(inputObject)); + } + + private static object ConvertObjectInternal(object inputObject) + { if (inputObject is string @str) { - return JsonConvert.SerializeObject(str.Trim()); + return str.Trim(); } else if (inputObject is object[] @objectArray) { - return SerializeArray(objectArray); + return ConvertArray(objectArray); } else if (inputObject is PSObject @psObject) { - return SerializePsObject(psObject); + return ConvertPsObject(psObject); } - return JsonConvert.SerializeObject(inputObject); + return inputObject; } - private static string SerializePsObject(PSObject @psObject) + private static Dictionary ConvertPsObject(PSObject @psObject) { - Dictionary hashTable = new Dictionary(); + Dictionary hashTable = new Dictionary(); foreach (var item in @psObject.Properties) { - hashTable.Add(item.Name, Serialize(item.Value)); + hashTable.Add(item.Name, ConvertObjectInternal(item.Value)); } - return JsonConvert.SerializeObject(hashTable); + return hashTable; } - private static string SerializeArray(object[] objectArray) + private static List ConvertArray(object[] objectArray) { List objectList = objectArray.ToList(); - return string.Format("[{0}]", string.Join(",", objectList.Select(Serialize).ToList())); + return objectList.Select(ConvertObjectInternal).ToList(); } public static PSObject Deserialize(string json) From 6cd00182f26ea0224cd726414195f88118cbac10 Mon Sep 17 00:00:00 2001 From: wyunchi-ms Date: Fri, 26 Feb 2021 16:52:46 +0800 Subject: [PATCH 4/6] Update test case and fix issue for int --- .../ScenarioTests/VariableTests.cs | 35 +- .../ScenarioTests/VariableTests.ps1 | 155 +++- .../TestArrayVariable.json | 144 ++-- .../TestFloatVariable.json | 719 ++++++++++++++++++ .../TestIntVariable.json | 719 ++++++++++++++++++ .../TestJsonInDictValueVariable.json | 719 ++++++++++++++++++ .../TestMultiLevelDictVariable.json | 719 ++++++++++++++++++ .../TestNormalHashTableVariable.json | 132 ++-- .../TestStringVariable.json | 719 ++++++++++++++++++ 9 files changed, 3914 insertions(+), 147 deletions(-) create mode 100644 src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestFloatVariable.json create mode 100644 src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestIntVariable.json create mode 100644 src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestJsonInDictValueVariable.json create mode 100644 src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestMultiLevelDictVariable.json create mode 100644 src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestStringVariable.json diff --git a/src/Automation/Automation.Test/ScenarioTests/VariableTests.cs b/src/Automation/Automation.Test/ScenarioTests/VariableTests.cs index f3890550bcdb..e8da933f1c29 100644 --- a/src/Automation/Automation.Test/ScenarioTests/VariableTests.cs +++ b/src/Automation/Automation.Test/ScenarioTests/VariableTests.cs @@ -28,9 +28,27 @@ public VariableTests(Xunit.Abstractions.ITestOutputHelper output) [Trait(Category.Service, Category.Automation)] [Trait(Category.AcceptanceType, Category.CheckIn)] [Trait(Category.AcceptanceType, Category.BVT)] - public void TestE2EVariableAsset() + public void TestStringVariable() { - TestRunner.RunTestScript("Test-E2EVariableAsset"); + TestRunner.RunTestScript("Test-StringVariable"); + } + + [Fact] + [Trait(Category.Service, Category.Automation)] + [Trait(Category.AcceptanceType, Category.CheckIn)] + [Trait(Category.AcceptanceType, Category.BVT)] + public void TestIntVariable() + { + TestRunner.RunTestScript("Test-IntVariable"); + } + + [Fact] + [Trait(Category.Service, Category.Automation)] + [Trait(Category.AcceptanceType, Category.CheckIn)] + [Trait(Category.AcceptanceType, Category.BVT)] + public void TestFloatVariable() + { + TestRunner.RunTestScript("Test-FloatVariable"); } [Fact] @@ -55,9 +73,18 @@ public void TestNormalHashTableVariable() [Trait(Category.Service, Category.Automation)] [Trait(Category.AcceptanceType, Category.CheckIn)] [Trait(Category.AcceptanceType, Category.BVT)] - public void TestJsonInValueVariable() + public void TestMultiLevelDictVariable() + { + TestRunner.RunTestScript("Test-MultiLevelDictVariable"); + } + + [Fact] + [Trait(Category.Service, Category.Automation)] + [Trait(Category.AcceptanceType, Category.CheckIn)] + [Trait(Category.AcceptanceType, Category.BVT)] + public void TestJsonInDictValueVariable() { - TestRunner.RunTestScript("Test-JsonInValueVariable"); + TestRunner.RunTestScript("Test-JsonInDictValueVariable"); } } } diff --git a/src/Automation/Automation.Test/ScenarioTests/VariableTests.ps1 b/src/Automation/Automation.Test/ScenarioTests/VariableTests.ps1 index 3d5004cedebc..c58b815fe757 100644 --- a/src/Automation/Automation.Test/ScenarioTests/VariableTests.ps1 +++ b/src/Automation/Automation.Test/ScenarioTests/VariableTests.ps1 @@ -16,12 +16,12 @@ .SYNOPSIS Tests create new automation variable with string value. #> -function Test-E2EVariableAsset +function Test-StringVariable { $resourceGroupName = "wyunchi-automation" $automationAccountName = "test-automation-0" $output = Get-AzAutomationAccount -ResourceGroupName $resourceGroupName -AutomationAccountName $automationAccountName -ErrorAction SilentlyContinue - $variableName = "CreateNewVariableWithValue" + $variableName = "StringValue" $variableValue = "StringValue" $variableValueUpdated = "StringValueChanged" @@ -60,6 +60,103 @@ function Test-E2EVariableAsset Assert-True {$output -eq $null} } + +<# +.SYNOPSIS +Tests create new automation variable with string value. +#> +function Test-IntVariable +{ + $resourceGroupName = "wyunchi-automation" + $automationAccountName = "test-automation-0" + $output = Get-AzAutomationAccount -ResourceGroupName $resourceGroupName -AutomationAccountName $automationAccountName -ErrorAction SilentlyContinue + $variableName = "CreateNewVariableWithValue" + $variableValue = 1 + $variableValueUpdated = 2 + + $variableCreated = New-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName ` + -value $variableValue ` + -Encrypted:$false ` + -Description "Hello" + + $getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName + + Assert-AreEqual "Hello" $getVariable.Description + + Set-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -Name $variableName ` + -Encrypted:$false ` + -value $variableValueUpdated + + $getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName + + Assert-AreEqual $variableValueUpdated $getVariable.value + + Remove-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -Name $variableName + + $output = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName -ErrorAction SilentlyContinue + + Assert-True {$output -eq $null} + } + +<# +.SYNOPSIS +Tests create new automation variable with string value. +#> +function Test-FloatVariable +{ + $resourceGroupName = "wyunchi-automation" + $automationAccountName = "test-automation-0" + $output = Get-AzAutomationAccount -ResourceGroupName $resourceGroupName -AutomationAccountName $automationAccountName -ErrorAction SilentlyContinue + $variableName = "NewFloatVariable" + $variableValue = 1.1 + $variableValueUpdated = 2.2 + + $variableCreated = New-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName ` + -value $variableValue ` + -Encrypted:$false ` + -Description "float" + Assert-AreEqual ($variableValue | ConvertTo-Json) $variableCreated.value.toString() + + $getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName + + Set-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -Name $variableName ` + -Encrypted:$false ` + -value $variableValueUpdated + + $getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName + + Assert-AreEqual ($variableValueUpdated | ConvertTo-Json) $getVariable.value.toString() + + Remove-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -Name $variableName + + $output = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName -ErrorAction SilentlyContinue + + Assert-True {$output -eq $null} + } <# .SYNOPSIS @@ -161,12 +258,12 @@ function Test-NormalHashTableVariable .SYNOPSIS Tests create new automation variable with multi level dict. #> -function Test-JsonInValueVariable +function Test-MultiLevelDictVariable { $resourceGroupName = "wyunchi-automation" $automationAccountName = "test-automation-0" $output = Get-AzAutomationAccount -ResourceGroupName $resourceGroupName -AutomationAccountName $automationAccountName -ErrorAction SilentlyContinue - $variableName = "JsonInValueVariable" + $variableName = "MultiLevelDict" $variableValue = @{"key0" = @{"subkey" = "subvalue"}} $variableValueUpdated = @{"key0" = @{"subkey" = @{"3rdkey" = "3rd-value"}}} @@ -175,7 +272,55 @@ function Test-JsonInValueVariable -name $variableName ` -value $variableValue ` -Encrypted:$false ` - -Description "JsonInValueVariable" + -Description "MultiLevelDict" + Assert-AreEqual ($variableValue | ConvertTo-Json) $variableCreated.value.toString() + + $getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName + + Set-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -Name $variableName ` + -Encrypted:$false ` + -value $variableValueUpdated + + $getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName + + Assert-AreEqual ($variableValueUpdated | ConvertTo-Json) $getVariable.value.toString() + + Remove-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -Name $variableName + + $output = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName -ErrorAction SilentlyContinue + + Assert-True {$output -eq $null} + } + +<# +.SYNOPSIS +Tests create new automation variable with multi level dict. +#> +function Test-JsonInDictValueVariable +{ + $resourceGroupName = "wyunchi-automation" + $automationAccountName = "test-automation-0" + $output = Get-AzAutomationAccount -ResourceGroupName $resourceGroupName -AutomationAccountName $automationAccountName -ErrorAction SilentlyContinue + $variableName = "JsonInDictValue" + $variableValue = @{"key0" = "{`"subkey`" = `"sub-value`"}"} + $variableValueUpdated = @{"key0" = "{`"subkey`" = `"0`"}"} + + $variableCreated = New-AzAutomationVariable -ResourceGroupName $resourceGroupName ` + -AutomationAccountName $automationAccountName ` + -name $variableName ` + -value $variableValue ` + -Encrypted:$false ` + -Description "JsonInDictValue" Assert-AreEqual ($variableValue | ConvertTo-Json) $variableCreated.value.toString() $getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName ` diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestArrayVariable.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestArrayVariable.json index e7b03afdc726..d5b828876bbc 100644 --- a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestArrayVariable.json +++ b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestArrayVariable.json @@ -7,7 +7,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "40d19de5-3946-4838-b55d-3e758920200c" + "14f6b426-471b-4169-9b16-3f5c3d1f8d66" ], "Accept-Language": [ "en-US" @@ -30,7 +30,7 @@ "1f2cbd06-83a6-470d-b1bc-af146f663017" ], "x-ms-request-id": [ - "40d19de5-3946-4838-b55d-3e758920200c" + "14f6b426-471b-4169-9b16-3f5c3d1f8d66" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -45,19 +45,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" + "11994" ], "x-ms-correlation-request-id": [ - "3d9765c2-1c16-4d0d-a477-da02dbb5f33e" + "e0d172c6-8109-4864-bb38-2650a6eed33b" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083011Z:3d9765c2-1c16-4d0d-a477-da02dbb5f33e" + "SOUTHEASTASIA:20210226T084652Z:e0d172c6-8109-4864-bb38-2650a6eed33b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:30:11 GMT" + "Fri, 26 Feb 2021 08:46:51 GMT" ], "Content-Length": [ "624" @@ -79,7 +79,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "db3fa1dc-9136-49df-bda0-f8df41dde66d" + "aeabe5cc-4c14-4a00-b8b0-14f58207ec87" ], "Accept-Language": [ "en-US" @@ -99,7 +99,7 @@ "no-cache" ], "x-ms-request-id": [ - "db3fa1dc-9136-49df-bda0-f8df41dde66d" + "aeabe5cc-4c14-4a00-b8b0-14f58207ec87" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -114,19 +114,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11985" ], "x-ms-correlation-request-id": [ - "d6f8d245-4a7a-4244-9af6-d56b033860eb" + "d8bf7048-a381-4b77-960a-f3baa2030201" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083013Z:d6f8d245-4a7a-4244-9af6-d56b033860eb" + "SOUTHEASTASIA:20210226T084652Z:d8bf7048-a381-4b77-960a-f3baa2030201" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:30:13 GMT" + "Fri, 26 Feb 2021 08:46:52 GMT" ], "Content-Length": [ "51" @@ -148,7 +148,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4f7fc1be-2987-40f1-9bdf-200269f700f1" + "d0807e5f-7938-4921-858c-5a5b3b0548dc" ], "Accept-Language": [ "en-US" @@ -168,7 +168,7 @@ "no-cache" ], "x-ms-request-id": [ - "4f7fc1be-2987-40f1-9bdf-200269f700f1" + "d0807e5f-7938-4921-858c-5a5b3b0548dc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -183,22 +183,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" + "11991" ], "x-ms-correlation-request-id": [ - "888ea40b-571a-4aab-9c8f-d6533b577536" + "69b8aef2-bd82-436e-abdd-f11e31d5a802" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083015Z:888ea40b-571a-4aab-9c8f-d6533b577536" + "SOUTHEASTASIA:20210226T084654Z:69b8aef2-bd82-436e-abdd-f11e31d5a802" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:30:14 GMT" + "Fri, 26 Feb 2021 08:46:53 GMT" ], "Content-Length": [ - "834" + "844" ], "Content-Type": [ "application/json; charset=utf-8" @@ -207,7 +207,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:14.53+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:14.53+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:53.3266667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:53.3266667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -217,7 +217,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4a2b612b-7fa7-4623-ac3a-9ae17d3558b5" + "ed13d08c-dae6-4477-a3da-447f43d11c2b" ], "Accept-Language": [ "en-US" @@ -237,7 +237,7 @@ "no-cache" ], "x-ms-request-id": [ - "4a2b612b-7fa7-4623-ac3a-9ae17d3558b5" + "ed13d08c-dae6-4477-a3da-447f43d11c2b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -252,22 +252,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" + "11989" ], "x-ms-correlation-request-id": [ - "3b538368-c663-4be4-b797-dcf515ee4582" + "6b3ee44a-fe92-43e1-8c96-8c2b58ebbc73" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083015Z:3b538368-c663-4be4-b797-dcf515ee4582" + "SOUTHEASTASIA:20210226T084654Z:6b3ee44a-fe92-43e1-8c96-8c2b58ebbc73" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:30:15 GMT" + "Fri, 26 Feb 2021 08:46:53 GMT" ], "Content-Length": [ - "834" + "844" ], "Content-Type": [ "application/json; charset=utf-8" @@ -276,7 +276,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:14.53+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:14.53+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:53.3266667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:53.3266667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -286,7 +286,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4a2b612b-7fa7-4623-ac3a-9ae17d3558b5" + "ed13d08c-dae6-4477-a3da-447f43d11c2b" ], "Accept-Language": [ "en-US" @@ -306,7 +306,7 @@ "no-cache" ], "x-ms-request-id": [ - "4a2b612b-7fa7-4623-ac3a-9ae17d3558b5" + "ed13d08c-dae6-4477-a3da-447f43d11c2b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -321,22 +321,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" + "11988" ], "x-ms-correlation-request-id": [ - "f4b01360-631d-4595-a8d7-c08931102a55" + "6b804c0d-efa9-473a-8d09-ce7d9380435c" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083018Z:f4b01360-631d-4595-a8d7-c08931102a55" + "SOUTHEASTASIA:20210226T084655Z:6b804c0d-efa9-473a-8d09-ce7d9380435c" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:30:17 GMT" + "Fri, 26 Feb 2021 08:46:55 GMT" ], "Content-Length": [ - "743" + "748" ], "Content-Type": [ "application/json; charset=utf-8" @@ -345,7 +345,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:14.53+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:17.63+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:53.3266667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:55.28+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -355,7 +355,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "71fc64cf-fc5e-4cd7-9c62-2fe2ef71868b" + "7e237aa6-e3cf-4217-9ca7-f38eddfeb562" ], "Accept-Language": [ "en-US" @@ -375,7 +375,7 @@ "no-cache" ], "x-ms-request-id": [ - "71fc64cf-fc5e-4cd7-9c62-2fe2ef71868b" + "7e237aa6-e3cf-4217-9ca7-f38eddfeb562" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -390,22 +390,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" + "11987" ], "x-ms-correlation-request-id": [ - "cd6e33aa-4781-452d-a0b3-6f15ef39f7d1" + "6e6e9b40-647d-4c8f-9f2e-dcff2468b94d" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083018Z:cd6e33aa-4781-452d-a0b3-6f15ef39f7d1" + "SOUTHEASTASIA:20210226T084656Z:6e6e9b40-647d-4c8f-9f2e-dcff2468b94d" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:30:17 GMT" + "Fri, 26 Feb 2021 08:46:55 GMT" ], "Content-Length": [ - "743" + "748" ], "Content-Type": [ "application/json; charset=utf-8" @@ -414,7 +414,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:14.53+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:17.63+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:53.3266667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:55.28+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -424,7 +424,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a272a8cb-4181-471e-817f-3988a1b4f88f" + "f636dbaf-846c-468c-87f3-65d3ad5efe7c" ], "Accept-Language": [ "en-US" @@ -444,7 +444,7 @@ "no-cache" ], "x-ms-request-id": [ - "a272a8cb-4181-471e-817f-3988a1b4f88f" + "f636dbaf-846c-468c-87f3-65d3ad5efe7c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -459,19 +459,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" + "11986" ], "x-ms-correlation-request-id": [ - "fca43a01-cb6f-4418-8caa-44c805050287" + "01c2979e-4fa1-4fb2-91c0-bdb7b27d7c77" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083022Z:fca43a01-cb6f-4418-8caa-44c805050287" + "SOUTHEASTASIA:20210226T084701Z:01c2979e-4fa1-4fb2-91c0-bdb7b27d7c77" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:30:21 GMT" + "Fri, 26 Feb 2021 08:47:00 GMT" ], "Content-Length": [ "51" @@ -493,7 +493,7 @@ "RequestBody": "{\r\n \"name\": \"NewArrayVariable\",\r\n \"properties\": {\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\",\r\n \"isEncrypted\": false\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "db3fa1dc-9136-49df-bda0-f8df41dde66d" + "aeabe5cc-4c14-4a00-b8b0-14f58207ec87" ], "Accept-Language": [ "en-US" @@ -522,7 +522,7 @@ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31" ], "x-ms-request-id": [ - "db3fa1dc-9136-49df-bda0-f8df41dde66d" + "aeabe5cc-4c14-4a00-b8b0-14f58207ec87" ], "x-ms-location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31" @@ -543,22 +543,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1194" ], "x-ms-correlation-request-id": [ - "a2d5f433-ab9b-4df4-9b97-16099a16a668" + "6f4be367-2694-40ad-953b-31f12f99a672" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083014Z:a2d5f433-ab9b-4df4-9b97-16099a16a668" + "SOUTHEASTASIA:20210226T084653Z:6f4be367-2694-40ad-953b-31f12f99a672" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:30:14 GMT" + "Fri, 26 Feb 2021 08:46:52 GMT" ], "Content-Length": [ - "834" + "844" ], "Content-Type": [ "application/json; charset=utf-8" @@ -567,7 +567,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:14.53+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:14.53+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:53.3266667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:53.3266667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", "StatusCode": 201 }, { @@ -577,7 +577,7 @@ "RequestBody": "{\r\n \"name\": \"NewArrayVariable\",\r\n \"properties\": {\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "4a2b612b-7fa7-4623-ac3a-9ae17d3558b5" + "ed13d08c-dae6-4477-a3da-447f43d11c2b" ], "Accept-Language": [ "en-US" @@ -603,7 +603,7 @@ "no-cache" ], "x-ms-request-id": [ - "4a2b612b-7fa7-4623-ac3a-9ae17d3558b5" + "ed13d08c-dae6-4477-a3da-447f43d11c2b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -618,22 +618,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1198" ], "x-ms-correlation-request-id": [ - "dd7718b8-b155-49de-a762-fa545faf8942" + "73a7ab6a-0d6a-4a12-9b36-155f00a4c1dc" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083017Z:dd7718b8-b155-49de-a762-fa545faf8942" + "SOUTHEASTASIA:20210226T084655Z:73a7ab6a-0d6a-4a12-9b36-155f00a4c1dc" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:30:17 GMT" + "Fri, 26 Feb 2021 08:46:54 GMT" ], "Content-Length": [ - "743" + "748" ], "Content-Type": [ "application/json; charset=utf-8" @@ -642,7 +642,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:14.53+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:17.63+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:53.3266667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:55.28+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -652,7 +652,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b2fb6eab-203c-4d85-a1c8-aa3ed82d5a78" + "8cec9718-e8ff-4cc1-9078-9d98f4a43c9c" ], "Accept-Language": [ "en-US" @@ -672,7 +672,7 @@ "no-cache" ], "x-ms-request-id": [ - "b2fb6eab-203c-4d85-a1c8-aa3ed82d5a78" + "8cec9718-e8ff-4cc1-9078-9d98f4a43c9c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -687,19 +687,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14998" + "14997" ], "x-ms-correlation-request-id": [ - "06b15017-f922-4547-b4d1-7e521a38825b" + "183acd8a-2807-4962-ab8f-392bb4ed1037" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083021Z:06b15017-f922-4547-b4d1-7e521a38825b" + "SOUTHEASTASIA:20210226T084700Z:183acd8a-2807-4962-ab8f-392bb4ed1037" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:30:20 GMT" + "Fri, 26 Feb 2021 08:46:59 GMT" ], "Expires": [ "-1" diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestFloatVariable.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestFloatVariable.json new file mode 100644 index 000000000000..4b1153124960 --- /dev/null +++ b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestFloatVariable.json @@ -0,0 +1,719 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b19a5c1c-4c52-465f-af9a-119e46cb920f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ocp-automation-accountid": [ + "1f2cbd06-83a6-470d-b1bc-af146f663017" + ], + "x-ms-request-id": [ + "b19a5c1c-4c52-465f-af9a-119e46cb920f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "54e185be-afcd-4197-8781-d398fba562ef" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T085150Z:54e185be-afcd-4197-8781-d398fba562ef" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:51:49 GMT" + ], + "Content-Length": [ + "624" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-automation-0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"etag\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"family\": null,\r\n \"capacity\": null\r\n },\r\n \"state\": \"Ok\",\r\n \"RegistrationUrl\": \"https://1f2cbd06-83a6-470d-b1bc-af146f663017.agentsvc.eus.azure-automation.net/accounts/1f2cbd06-83a6-470d-b1bc-af146f663017\",\r\n \"creationTime\": \"2021-02-26T15:25:27.07+08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2021-02-26T15:25:27.07+08:00\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdGbG9hdFZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4083d494-7ac5-4193-9033-0f2f3396d8eb" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4083d494-7ac5-4193-9033-0f2f3396d8eb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "96011115-d72f-478a-8378-29a86c19c8ae" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T085151Z:96011115-d72f-478a-8378-29a86c19c8ae" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:51:51 GMT" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdGbG9hdFZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "58e80b36-1695-4986-8129-7b590b0c4eaa" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "58e80b36-1695-4986-8129-7b590b0c4eaa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "4e96dfe7-fa06-40f4-a655-6327a80c3c25" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T085152Z:4e96dfe7-fa06-40f4-a655-6327a80c3c25" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:51:51 GMT" + ], + "Content-Length": [ + "451" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable\",\r\n \"name\": \"NewFloatVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:51:51.8566667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:51:51.8566667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"1.1\",\r\n \"description\": \"float\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdGbG9hdFZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7b890a17-ad0f-4e43-b8d1-c843ceb3c17f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7b890a17-ad0f-4e43-b8d1-c843ceb3c17f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "14e18b03-1a84-4490-bc0c-49208ba5dc54" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T085153Z:14e18b03-1a84-4490-bc0c-49208ba5dc54" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:51:53 GMT" + ], + "Content-Length": [ + "451" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable\",\r\n \"name\": \"NewFloatVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:51:51.8566667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:51:51.8566667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"1.1\",\r\n \"description\": \"float\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdGbG9hdFZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7b890a17-ad0f-4e43-b8d1-c843ceb3c17f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7b890a17-ad0f-4e43-b8d1-c843ceb3c17f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "2f84b629-837f-400d-946d-3ee7e65c25d9" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T085155Z:2f84b629-837f-400d-946d-3ee7e65c25d9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:51:55 GMT" + ], + "Content-Length": [ + "451" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable\",\r\n \"name\": \"NewFloatVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:51:51.8566667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:51:55.0033333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"2.2\",\r\n \"description\": \"float\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdGbG9hdFZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "63257a20-596c-4b60-80dd-2d7ee4a9f3a8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "63257a20-596c-4b60-80dd-2d7ee4a9f3a8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "ae67977f-fc21-45da-81f1-dcfd42e9fb06" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T085157Z:ae67977f-fc21-45da-81f1-dcfd42e9fb06" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:51:57 GMT" + ], + "Content-Length": [ + "451" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable\",\r\n \"name\": \"NewFloatVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:51:51.8566667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:51:55.0033333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"2.2\",\r\n \"description\": \"float\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdGbG9hdFZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4f4bf4c2-a3b2-4619-af70-4438b3d9983c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4f4bf4c2-a3b2-4619-af70-4438b3d9983c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "0c2eebff-d79a-4c5d-af31-cd34cf15e0b9" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T085201Z:0c2eebff-d79a-4c5d-af31-cd34cf15e0b9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:52:01 GMT" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdGbG9hdFZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"name\": \"NewFloatVariable\",\r\n \"properties\": {\r\n \"value\": \"1.1\",\r\n \"description\": \"float\",\r\n \"isEncrypted\": false\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4083d494-7ac5-4193-9033-0f2f3396d8eb" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "135" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable?api-version=2015-10-31" + ], + "x-ms-request-id": [ + "4083d494-7ac5-4193-9033-0f2f3396d8eb" + ], + "x-ms-location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable?api-version=2015-10-31" + ], + "ocp-location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable?api-version=2015-10-31" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "97d2fbba-5855-407b-a452-82660be9e051" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T085152Z:97d2fbba-5855-407b-a452-82660be9e051" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:51:52 GMT" + ], + "Content-Length": [ + "451" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable\",\r\n \"name\": \"NewFloatVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:51:51.8566667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:51:51.8566667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"1.1\",\r\n \"description\": \"float\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdGbG9hdFZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"name\": \"NewFloatVariable\",\r\n \"properties\": {\r\n \"value\": \"2.2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7b890a17-ad0f-4e43-b8d1-c843ceb3c17f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7b890a17-ad0f-4e43-b8d1-c843ceb3c17f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "2bcc2b0a-c54d-46f6-8a4d-35ac88f15a01" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T085155Z:2bcc2b0a-c54d-46f6-8a4d-35ac88f15a01" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:51:55 GMT" + ], + "Content-Length": [ + "451" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable\",\r\n \"name\": \"NewFloatVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:51:51.8566667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:51:55.0033333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"2.2\",\r\n \"description\": \"float\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdGbG9hdFZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d1b33b11-09e0-497f-bc25-26bd32e89f52" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d1b33b11-09e0-497f-bc25-26bd32e89f52" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "ec67c25b-f31c-4042-865a-6714df6a3541" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T085201Z:ec67c25b-f31c-4042-865a-6714df6a3541" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:52:00 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f" + } +} \ No newline at end of file diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestIntVariable.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestIntVariable.json new file mode 100644 index 000000000000..d25ed64f6213 --- /dev/null +++ b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestIntVariable.json @@ -0,0 +1,719 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5ad14680-221f-42a2-8aba-1f592cf2144f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ocp-automation-accountid": [ + "1f2cbd06-83a6-470d-b1bc-af146f663017" + ], + "x-ms-request-id": [ + "5ad14680-221f-42a2-8aba-1f592cf2144f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "7839283c-9d69-4c7d-904c-586bb9ea79e4" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084631Z:7839283c-9d69-4c7d-904c-586bb9ea79e4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:31 GMT" + ], + "Content-Length": [ + "624" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-automation-0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"etag\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"family\": null,\r\n \"capacity\": null\r\n },\r\n \"state\": \"Ok\",\r\n \"RegistrationUrl\": \"https://1f2cbd06-83a6-470d-b1bc-af146f663017.agentsvc.eus.azure-automation.net/accounts/1f2cbd06-83a6-470d-b1bc-af146f663017\",\r\n \"creationTime\": \"2021-02-26T15:25:27.07+08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2021-02-26T15:25:27.07+08:00\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c517ecef-cdaf-460e-8d0f-77d80dfe6078" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c517ecef-cdaf-460e-8d0f-77d80dfe6078" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "e37520a1-4bd4-43ad-b2cd-87d7df56892f" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084632Z:e37520a1-4bd4-43ad-b2cd-87d7df56892f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:31 GMT" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7f2ee954-70bb-4b08-9bc0-f89805e6aec8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7f2ee954-70bb-4b08-9bc0-f89805e6aec8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "ed6336d0-8280-48d9-b16c-ee2910e19f47" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084634Z:ed6336d0-8280-48d9-b16c-ee2910e19f47" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:34 GMT" + ], + "Content-Length": [ + "469" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:33.5966667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:33.5966667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"1\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2392dfda-2fa9-4b27-9e7c-0c4548a833b7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "2392dfda-2fa9-4b27-9e7c-0c4548a833b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "0e277f0e-9f58-4423-9f46-9079931a5c29" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084634Z:0e277f0e-9f58-4423-9f46-9079931a5c29" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:33 GMT" + ], + "Content-Length": [ + "469" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:33.5966667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:33.5966667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"1\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2392dfda-2fa9-4b27-9e7c-0c4548a833b7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "2392dfda-2fa9-4b27-9e7c-0c4548a833b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "3b47de51-b9ae-4147-9391-00d13942cc72" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084635Z:3b47de51-b9ae-4147-9391-00d13942cc72" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:35 GMT" + ], + "Content-Length": [ + "469" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:33.5966667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:35.4533333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"2\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "61f6c29b-a099-4c25-9661-ffec31845b02" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "61f6c29b-a099-4c25-9661-ffec31845b02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "944943cb-87d2-456e-8efd-5bbe53216113" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084636Z:944943cb-87d2-456e-8efd-5bbe53216113" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:36 GMT" + ], + "Content-Length": [ + "469" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:33.5966667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:35.4533333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"2\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f1ba7bdd-2fbe-4efc-91a9-ec13bb1ce98b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f1ba7bdd-2fbe-4efc-91a9-ec13bb1ce98b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "51241eb1-e5cf-4581-a9d4-084004791728" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084640Z:51241eb1-e5cf-4581-a9d4-084004791728" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:40 GMT" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"properties\": {\r\n \"value\": \"1\",\r\n \"description\": \"Hello\",\r\n \"isEncrypted\": false\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c517ecef-cdaf-460e-8d0f-77d80dfe6078" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "143" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31" + ], + "x-ms-request-id": [ + "c517ecef-cdaf-460e-8d0f-77d80dfe6078" + ], + "x-ms-location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31" + ], + "ocp-location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "916a3101-789b-487f-8acc-8bc5012def96" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084633Z:916a3101-789b-487f-8acc-8bc5012def96" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:33 GMT" + ], + "Content-Length": [ + "469" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:33.5966667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:33.5966667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"1\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"properties\": {\r\n \"value\": \"2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2392dfda-2fa9-4b27-9e7c-0c4548a833b7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "87" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "2392dfda-2fa9-4b27-9e7c-0c4548a833b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "08c04b7e-d523-4fd5-b6c6-f93d1288fe8c" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084635Z:08c04b7e-d523-4fd5-b6c6-f93d1288fe8c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:34 GMT" + ], + "Content-Length": [ + "469" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:33.5966667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:35.4533333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"2\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "13a05e06-460e-43a6-a4bc-f354e52acf64" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "13a05e06-460e-43a6-a4bc-f354e52acf64" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "00c601e3-6056-4703-afeb-c0e5a502a1cb" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084640Z:00c601e3-6056-4703-afeb-c0e5a502a1cb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:39 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f" + } +} \ No newline at end of file diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestJsonInDictValueVariable.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestJsonInDictValueVariable.json new file mode 100644 index 000000000000..26c87b5e5285 --- /dev/null +++ b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestJsonInDictValueVariable.json @@ -0,0 +1,719 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "407266f4-5647-4826-ab75-60892a274ca0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ocp-automation-accountid": [ + "1f2cbd06-83a6-470d-b1bc-af146f663017" + ], + "x-ms-request-id": [ + "407266f4-5647-4826-ab75-60892a274ca0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "7cc0a5a6-d1a9-4ce4-8b2c-9edf35cef01c" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084643Z:7cc0a5a6-d1a9-4ce4-8b2c-9edf35cef01c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:43 GMT" + ], + "Content-Length": [ + "624" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-automation-0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"etag\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"family\": null,\r\n \"capacity\": null\r\n },\r\n \"state\": \"Ok\",\r\n \"RegistrationUrl\": \"https://1f2cbd06-83a6-470d-b1bc-af146f663017.agentsvc.eus.azure-automation.net/accounts/1f2cbd06-83a6-470d-b1bc-af146f663017\",\r\n \"creationTime\": \"2021-02-26T15:25:27.07+08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2021-02-26T15:25:27.07+08:00\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5EaWN0VmFsdWU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6ae9c6e6-d15b-497a-9efe-1fccfb8a210e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6ae9c6e6-d15b-497a-9efe-1fccfb8a210e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "dc9a867f-a7b7-4d64-ad71-63329ca3955d" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084643Z:dc9a867f-a7b7-4d64-ad71-63329ca3955d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:43 GMT" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5EaWN0VmFsdWU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "41ae3e0a-523e-4982-b992-2706ec688174" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "41ae3e0a-523e-4982-b992-2706ec688174" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "041c39a2-94c5-4545-8097-7719617b03f8" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084645Z:041c39a2-94c5-4545-8097-7719617b03f8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:44 GMT" + ], + "Content-Length": [ + "507" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"JsonInDictValue\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:44.1666667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:44.1666667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"sub-value\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5EaWN0VmFsdWU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a61b0fbc-4ca2-484c-9670-346ece9f31a6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a61b0fbc-4ca2-484c-9670-346ece9f31a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "a5c5fc58-fcd8-41f3-b8ad-e56ba13c1127" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084645Z:a5c5fc58-fcd8-41f3-b8ad-e56ba13c1127" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:44 GMT" + ], + "Content-Length": [ + "507" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue\",\r\n \"name\": \"JsonInDictValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:44.1666667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:44.1666667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"sub-value\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5EaWN0VmFsdWU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a61b0fbc-4ca2-484c-9670-346ece9f31a6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a61b0fbc-4ca2-484c-9670-346ece9f31a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "5f527be0-4f18-49a6-aefb-90354149efb9" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084646Z:5f527be0-4f18-49a6-aefb-90354149efb9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:46 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue\",\r\n \"name\": \"JsonInDictValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:44.1666667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:46.34+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"0\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5EaWN0VmFsdWU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d4b735ab-3115-452a-8f0d-3586aad55466" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d4b735ab-3115-452a-8f0d-3586aad55466" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "629e7ad8-afd0-43ab-84f3-02a450cac38d" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084647Z:629e7ad8-afd0-43ab-84f3-02a450cac38d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:46 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue\",\r\n \"name\": \"JsonInDictValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:44.1666667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:46.34+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"0\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5EaWN0VmFsdWU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4cad716e-171f-4643-8845-1c93888b3e12" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4cad716e-171f-4643-8845-1c93888b3e12" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "4779fdb2-cb30-422c-97ac-734bde25ad44" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084649Z:4779fdb2-cb30-422c-97ac-734bde25ad44" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:49 GMT" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5EaWN0VmFsdWU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"name\": \"JsonInDictValue\",\r\n \"properties\": {\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"sub-value\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\",\r\n \"isEncrypted\": false\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6ae9c6e6-d15b-497a-9efe-1fccfb8a210e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "192" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue?api-version=2015-10-31" + ], + "x-ms-request-id": [ + "6ae9c6e6-d15b-497a-9efe-1fccfb8a210e" + ], + "x-ms-location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue?api-version=2015-10-31" + ], + "ocp-location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue?api-version=2015-10-31" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "631232c7-2db6-4e92-a54b-1b537ed6f338" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084644Z:631232c7-2db6-4e92-a54b-1b537ed6f338" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:44 GMT" + ], + "Content-Length": [ + "507" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"JsonInDictValue\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:44.1666667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:44.1666667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"sub-value\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5EaWN0VmFsdWU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"name\": \"JsonInDictValue\",\r\n \"properties\": {\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"0\\\\\\\"}\\\"}\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a61b0fbc-4ca2-484c-9670-346ece9f31a6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "118" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a61b0fbc-4ca2-484c-9670-346ece9f31a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "3ea33c93-6962-429c-a2b8-66f909e57e7f" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084646Z:3ea33c93-6962-429c-a2b8-66f909e57e7f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:45 GMT" + ], + "Content-Length": [ + "494" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue\",\r\n \"name\": \"JsonInDictValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:44.1666667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:46.34+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"0\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5EaWN0VmFsdWU/YXBpLXZlcnNpb249MjAxNS0xMC0zMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "84948f54-8340-4af2-b1f9-3bbc1f102cf2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "84948f54-8340-4af2-b1f9-3bbc1f102cf2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "4367a0f6-3c24-4974-a60f-a69276bf2e74" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084649Z:4367a0f6-3c24-4974-a60f-a69276bf2e74" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:48 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f" + } +} \ No newline at end of file diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestMultiLevelDictVariable.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestMultiLevelDictVariable.json new file mode 100644 index 000000000000..112ba655dcda --- /dev/null +++ b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestMultiLevelDictVariable.json @@ -0,0 +1,719 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "746cfde3-545f-427e-8e46-31ade8f857e1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ocp-automation-accountid": [ + "1f2cbd06-83a6-470d-b1bc-af146f663017" + ], + "x-ms-request-id": [ + "746cfde3-545f-427e-8e46-31ade8f857e1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "4244c9bd-b46a-46bb-8156-676915892867" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084556Z:4244c9bd-b46a-46bb-8156-676915892867" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:45:56 GMT" + ], + "Content-Length": [ + "624" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-automation-0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"etag\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"family\": null,\r\n \"capacity\": null\r\n },\r\n \"state\": \"Ok\",\r\n \"RegistrationUrl\": \"https://1f2cbd06-83a6-470d-b1bc-af146f663017.agentsvc.eus.azure-automation.net/accounts/1f2cbd06-83a6-470d-b1bc-af146f663017\",\r\n \"creationTime\": \"2021-02-26T15:25:27.07+08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2021-02-26T15:25:27.07+08:00\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9NdWx0aUxldmVsRGljdD9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "35743461-7c01-4e01-b8b1-5959ea460711" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "35743461-7c01-4e01-b8b1-5959ea460711" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "55cc3fe9-54ce-4dc7-804e-40a72b3ca76c" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084557Z:55cc3fe9-54ce-4dc7-804e-40a72b3ca76c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:45:56 GMT" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9NdWx0aUxldmVsRGljdD9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "622e5124-133f-4fc5-a5bf-c28ab59a0d19" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "622e5124-133f-4fc5-a5bf-c28ab59a0d19" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "93e7a6f5-077f-4b7f-b918-4ffac2ee781f" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084559Z:93e7a6f5-077f-4b7f-b918-4ffac2ee781f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:45:58 GMT" + ], + "Content-Length": [ + "479" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict\",\r\n \"name\": \"MultiLevelDict\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:45:58.25+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:45:58.25+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":\\\"subvalue\\\"}}\",\r\n \"description\": \"MultiLevelDict\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9NdWx0aUxldmVsRGljdD9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9e1566e9-d1f9-4135-9412-a51a3862cc63" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "9e1566e9-d1f9-4135-9412-a51a3862cc63" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "d41ce3f8-673b-461c-944f-606e81980cf7" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084601Z:d41ce3f8-673b-461c-944f-606e81980cf7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:01 GMT" + ], + "Content-Length": [ + "479" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict\",\r\n \"name\": \"MultiLevelDict\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:45:58.25+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:45:58.25+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":\\\"subvalue\\\"}}\",\r\n \"description\": \"MultiLevelDict\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9NdWx0aUxldmVsRGljdD9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9e1566e9-d1f9-4135-9412-a51a3862cc63" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "9e1566e9-d1f9-4135-9412-a51a3862cc63" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "a2e95760-a613-4dae-badd-431976fcef02" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084602Z:a2e95760-a613-4dae-badd-431976fcef02" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:02 GMT" + ], + "Content-Length": [ + "498" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict\",\r\n \"name\": \"MultiLevelDict\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:45:58.25+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:02.1766667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":{\\\"3rdkey\\\":\\\"3rd-value\\\"}}}\",\r\n \"description\": \"MultiLevelDict\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9NdWx0aUxldmVsRGljdD9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b18e083d-878d-48b2-992a-bc9c54e07614" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "b18e083d-878d-48b2-992a-bc9c54e07614" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "84281c47-e4e6-45b4-acdc-356bd75353c7" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084604Z:84281c47-e4e6-45b4-acdc-356bd75353c7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:04 GMT" + ], + "Content-Length": [ + "498" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict\",\r\n \"name\": \"MultiLevelDict\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:45:58.25+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:02.1766667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":{\\\"3rdkey\\\":\\\"3rd-value\\\"}}}\",\r\n \"description\": \"MultiLevelDict\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9NdWx0aUxldmVsRGljdD9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "67272943-df79-4083-b1cd-95adf9083206" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "67272943-df79-4083-b1cd-95adf9083206" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "c9109301-13a9-41f4-89ea-4f582ce83f44" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084608Z:c9109301-13a9-41f4-89ea-4f582ce83f44" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:08 GMT" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9NdWx0aUxldmVsRGljdD9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"name\": \"MultiLevelDict\",\r\n \"properties\": {\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":\\\"subvalue\\\"}}\",\r\n \"description\": \"MultiLevelDict\",\r\n \"isEncrypted\": false\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "35743461-7c01-4e01-b8b1-5959ea460711" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "175" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict?api-version=2015-10-31" + ], + "x-ms-request-id": [ + "35743461-7c01-4e01-b8b1-5959ea460711" + ], + "x-ms-location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict?api-version=2015-10-31" + ], + "ocp-location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict?api-version=2015-10-31" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "19f22c7d-8232-4ffd-a5cf-f88322fe4047" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084558Z:19f22c7d-8232-4ffd-a5cf-f88322fe4047" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:45:57 GMT" + ], + "Content-Length": [ + "479" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict\",\r\n \"name\": \"MultiLevelDict\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:45:58.25+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:45:58.25+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":\\\"subvalue\\\"}}\",\r\n \"description\": \"MultiLevelDict\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9NdWx0aUxldmVsRGljdD9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"name\": \"MultiLevelDict\",\r\n \"properties\": {\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":{\\\"3rdkey\\\":\\\"3rd-value\\\"}}}\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9e1566e9-d1f9-4135-9412-a51a3862cc63" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "124" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "9e1566e9-d1f9-4135-9412-a51a3862cc63" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "03454fff-092a-4144-8e58-ed95e87e538d" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084602Z:03454fff-092a-4144-8e58-ed95e87e538d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:02 GMT" + ], + "Content-Length": [ + "498" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict\",\r\n \"name\": \"MultiLevelDict\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:45:58.25+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:02.1766667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":{\\\"3rdkey\\\":\\\"3rd-value\\\"}}}\",\r\n \"description\": \"MultiLevelDict\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9NdWx0aUxldmVsRGljdD9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b6f44864-b256-4f52-8a9a-aec7a2abfb71" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "b6f44864-b256-4f52-8a9a-aec7a2abfb71" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "b10c8421-71ad-4f90-969f-721d23bc3d10" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084608Z:b10c8421-71ad-4f90-969f-721d23bc3d10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:46:07 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f" + } +} \ No newline at end of file diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestNormalHashTableVariable.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestNormalHashTableVariable.json index 47a2a8032ebb..7332771917ed 100644 --- a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestNormalHashTableVariable.json +++ b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestNormalHashTableVariable.json @@ -7,7 +7,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "57e99865-c5f1-423b-92a1-36a48d9856d8" + "a3a0af79-c684-4cb2-a2d2-3bf703b49f9d" ], "Accept-Language": [ "en-US" @@ -30,7 +30,7 @@ "1f2cbd06-83a6-470d-b1bc-af146f663017" ], "x-ms-request-id": [ - "57e99865-c5f1-423b-92a1-36a48d9856d8" + "a3a0af79-c684-4cb2-a2d2-3bf703b49f9d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -48,16 +48,16 @@ "11993" ], "x-ms-correlation-request-id": [ - "7ddfc600-cd3a-457a-8f77-91500055beee" + "804f57d8-e870-421a-a18d-a16914761e43" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083147Z:7ddfc600-cd3a-457a-8f77-91500055beee" + "SOUTHEASTASIA:20210226T084611Z:804f57d8-e870-421a-a18d-a16914761e43" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:31:46 GMT" + "Fri, 26 Feb 2021 08:46:11 GMT" ], "Content-Length": [ "624" @@ -79,7 +79,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e78d2095-c83d-4931-9428-9027bc15cca5" + "cdc6e57c-224e-4cb5-96a8-c58865125041" ], "Accept-Language": [ "en-US" @@ -99,7 +99,7 @@ "no-cache" ], "x-ms-request-id": [ - "e78d2095-c83d-4931-9428-9027bc15cca5" + "cdc6e57c-224e-4cb5-96a8-c58865125041" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -114,19 +114,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" + "11994" ], "x-ms-correlation-request-id": [ - "6db7fd0c-5320-4a06-aed2-65f76e316c82" + "c107e310-4490-4fe9-91a1-26cbf849f3d9" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083148Z:6db7fd0c-5320-4a06-aed2-65f76e316c82" + "SOUTHEASTASIA:20210226T084612Z:c107e310-4490-4fe9-91a1-26cbf849f3d9" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:31:47 GMT" + "Fri, 26 Feb 2021 08:46:11 GMT" ], "Content-Length": [ "51" @@ -148,7 +148,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "fe0d7531-15da-4eff-af8e-063f8491f1da" + "610b7e53-e3f7-478d-bcfc-aa010dd16c19" ], "Accept-Language": [ "en-US" @@ -168,7 +168,7 @@ "no-cache" ], "x-ms-request-id": [ - "fe0d7531-15da-4eff-af8e-063f8491f1da" + "610b7e53-e3f7-478d-bcfc-aa010dd16c19" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -186,19 +186,19 @@ "11994" ], "x-ms-correlation-request-id": [ - "59b3b4ac-4a90-46c2-9c8c-0aa752e525f9" + "9b846c37-810c-4bed-b708-824f6bc6ba01" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083149Z:59b3b4ac-4a90-46c2-9c8c-0aa752e525f9" + "SOUTHEASTASIA:20210226T084614Z:9b846c37-810c-4bed-b708-824f6bc6ba01" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:31:48 GMT" + "Fri, 26 Feb 2021 08:46:14 GMT" ], "Content-Length": [ - "475" + "485" ], "Content-Type": [ "application/json; charset=utf-8" @@ -207,7 +207,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"NormalHashTable\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:31:48.71+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:31:48.71+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"value0\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"NormalHashTable\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:12.8833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:12.8833333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"value0\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -217,7 +217,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d28e2288-6544-4028-912f-5957395a5f19" + "0a3f94c0-5e03-40a8-b135-0fd3a84870c0" ], "Accept-Language": [ "en-US" @@ -237,7 +237,7 @@ "no-cache" ], "x-ms-request-id": [ - "d28e2288-6544-4028-912f-5957395a5f19" + "0a3f94c0-5e03-40a8-b135-0fd3a84870c0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -255,19 +255,19 @@ "11992" ], "x-ms-correlation-request-id": [ - "deaaddf8-e6e7-403a-ae1d-275f0879e13e" + "7e453a5c-e5dd-407e-b26b-96cd50ea7d73" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083150Z:deaaddf8-e6e7-403a-ae1d-275f0879e13e" + "SOUTHEASTASIA:20210226T084616Z:7e453a5c-e5dd-407e-b26b-96cd50ea7d73" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:31:50 GMT" + "Fri, 26 Feb 2021 08:46:16 GMT" ], "Content-Length": [ - "475" + "485" ], "Content-Type": [ "application/json; charset=utf-8" @@ -276,7 +276,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:31:48.71+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:31:48.71+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"value0\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:12.8833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:12.8833333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"value0\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -286,7 +286,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d28e2288-6544-4028-912f-5957395a5f19" + "0a3f94c0-5e03-40a8-b135-0fd3a84870c0" ], "Accept-Language": [ "en-US" @@ -306,7 +306,7 @@ "no-cache" ], "x-ms-request-id": [ - "d28e2288-6544-4028-912f-5957395a5f19" + "0a3f94c0-5e03-40a8-b135-0fd3a84870c0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,19 +324,19 @@ "11991" ], "x-ms-correlation-request-id": [ - "6c20eca9-5a10-4ca2-a7ae-6c9d1e195485" + "7ae87c23-ae82-4b04-9754-324efbf67760" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083151Z:6c20eca9-5a10-4ca2-a7ae-6c9d1e195485" + "SOUTHEASTASIA:20210226T084617Z:7ae87c23-ae82-4b04-9754-324efbf67760" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:31:51 GMT" + "Fri, 26 Feb 2021 08:46:17 GMT" ], "Content-Length": [ - "480" + "485" ], "Content-Type": [ "application/json; charset=utf-8" @@ -345,7 +345,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:31:48.71+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:31:50.7066667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:12.8833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:17.2933333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -355,7 +355,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "18ea2222-a901-4901-856e-897b9c8de738" + "691f5d94-6487-4b81-851f-b03af2770c46" ], "Accept-Language": [ "en-US" @@ -375,7 +375,7 @@ "no-cache" ], "x-ms-request-id": [ - "18ea2222-a901-4901-856e-897b9c8de738" + "691f5d94-6487-4b81-851f-b03af2770c46" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -390,22 +390,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" + "11991" ], "x-ms-correlation-request-id": [ - "8773bea4-9a3c-4e3c-9870-6d43fadd1664" + "c80fd8a5-2f02-43f5-92ee-b27d2f058ac7" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083151Z:8773bea4-9a3c-4e3c-9870-6d43fadd1664" + "SOUTHEASTASIA:20210226T084618Z:c80fd8a5-2f02-43f5-92ee-b27d2f058ac7" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:31:51 GMT" + "Fri, 26 Feb 2021 08:46:18 GMT" ], "Content-Length": [ - "480" + "485" ], "Content-Type": [ "application/json; charset=utf-8" @@ -414,7 +414,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:31:48.71+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:31:50.7066667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:12.8833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:17.2933333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -424,7 +424,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e46cbb58-c6d6-499a-aa93-f88f84375d32" + "c7a56402-699d-4f10-851c-7867035a3b26" ], "Accept-Language": [ "en-US" @@ -444,7 +444,7 @@ "no-cache" ], "x-ms-request-id": [ - "e46cbb58-c6d6-499a-aa93-f88f84375d32" + "c7a56402-699d-4f10-851c-7867035a3b26" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -459,19 +459,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" + "11991" ], "x-ms-correlation-request-id": [ - "d2e23ac8-3b6e-4cc9-baf4-216a3e790c53" + "75a0d97e-b4ff-47a6-ad20-11ffc5dde9e1" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083155Z:d2e23ac8-3b6e-4cc9-baf4-216a3e790c53" + "SOUTHEASTASIA:20210226T084622Z:75a0d97e-b4ff-47a6-ad20-11ffc5dde9e1" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:31:55 GMT" + "Fri, 26 Feb 2021 08:46:21 GMT" ], "Content-Length": [ "51" @@ -493,7 +493,7 @@ "RequestBody": "{\r\n \"name\": \"NormalHashTable\",\r\n \"properties\": {\r\n \"value\": \"{\\\"key0\\\":\\\"value0\\\"}\",\r\n \"description\": \"NormalHashTableVariable\",\r\n \"isEncrypted\": false\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "e78d2095-c83d-4931-9428-9027bc15cca5" + "cdc6e57c-224e-4cb5-96a8-c58865125041" ], "Accept-Language": [ "en-US" @@ -522,7 +522,7 @@ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable?api-version=2015-10-31" ], "x-ms-request-id": [ - "e78d2095-c83d-4931-9428-9027bc15cca5" + "cdc6e57c-224e-4cb5-96a8-c58865125041" ], "x-ms-location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable?api-version=2015-10-31" @@ -546,19 +546,19 @@ "1198" ], "x-ms-correlation-request-id": [ - "6cd1854e-12ff-4360-86fe-63f9bb18a35b" + "d1e79403-c37a-411f-8fcd-861bcdc937bf" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083148Z:6cd1854e-12ff-4360-86fe-63f9bb18a35b" + "SOUTHEASTASIA:20210226T084613Z:d1e79403-c37a-411f-8fcd-861bcdc937bf" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:31:47 GMT" + "Fri, 26 Feb 2021 08:46:12 GMT" ], "Content-Length": [ - "475" + "485" ], "Content-Type": [ "application/json; charset=utf-8" @@ -567,7 +567,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:31:48.71+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:31:48.71+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"value0\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:12.8833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:12.8833333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"value0\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", "StatusCode": 201 }, { @@ -577,7 +577,7 @@ "RequestBody": "{\r\n \"name\": \"NormalHashTable\",\r\n \"properties\": {\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "d28e2288-6544-4028-912f-5957395a5f19" + "0a3f94c0-5e03-40a8-b135-0fd3a84870c0" ], "Accept-Language": [ "en-US" @@ -603,7 +603,7 @@ "no-cache" ], "x-ms-request-id": [ - "d28e2288-6544-4028-912f-5957395a5f19" + "0a3f94c0-5e03-40a8-b135-0fd3a84870c0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -618,22 +618,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1196" ], "x-ms-correlation-request-id": [ - "04dd9f5c-a4bd-4057-80b4-d74bd4f2f3fb" + "c812bf63-bee1-4ecf-a3cd-65592695013e" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083150Z:04dd9f5c-a4bd-4057-80b4-d74bd4f2f3fb" + "SOUTHEASTASIA:20210226T084617Z:c812bf63-bee1-4ecf-a3cd-65592695013e" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:31:50 GMT" + "Fri, 26 Feb 2021 08:46:16 GMT" ], "Content-Length": [ - "480" + "485" ], "Content-Type": [ "application/json; charset=utf-8" @@ -642,7 +642,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:31:48.71+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:31:50.7066667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:12.8833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:17.2933333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -652,7 +652,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "12436e51-bdef-4c7f-a7b6-9d720e9a0baf" + "b3ea8896-173c-4f83-9704-2206c33f62e3" ], "Accept-Language": [ "en-US" @@ -672,7 +672,7 @@ "no-cache" ], "x-ms-request-id": [ - "12436e51-bdef-4c7f-a7b6-9d720e9a0baf" + "b3ea8896-173c-4f83-9704-2206c33f62e3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -690,16 +690,16 @@ "14998" ], "x-ms-correlation-request-id": [ - "981d173b-1eda-46e5-b62b-37cf70c9bc79" + "18ae203f-a364-48a5-813e-3f7c351c4bd2" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083155Z:981d173b-1eda-46e5-b62b-37cf70c9bc79" + "SOUTHEASTASIA:20210226T084622Z:18ae203f-a364-48a5-813e-3f7c351c4bd2" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:31:55 GMT" + "Fri, 26 Feb 2021 08:46:21 GMT" ], "Expires": [ "-1" diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestStringVariable.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestStringVariable.json new file mode 100644 index 000000000000..f91fc655f10d --- /dev/null +++ b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestStringVariable.json @@ -0,0 +1,719 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eb15b78d-c7ef-468b-a2c9-e5fc11558eef" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ocp-automation-accountid": [ + "1f2cbd06-83a6-470d-b1bc-af146f663017" + ], + "x-ms-request-id": [ + "eb15b78d-c7ef-468b-a2c9-e5fc11558eef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "ad11c6d4-0d1d-444d-b5ce-c6d447df5a33" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084703Z:ad11c6d4-0d1d-444d-b5ce-c6d447df5a33" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:47:03 GMT" + ], + "Content-Length": [ + "624" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"test-automation-0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"etag\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"family\": null,\r\n \"capacity\": null\r\n },\r\n \"state\": \"Ok\",\r\n \"RegistrationUrl\": \"https://1f2cbd06-83a6-470d-b1bc-af146f663017.agentsvc.eus.azure-automation.net/accounts/1f2cbd06-83a6-470d-b1bc-af146f663017\",\r\n \"creationTime\": \"2021-02-26T15:25:27.07+08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2021-02-26T15:25:27.07+08:00\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9TdHJpbmdWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f8c623b2-9f84-44e9-886a-e528c0cad3a8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f8c623b2-9f84-44e9-886a-e528c0cad3a8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "57973d23-38d7-44df-ab39-b6c4eb7d61e4" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084704Z:57973d23-38d7-44df-ab39-b6c4eb7d61e4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:47:03 GMT" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9TdHJpbmdWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6f8158ab-7bc7-475f-bebb-4f0a80326343" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6f8158ab-7bc7-475f-bebb-4f0a80326343" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "b55c735a-6f03-43c2-8205-068fd480a6a8" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084705Z:b55c735a-6f03-43c2-8205-068fd480a6a8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:47:05 GMT" + ], + "Content-Length": [ + "443" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue\",\r\n \"name\": \"StringValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:47:04.59+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:47:04.59+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9TdHJpbmdWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "240914e6-c1a2-44aa-8f58-b3ad7a83c77b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "240914e6-c1a2-44aa-8f58-b3ad7a83c77b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "ede8313c-a3ff-459a-b4e1-341ab520dbd1" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084705Z:ede8313c-a3ff-459a-b4e1-341ab520dbd1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:47:05 GMT" + ], + "Content-Length": [ + "443" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue\",\r\n \"name\": \"StringValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:47:04.59+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:47:04.59+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9TdHJpbmdWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "240914e6-c1a2-44aa-8f58-b3ad7a83c77b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "240914e6-c1a2-44aa-8f58-b3ad7a83c77b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "d556756c-68e3-46ee-a2a1-8888f2869330" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084707Z:d556756c-68e3-46ee-a2a1-8888f2869330" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:47:07 GMT" + ], + "Content-Length": [ + "455" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue\",\r\n \"name\": \"StringValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:47:04.59+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:47:06.8666667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValueChanged\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9TdHJpbmdWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a8b27ec0-27e2-4227-9e7d-d24c03350781" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a8b27ec0-27e2-4227-9e7d-d24c03350781" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "90584c73-5a01-4e49-be30-dd2596e424a8" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084707Z:90584c73-5a01-4e49-be30-dd2596e424a8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:47:07 GMT" + ], + "Content-Length": [ + "455" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue\",\r\n \"name\": \"StringValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:47:04.59+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:47:06.8666667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValueChanged\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9TdHJpbmdWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "29ef0f8e-8839-4974-b2ff-8969de6ab956" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "29ef0f8e-8839-4974-b2ff-8969de6ab956" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "cbdb0bf4-baea-40c4-acd9-c79eb998176e" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084712Z:cbdb0bf4-baea-40c4-acd9-c79eb998176e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:47:12 GMT" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9TdHJpbmdWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"name\": \"StringValue\",\r\n \"properties\": {\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\",\r\n \"isEncrypted\": false\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f8c623b2-9f84-44e9-886a-e528c0cad3a8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "142" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue?api-version=2015-10-31" + ], + "x-ms-request-id": [ + "f8c623b2-9f84-44e9-886a-e528c0cad3a8" + ], + "x-ms-location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue?api-version=2015-10-31" + ], + "ocp-location": [ + "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue?api-version=2015-10-31" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "01c7755c-673e-4962-8ea6-7307df5b4e3a" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084704Z:01c7755c-673e-4962-8ea6-7307df5b4e3a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:47:04 GMT" + ], + "Content-Length": [ + "443" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue\",\r\n \"name\": \"StringValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:47:04.59+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:47:04.59+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9TdHJpbmdWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"name\": \"StringValue\",\r\n \"properties\": {\r\n \"value\": \"\\\"StringValueChanged\\\"\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "240914e6-c1a2-44aa-8f58-b3ad7a83c77b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "93" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "240914e6-c1a2-44aa-8f58-b3ad7a83c77b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "89763b35-5779-4af3-b8f5-84c3db3b2a2d" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084707Z:89763b35-5779-4af3-b8f5-84c3db3b2a2d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:47:06 GMT" + ], + "Content-Length": [ + "455" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue\",\r\n \"name\": \"StringValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:47:04.59+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:47:06.8666667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValueChanged\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue?api-version=2015-10-31", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9TdHJpbmdWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ef22b8d7-b2c0-48ab-87e0-a3a3feb0a492" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ef22b8d7-b2c0-48ab-87e0-a3a3feb0a492" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "e805c9b6-b1b6-42f7-b015-2bc42a3a7c81" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210226T084711Z:e805c9b6-b1b6-42f7-b015-2bc42a3a7c81" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 26 Feb 2021 08:47:11 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f" + } +} \ No newline at end of file From 86d95cf5ae8be97ee6ffe0f2d40495a60be0bc35 Mon Sep 17 00:00:00 2001 From: wyunchi-ms Date: Fri, 26 Feb 2021 17:37:46 +0800 Subject: [PATCH 5/6] Update test case and fix issue for int --- .../TestArrayVariable.json | 132 ++-- .../TestE2EVariableAsset.json | 719 ------------------ .../TestFloatVariable.json | 130 ++-- .../TestIntVariable.json | 134 ++-- .../TestJsonInDictValueVariable.json | 136 ++-- .../TestJsonInValueVariable.json | 719 ------------------ .../TestMultiLevelDictVariable.json | 128 ++-- .../TestNormalHashTableVariable.json | 136 ++-- .../TestStringVariable.json | 144 ++-- 9 files changed, 470 insertions(+), 1908 deletions(-) delete mode 100644 src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestE2EVariableAsset.json delete mode 100644 src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestJsonInValueVariable.json diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestArrayVariable.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestArrayVariable.json index d5b828876bbc..ad9199875e50 100644 --- a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestArrayVariable.json +++ b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestArrayVariable.json @@ -7,7 +7,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "14f6b426-471b-4169-9b16-3f5c3d1f8d66" + "7c0d805c-0f61-433b-8625-884444045ed6" ], "Accept-Language": [ "en-US" @@ -30,7 +30,7 @@ "1f2cbd06-83a6-470d-b1bc-af146f663017" ], "x-ms-request-id": [ - "14f6b426-471b-4169-9b16-3f5c3d1f8d66" + "7c0d805c-0f61-433b-8625-884444045ed6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -45,19 +45,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" + "11989" ], "x-ms-correlation-request-id": [ - "e0d172c6-8109-4864-bb38-2650a6eed33b" + "cb26eb2d-e8d7-4a64-986c-5c4c3cf93d1b" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084652Z:e0d172c6-8109-4864-bb38-2650a6eed33b" + "SOUTHEASTASIA:20210226T093658Z:cb26eb2d-e8d7-4a64-986c-5c4c3cf93d1b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:51 GMT" + "Fri, 26 Feb 2021 09:36:58 GMT" ], "Content-Length": [ "624" @@ -79,7 +79,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "aeabe5cc-4c14-4a00-b8b0-14f58207ec87" + "9fcf88b0-25fc-4ae6-85c5-1d586c71dace" ], "Accept-Language": [ "en-US" @@ -99,7 +99,7 @@ "no-cache" ], "x-ms-request-id": [ - "aeabe5cc-4c14-4a00-b8b0-14f58207ec87" + "9fcf88b0-25fc-4ae6-85c5-1d586c71dace" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -114,19 +114,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11985" + "11987" ], "x-ms-correlation-request-id": [ - "d8bf7048-a381-4b77-960a-f3baa2030201" + "059cde58-26a3-4fef-bb1d-628627af4212" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084652Z:d8bf7048-a381-4b77-960a-f3baa2030201" + "SOUTHEASTASIA:20210226T093700Z:059cde58-26a3-4fef-bb1d-628627af4212" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:52 GMT" + "Fri, 26 Feb 2021 09:36:59 GMT" ], "Content-Length": [ "51" @@ -148,7 +148,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d0807e5f-7938-4921-858c-5a5b3b0548dc" + "193df955-1e08-4416-aa77-113013e1a90d" ], "Accept-Language": [ "en-US" @@ -168,7 +168,7 @@ "no-cache" ], "x-ms-request-id": [ - "d0807e5f-7938-4921-858c-5a5b3b0548dc" + "193df955-1e08-4416-aa77-113013e1a90d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -186,16 +186,16 @@ "11991" ], "x-ms-correlation-request-id": [ - "69b8aef2-bd82-436e-abdd-f11e31d5a802" + "18798c30-77e9-45b3-9c29-577beb229e9e" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084654Z:69b8aef2-bd82-436e-abdd-f11e31d5a802" + "SOUTHEASTASIA:20210226T093701Z:18798c30-77e9-45b3-9c29-577beb229e9e" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:53 GMT" + "Fri, 26 Feb 2021 09:37:01 GMT" ], "Content-Length": [ "844" @@ -207,7 +207,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:53.3266667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:53.3266667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:37:01.0533333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:37:01.0533333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -217,7 +217,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ed13d08c-dae6-4477-a3da-447f43d11c2b" + "8d80afe6-a0bb-4046-b1c5-98743bbf9d55" ], "Accept-Language": [ "en-US" @@ -237,7 +237,7 @@ "no-cache" ], "x-ms-request-id": [ - "ed13d08c-dae6-4477-a3da-447f43d11c2b" + "8d80afe6-a0bb-4046-b1c5-98743bbf9d55" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -252,19 +252,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11990" ], "x-ms-correlation-request-id": [ - "6b3ee44a-fe92-43e1-8c96-8c2b58ebbc73" + "b09db698-0f1a-4322-8670-830600ae3b55" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084654Z:6b3ee44a-fe92-43e1-8c96-8c2b58ebbc73" + "SOUTHEASTASIA:20210226T093702Z:b09db698-0f1a-4322-8670-830600ae3b55" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:53 GMT" + "Fri, 26 Feb 2021 09:37:02 GMT" ], "Content-Length": [ "844" @@ -276,7 +276,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:53.3266667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:53.3266667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:37:01.0533333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:37:01.0533333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -286,7 +286,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ed13d08c-dae6-4477-a3da-447f43d11c2b" + "8d80afe6-a0bb-4046-b1c5-98743bbf9d55" ], "Accept-Language": [ "en-US" @@ -306,7 +306,7 @@ "no-cache" ], "x-ms-request-id": [ - "ed13d08c-dae6-4477-a3da-447f43d11c2b" + "8d80afe6-a0bb-4046-b1c5-98743bbf9d55" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -321,22 +321,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" + "11989" ], "x-ms-correlation-request-id": [ - "6b804c0d-efa9-473a-8d09-ce7d9380435c" + "87529c1f-c2bc-432b-be35-ca2717e66f23" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084655Z:6b804c0d-efa9-473a-8d09-ce7d9380435c" + "SOUTHEASTASIA:20210226T093703Z:87529c1f-c2bc-432b-be35-ca2717e66f23" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:55 GMT" + "Fri, 26 Feb 2021 09:37:03 GMT" ], "Content-Length": [ - "748" + "753" ], "Content-Type": [ "application/json; charset=utf-8" @@ -345,7 +345,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:53.3266667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:55.28+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:37:01.0533333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:37:02.9466667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -355,7 +355,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7e237aa6-e3cf-4217-9ca7-f38eddfeb562" + "61488b22-b3be-4b38-8852-2c688fd9cb4c" ], "Accept-Language": [ "en-US" @@ -375,7 +375,7 @@ "no-cache" ], "x-ms-request-id": [ - "7e237aa6-e3cf-4217-9ca7-f38eddfeb562" + "61488b22-b3be-4b38-8852-2c688fd9cb4c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -393,19 +393,19 @@ "11987" ], "x-ms-correlation-request-id": [ - "6e6e9b40-647d-4c8f-9f2e-dcff2468b94d" + "d21d36d1-1972-4244-ad0b-c4290aa0f434" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084656Z:6e6e9b40-647d-4c8f-9f2e-dcff2468b94d" + "SOUTHEASTASIA:20210226T093704Z:d21d36d1-1972-4244-ad0b-c4290aa0f434" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:55 GMT" + "Fri, 26 Feb 2021 09:37:03 GMT" ], "Content-Length": [ - "748" + "753" ], "Content-Type": [ "application/json; charset=utf-8" @@ -414,7 +414,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:53.3266667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:55.28+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:37:01.0533333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:37:02.9466667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -424,7 +424,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f636dbaf-846c-468c-87f3-65d3ad5efe7c" + "28cf23cc-72ab-42a8-8bdd-046b70fc4430" ], "Accept-Language": [ "en-US" @@ -444,7 +444,7 @@ "no-cache" ], "x-ms-request-id": [ - "f636dbaf-846c-468c-87f3-65d3ad5efe7c" + "28cf23cc-72ab-42a8-8bdd-046b70fc4430" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -459,19 +459,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11986" + "11989" ], "x-ms-correlation-request-id": [ - "01c2979e-4fa1-4fb2-91c0-bdb7b27d7c77" + "f7edd17b-363a-4297-af9e-8a826bf9e34d" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084701Z:01c2979e-4fa1-4fb2-91c0-bdb7b27d7c77" + "SOUTHEASTASIA:20210226T093707Z:f7edd17b-363a-4297-af9e-8a826bf9e34d" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:47:00 GMT" + "Fri, 26 Feb 2021 09:37:06 GMT" ], "Content-Length": [ "51" @@ -493,7 +493,7 @@ "RequestBody": "{\r\n \"name\": \"NewArrayVariable\",\r\n \"properties\": {\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\",\r\n \"isEncrypted\": false\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "aeabe5cc-4c14-4a00-b8b0-14f58207ec87" + "9fcf88b0-25fc-4ae6-85c5-1d586c71dace" ], "Accept-Language": [ "en-US" @@ -522,7 +522,7 @@ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31" ], "x-ms-request-id": [ - "aeabe5cc-4c14-4a00-b8b0-14f58207ec87" + "9fcf88b0-25fc-4ae6-85c5-1d586c71dace" ], "x-ms-location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31" @@ -543,19 +543,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1198" ], "x-ms-correlation-request-id": [ - "6f4be367-2694-40ad-953b-31f12f99a672" + "a42c11e1-b8f1-40b5-a101-da521260c6dd" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084653Z:6f4be367-2694-40ad-953b-31f12f99a672" + "SOUTHEASTASIA:20210226T093701Z:a42c11e1-b8f1-40b5-a101-da521260c6dd" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:52 GMT" + "Fri, 26 Feb 2021 09:37:00 GMT" ], "Content-Length": [ "844" @@ -567,7 +567,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:53.3266667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:53.3266667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:37:01.0533333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:37:01.0533333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", "StatusCode": 201 }, { @@ -577,7 +577,7 @@ "RequestBody": "{\r\n \"name\": \"NewArrayVariable\",\r\n \"properties\": {\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "ed13d08c-dae6-4477-a3da-447f43d11c2b" + "8d80afe6-a0bb-4046-b1c5-98743bbf9d55" ], "Accept-Language": [ "en-US" @@ -603,7 +603,7 @@ "no-cache" ], "x-ms-request-id": [ - "ed13d08c-dae6-4477-a3da-447f43d11c2b" + "8d80afe6-a0bb-4046-b1c5-98743bbf9d55" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -618,22 +618,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1196" ], "x-ms-correlation-request-id": [ - "73a7ab6a-0d6a-4a12-9b36-155f00a4c1dc" + "f8676f04-cc79-47fe-9bbe-a7392cff6f5a" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084655Z:73a7ab6a-0d6a-4a12-9b36-155f00a4c1dc" + "SOUTHEASTASIA:20210226T093703Z:f8676f04-cc79-47fe-9bbe-a7392cff6f5a" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:54 GMT" + "Fri, 26 Feb 2021 09:37:03 GMT" ], "Content-Length": [ - "748" + "753" ], "Content-Type": [ "application/json; charset=utf-8" @@ -642,7 +642,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:53.3266667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:55.28+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:37:01.0533333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:37:02.9466667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -652,7 +652,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8cec9718-e8ff-4cc1-9078-9d98f4a43c9c" + "b2b432e6-1c13-4c1e-b63a-41459ed4663a" ], "Accept-Language": [ "en-US" @@ -672,7 +672,7 @@ "no-cache" ], "x-ms-request-id": [ - "8cec9718-e8ff-4cc1-9078-9d98f4a43c9c" + "b2b432e6-1c13-4c1e-b63a-41459ed4663a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -690,16 +690,16 @@ "14997" ], "x-ms-correlation-request-id": [ - "183acd8a-2807-4962-ab8f-392bb4ed1037" + "2021b8ef-042d-41ab-8ff0-64c41bb3a707" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084700Z:183acd8a-2807-4962-ab8f-392bb4ed1037" + "SOUTHEASTASIA:20210226T093707Z:2021b8ef-042d-41ab-8ff0-64c41bb3a707" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:59 GMT" + "Fri, 26 Feb 2021 09:37:06 GMT" ], "Expires": [ "-1" diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestE2EVariableAsset.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestE2EVariableAsset.json deleted file mode 100644 index ba8521c8f846..000000000000 --- a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestE2EVariableAsset.json +++ /dev/null @@ -1,719 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "453734e2-3aed-4575-8bb3-68cfda2b30ea" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "ocp-automation-accountid": [ - "1f2cbd06-83a6-470d-b1bc-af146f663017" - ], - "x-ms-request-id": [ - "453734e2-3aed-4575-8bb3-68cfda2b30ea" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" - ], - "x-ms-correlation-request-id": [ - "029c79d6-c81f-48e7-a623-2648c2dc055a" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083025Z:029c79d6-c81f-48e7-a623-2648c2dc055a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:30:24 GMT" - ], - "Content-Length": [ - "624" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"test-automation-0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"etag\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"family\": null,\r\n \"capacity\": null\r\n },\r\n \"state\": \"Ok\",\r\n \"RegistrationUrl\": \"https://1f2cbd06-83a6-470d-b1bc-af146f663017.agentsvc.eus.azure-automation.net/accounts/1f2cbd06-83a6-470d-b1bc-af146f663017\",\r\n \"creationTime\": \"2021-02-26T15:25:27.07+08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2021-02-26T15:25:27.07+08:00\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "30575b2f-f814-4b05-a56f-8a674364cb20" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "30575b2f-f814-4b05-a56f-8a674364cb20" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "624202e5-da7f-4701-82f7-06bd75878c65" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083025Z:624202e5-da7f-4701-82f7-06bd75878c65" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:30:25 GMT" - ], - "Content-Length": [ - "51" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", - "StatusCode": 404 - }, - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "9483d156-73b1-468f-8893-9aac778f212a" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "9483d156-73b1-468f-8893-9aac778f212a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" - ], - "x-ms-correlation-request-id": [ - "d04c01ae-a595-40db-b4f4-a988e1d82c82" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083027Z:d04c01ae-a595-40db-b4f4-a988e1d82c82" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:30:27 GMT" - ], - "Content-Length": [ - "473" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:25.89+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:25.89+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e1727f51-2e7f-47b5-91fc-a12d6af59b8e" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "e1727f51-2e7f-47b5-91fc-a12d6af59b8e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "54704c4a-a206-4031-a3a9-0b4a33db79dc" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083029Z:54704c4a-a206-4031-a3a9-0b4a33db79dc" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:30:28 GMT" - ], - "Content-Length": [ - "473" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:25.89+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:25.89+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e1727f51-2e7f-47b5-91fc-a12d6af59b8e" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "e1727f51-2e7f-47b5-91fc-a12d6af59b8e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "e2fce80f-78eb-4fba-afcd-317dd6f22dfe" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083032Z:e2fce80f-78eb-4fba-afcd-317dd6f22dfe" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:30:31 GMT" - ], - "Content-Length": [ - "485" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:25.89+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:31.8266667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValueChanged\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "21683f3f-ebca-41fd-b1a9-97ebd1911f70" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "21683f3f-ebca-41fd-b1a9-97ebd1911f70" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" - ], - "x-ms-correlation-request-id": [ - "55ca7bda-adf2-4572-b967-3f78f47b511d" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083032Z:55ca7bda-adf2-4572-b967-3f78f47b511d" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:30:32 GMT" - ], - "Content-Length": [ - "485" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:25.89+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:31.8266667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValueChanged\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "dd81497e-41b0-4b25-9a18-82c5cbf60886" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "dd81497e-41b0-4b25-9a18-82c5cbf60886" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" - ], - "x-ms-correlation-request-id": [ - "06a6e991-6689-4f89-b741-5f95fda3d60a" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083036Z:06a6e991-6689-4f89-b741-5f95fda3d60a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:30:35 GMT" - ], - "Content-Length": [ - "51" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", - "StatusCode": 404 - }, - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"properties\": {\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\",\r\n \"isEncrypted\": false\r\n }\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "30575b2f-f814-4b05-a56f-8a674364cb20" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "157" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31" - ], - "x-ms-request-id": [ - "30575b2f-f814-4b05-a56f-8a674364cb20" - ], - "x-ms-location": [ - "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31" - ], - "ocp-location": [ - "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "db12bde2-dba9-4e65-be75-a9e7d33d91bc" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083026Z:db12bde2-dba9-4e65-be75-a9e7d33d91bc" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:30:25 GMT" - ], - "Content-Length": [ - "473" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:25.89+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:25.89+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", - "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"properties\": {\r\n \"value\": \"\\\"StringValueChanged\\\"\"\r\n }\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e1727f51-2e7f-47b5-91fc-a12d6af59b8e" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "108" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "e1727f51-2e7f-47b5-91fc-a12d6af59b8e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "6f9cfd0a-38db-48f6-992f-2864cecc7cbb" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083032Z:6f9cfd0a-38db-48f6-992f-2864cecc7cbb" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:30:31 GMT" - ], - "Content-Length": [ - "485" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:25.89+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:31.8266667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValueChanged\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9DcmVhdGVOZXdWYXJpYWJsZVdpdGhWYWx1ZT9hcGktdmVyc2lvbj0yMDE1LTEwLTMx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "8499693b-502d-4a36-9dd4-7824918230a0" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "8499693b-502d-4a36-9dd4-7824918230a0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14998" - ], - "x-ms-correlation-request-id": [ - "9718d3a9-4207-47fc-8eed-e6737ed2489a" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083036Z:9718d3a9-4207-47fc-8eed-e6737ed2489a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:30:35 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f" - } -} \ No newline at end of file diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestFloatVariable.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestFloatVariable.json index 4b1153124960..4b402444226f 100644 --- a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestFloatVariable.json +++ b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestFloatVariable.json @@ -7,7 +7,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b19a5c1c-4c52-465f-af9a-119e46cb920f" + "c0420784-4874-4036-9460-f1d3701f2eaf" ], "Accept-Language": [ "en-US" @@ -30,7 +30,7 @@ "1f2cbd06-83a6-470d-b1bc-af146f663017" ], "x-ms-request-id": [ - "b19a5c1c-4c52-465f-af9a-119e46cb920f" + "c0420784-4874-4036-9460-f1d3701f2eaf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -45,19 +45,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11986" + "11992" ], "x-ms-correlation-request-id": [ - "54e185be-afcd-4197-8781-d398fba562ef" + "8ae30a26-9e60-4a99-b43b-a8dc1a8fd798" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T085150Z:54e185be-afcd-4197-8781-d398fba562ef" + "SOUTHEASTASIA:20210226T093624Z:8ae30a26-9e60-4a99-b43b-a8dc1a8fd798" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:51:49 GMT" + "Fri, 26 Feb 2021 09:36:24 GMT" ], "Content-Length": [ "624" @@ -79,7 +79,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4083d494-7ac5-4193-9033-0f2f3396d8eb" + "095edf06-4a06-4e61-a858-a831ee377cf1" ], "Accept-Language": [ "en-US" @@ -99,7 +99,7 @@ "no-cache" ], "x-ms-request-id": [ - "4083d494-7ac5-4193-9033-0f2f3396d8eb" + "095edf06-4a06-4e61-a858-a831ee377cf1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -114,19 +114,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" + "11990" ], "x-ms-correlation-request-id": [ - "96011115-d72f-478a-8378-29a86c19c8ae" + "1fcd15ed-ba76-4a53-ab40-0c1e0692d925" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T085151Z:96011115-d72f-478a-8378-29a86c19c8ae" + "SOUTHEASTASIA:20210226T093625Z:1fcd15ed-ba76-4a53-ab40-0c1e0692d925" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:51:51 GMT" + "Fri, 26 Feb 2021 09:36:25 GMT" ], "Content-Length": [ "51" @@ -148,7 +148,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "58e80b36-1695-4986-8129-7b590b0c4eaa" + "55c16927-f0d4-482a-83ec-b03a1e0cb746" ], "Accept-Language": [ "en-US" @@ -168,7 +168,7 @@ "no-cache" ], "x-ms-request-id": [ - "58e80b36-1695-4986-8129-7b590b0c4eaa" + "55c16927-f0d4-482a-83ec-b03a1e0cb746" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -183,19 +183,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11990" ], "x-ms-correlation-request-id": [ - "4e96dfe7-fa06-40f4-a655-6327a80c3c25" + "a40c565a-0938-450c-8238-683a34bba296" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T085152Z:4e96dfe7-fa06-40f4-a655-6327a80c3c25" + "SOUTHEASTASIA:20210226T093626Z:a40c565a-0938-450c-8238-683a34bba296" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:51:51 GMT" + "Fri, 26 Feb 2021 09:36:26 GMT" ], "Content-Length": [ "451" @@ -207,7 +207,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable\",\r\n \"name\": \"NewFloatVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:51:51.8566667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:51:51.8566667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"1.1\",\r\n \"description\": \"float\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable\",\r\n \"name\": \"NewFloatVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:25.8066667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:25.8066667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"1.1\",\r\n \"description\": \"float\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -217,7 +217,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7b890a17-ad0f-4e43-b8d1-c843ceb3c17f" + "1192c05d-e2d8-4449-9548-b8cab61f902b" ], "Accept-Language": [ "en-US" @@ -237,7 +237,7 @@ "no-cache" ], "x-ms-request-id": [ - "7b890a17-ad0f-4e43-b8d1-c843ceb3c17f" + "1192c05d-e2d8-4449-9548-b8cab61f902b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -255,16 +255,16 @@ "11992" ], "x-ms-correlation-request-id": [ - "14e18b03-1a84-4490-bc0c-49208ba5dc54" + "ffc649be-a18f-4838-8aa8-7935c9b887bc" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T085153Z:14e18b03-1a84-4490-bc0c-49208ba5dc54" + "SOUTHEASTASIA:20210226T093627Z:ffc649be-a18f-4838-8aa8-7935c9b887bc" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:51:53 GMT" + "Fri, 26 Feb 2021 09:36:26 GMT" ], "Content-Length": [ "451" @@ -276,7 +276,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable\",\r\n \"name\": \"NewFloatVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:51:51.8566667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:51:51.8566667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"1.1\",\r\n \"description\": \"float\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable\",\r\n \"name\": \"NewFloatVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:25.8066667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:25.8066667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"1.1\",\r\n \"description\": \"float\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -286,7 +286,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7b890a17-ad0f-4e43-b8d1-c843ceb3c17f" + "1192c05d-e2d8-4449-9548-b8cab61f902b" ], "Accept-Language": [ "en-US" @@ -306,7 +306,7 @@ "no-cache" ], "x-ms-request-id": [ - "7b890a17-ad0f-4e43-b8d1-c843ceb3c17f" + "1192c05d-e2d8-4449-9548-b8cab61f902b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,19 +324,19 @@ "11991" ], "x-ms-correlation-request-id": [ - "2f84b629-837f-400d-946d-3ee7e65c25d9" + "fe30fc84-2b45-4a6b-8ae9-a93baeb40e43" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T085155Z:2f84b629-837f-400d-946d-3ee7e65c25d9" + "SOUTHEASTASIA:20210226T093628Z:fe30fc84-2b45-4a6b-8ae9-a93baeb40e43" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:51:55 GMT" + "Fri, 26 Feb 2021 09:36:27 GMT" ], "Content-Length": [ - "451" + "446" ], "Content-Type": [ "application/json; charset=utf-8" @@ -345,7 +345,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable\",\r\n \"name\": \"NewFloatVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:51:51.8566667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:51:55.0033333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"2.2\",\r\n \"description\": \"float\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable\",\r\n \"name\": \"NewFloatVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:25.8066667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:27.76+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"2.2\",\r\n \"description\": \"float\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -355,7 +355,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "63257a20-596c-4b60-80dd-2d7ee4a9f3a8" + "7cdc0682-3133-4ec5-96db-ba3f3fc6c217" ], "Accept-Language": [ "en-US" @@ -375,7 +375,7 @@ "no-cache" ], "x-ms-request-id": [ - "63257a20-596c-4b60-80dd-2d7ee4a9f3a8" + "7cdc0682-3133-4ec5-96db-ba3f3fc6c217" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -393,19 +393,19 @@ "11989" ], "x-ms-correlation-request-id": [ - "ae67977f-fc21-45da-81f1-dcfd42e9fb06" + "13f0e216-6085-4932-8f86-9874a97424e6" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T085157Z:ae67977f-fc21-45da-81f1-dcfd42e9fb06" + "SOUTHEASTASIA:20210226T093628Z:13f0e216-6085-4932-8f86-9874a97424e6" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:51:57 GMT" + "Fri, 26 Feb 2021 09:36:28 GMT" ], "Content-Length": [ - "451" + "446" ], "Content-Type": [ "application/json; charset=utf-8" @@ -414,7 +414,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable\",\r\n \"name\": \"NewFloatVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:51:51.8566667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:51:55.0033333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"2.2\",\r\n \"description\": \"float\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable\",\r\n \"name\": \"NewFloatVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:25.8066667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:27.76+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"2.2\",\r\n \"description\": \"float\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -424,7 +424,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4f4bf4c2-a3b2-4619-af70-4438b3d9983c" + "37fc0b99-50a3-46c2-a804-a21b99d34963" ], "Accept-Language": [ "en-US" @@ -444,7 +444,7 @@ "no-cache" ], "x-ms-request-id": [ - "4f4bf4c2-a3b2-4619-af70-4438b3d9983c" + "37fc0b99-50a3-46c2-a804-a21b99d34963" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -459,19 +459,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" + "11989" ], "x-ms-correlation-request-id": [ - "0c2eebff-d79a-4c5d-af31-cd34cf15e0b9" + "88e940a1-0601-4cca-a4a7-440f6179f3df" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T085201Z:0c2eebff-d79a-4c5d-af31-cd34cf15e0b9" + "SOUTHEASTASIA:20210226T093632Z:88e940a1-0601-4cca-a4a7-440f6179f3df" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:52:01 GMT" + "Fri, 26 Feb 2021 09:36:32 GMT" ], "Content-Length": [ "51" @@ -493,7 +493,7 @@ "RequestBody": "{\r\n \"name\": \"NewFloatVariable\",\r\n \"properties\": {\r\n \"value\": \"1.1\",\r\n \"description\": \"float\",\r\n \"isEncrypted\": false\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "4083d494-7ac5-4193-9033-0f2f3396d8eb" + "095edf06-4a06-4e61-a858-a831ee377cf1" ], "Accept-Language": [ "en-US" @@ -522,7 +522,7 @@ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable?api-version=2015-10-31" ], "x-ms-request-id": [ - "4083d494-7ac5-4193-9033-0f2f3396d8eb" + "095edf06-4a06-4e61-a858-a831ee377cf1" ], "x-ms-location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable?api-version=2015-10-31" @@ -543,19 +543,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1199" ], "x-ms-correlation-request-id": [ - "97d2fbba-5855-407b-a452-82660be9e051" + "29a2a3a5-ea19-4be4-aa27-5dad853c1bc7" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T085152Z:97d2fbba-5855-407b-a452-82660be9e051" + "SOUTHEASTASIA:20210226T093626Z:29a2a3a5-ea19-4be4-aa27-5dad853c1bc7" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:51:52 GMT" + "Fri, 26 Feb 2021 09:36:25 GMT" ], "Content-Length": [ "451" @@ -567,7 +567,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable\",\r\n \"name\": \"NewFloatVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:51:51.8566667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:51:51.8566667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"1.1\",\r\n \"description\": \"float\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable\",\r\n \"name\": \"NewFloatVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:25.8066667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:25.8066667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"1.1\",\r\n \"description\": \"float\"\r\n }\r\n}", "StatusCode": 201 }, { @@ -577,7 +577,7 @@ "RequestBody": "{\r\n \"name\": \"NewFloatVariable\",\r\n \"properties\": {\r\n \"value\": \"2.2\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "7b890a17-ad0f-4e43-b8d1-c843ceb3c17f" + "1192c05d-e2d8-4449-9548-b8cab61f902b" ], "Accept-Language": [ "en-US" @@ -603,7 +603,7 @@ "no-cache" ], "x-ms-request-id": [ - "7b890a17-ad0f-4e43-b8d1-c843ceb3c17f" + "1192c05d-e2d8-4449-9548-b8cab61f902b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -621,19 +621,19 @@ "1197" ], "x-ms-correlation-request-id": [ - "2bcc2b0a-c54d-46f6-8a4d-35ac88f15a01" + "316a5134-68e0-4836-83c4-8bed5ddf60f0" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T085155Z:2bcc2b0a-c54d-46f6-8a4d-35ac88f15a01" + "SOUTHEASTASIA:20210226T093627Z:316a5134-68e0-4836-83c4-8bed5ddf60f0" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:51:55 GMT" + "Fri, 26 Feb 2021 09:36:27 GMT" ], "Content-Length": [ - "451" + "446" ], "Content-Type": [ "application/json; charset=utf-8" @@ -642,7 +642,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable\",\r\n \"name\": \"NewFloatVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:51:51.8566667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:51:55.0033333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"2.2\",\r\n \"description\": \"float\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewFloatVariable\",\r\n \"name\": \"NewFloatVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:25.8066667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:27.76+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"2.2\",\r\n \"description\": \"float\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -652,7 +652,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d1b33b11-09e0-497f-bc25-26bd32e89f52" + "6f85eecf-9937-423e-9713-42f6da6030ea" ], "Accept-Language": [ "en-US" @@ -672,7 +672,7 @@ "no-cache" ], "x-ms-request-id": [ - "d1b33b11-09e0-497f-bc25-26bd32e89f52" + "6f85eecf-9937-423e-9713-42f6da6030ea" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -687,19 +687,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" + "14998" ], "x-ms-correlation-request-id": [ - "ec67c25b-f31c-4042-865a-6714df6a3541" + "b5bd831a-96ee-4091-9ab1-fc28034a3e43" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T085201Z:ec67c25b-f31c-4042-865a-6714df6a3541" + "SOUTHEASTASIA:20210226T093632Z:b5bd831a-96ee-4091-9ab1-fc28034a3e43" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:52:00 GMT" + "Fri, 26 Feb 2021 09:36:31 GMT" ], "Expires": [ "-1" diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestIntVariable.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestIntVariable.json index d25ed64f6213..127637cca5af 100644 --- a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestIntVariable.json +++ b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestIntVariable.json @@ -7,7 +7,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5ad14680-221f-42a2-8aba-1f592cf2144f" + "f1c18e5c-e87d-440e-8bf0-acba9618dd4e" ], "Accept-Language": [ "en-US" @@ -30,7 +30,7 @@ "1f2cbd06-83a6-470d-b1bc-af146f663017" ], "x-ms-request-id": [ - "5ad14680-221f-42a2-8aba-1f592cf2144f" + "f1c18e5c-e87d-440e-8bf0-acba9618dd4e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -45,19 +45,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" + "11988" ], "x-ms-correlation-request-id": [ - "7839283c-9d69-4c7d-904c-586bb9ea79e4" + "154562d5-abaf-41ee-8fbd-00f306991030" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084631Z:7839283c-9d69-4c7d-904c-586bb9ea79e4" + "SOUTHEASTASIA:20210226T093635Z:154562d5-abaf-41ee-8fbd-00f306991030" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:31 GMT" + "Fri, 26 Feb 2021 09:36:34 GMT" ], "Content-Length": [ "624" @@ -79,7 +79,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c517ecef-cdaf-460e-8d0f-77d80dfe6078" + "15a08838-f326-4419-9495-f3da4f08dc0f" ], "Accept-Language": [ "en-US" @@ -99,7 +99,7 @@ "no-cache" ], "x-ms-request-id": [ - "c517ecef-cdaf-460e-8d0f-77d80dfe6078" + "15a08838-f326-4419-9495-f3da4f08dc0f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -114,19 +114,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" + "11993" ], "x-ms-correlation-request-id": [ - "e37520a1-4bd4-43ad-b2cd-87d7df56892f" + "7c5012c0-b71e-4646-8a3a-18ef6a4259e7" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084632Z:e37520a1-4bd4-43ad-b2cd-87d7df56892f" + "SOUTHEASTASIA:20210226T093637Z:7c5012c0-b71e-4646-8a3a-18ef6a4259e7" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:31 GMT" + "Fri, 26 Feb 2021 09:36:37 GMT" ], "Content-Length": [ "51" @@ -148,7 +148,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7f2ee954-70bb-4b08-9bc0-f89805e6aec8" + "c869ba8f-ca0a-489d-b656-69929960fc8e" ], "Accept-Language": [ "en-US" @@ -168,7 +168,7 @@ "no-cache" ], "x-ms-request-id": [ - "7f2ee954-70bb-4b08-9bc0-f89805e6aec8" + "c869ba8f-ca0a-489d-b656-69929960fc8e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -186,16 +186,16 @@ "11992" ], "x-ms-correlation-request-id": [ - "ed6336d0-8280-48d9-b16c-ee2910e19f47" + "1f36a9b3-df1a-470b-82c6-2c44609c5b4c" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084634Z:ed6336d0-8280-48d9-b16c-ee2910e19f47" + "SOUTHEASTASIA:20210226T093638Z:1f36a9b3-df1a-470b-82c6-2c44609c5b4c" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:34 GMT" + "Fri, 26 Feb 2021 09:36:37 GMT" ], "Content-Length": [ "469" @@ -207,7 +207,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:33.5966667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:33.5966667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"1\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:37.6933333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:37.6933333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"1\",\r\n \"description\": \"Hello\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -217,7 +217,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2392dfda-2fa9-4b27-9e7c-0c4548a833b7" + "2764dfef-a59a-4902-b201-38f7ba6f94aa" ], "Accept-Language": [ "en-US" @@ -237,7 +237,7 @@ "no-cache" ], "x-ms-request-id": [ - "2392dfda-2fa9-4b27-9e7c-0c4548a833b7" + "2764dfef-a59a-4902-b201-38f7ba6f94aa" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -252,19 +252,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11987" ], "x-ms-correlation-request-id": [ - "0e277f0e-9f58-4423-9f46-9079931a5c29" + "b8a3bd2d-4314-4320-9ed2-4c36b56b9c72" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084634Z:0e277f0e-9f58-4423-9f46-9079931a5c29" + "SOUTHEASTASIA:20210226T093639Z:b8a3bd2d-4314-4320-9ed2-4c36b56b9c72" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:33 GMT" + "Fri, 26 Feb 2021 09:36:38 GMT" ], "Content-Length": [ "469" @@ -276,7 +276,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:33.5966667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:33.5966667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"1\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:37.6933333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:37.6933333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"1\",\r\n \"description\": \"Hello\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -286,7 +286,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2392dfda-2fa9-4b27-9e7c-0c4548a833b7" + "2764dfef-a59a-4902-b201-38f7ba6f94aa" ], "Accept-Language": [ "en-US" @@ -306,7 +306,7 @@ "no-cache" ], "x-ms-request-id": [ - "2392dfda-2fa9-4b27-9e7c-0c4548a833b7" + "2764dfef-a59a-4902-b201-38f7ba6f94aa" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -321,19 +321,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11986" ], "x-ms-correlation-request-id": [ - "3b47de51-b9ae-4147-9391-00d13942cc72" + "49cb9526-3f0b-48c9-89af-ac20122394a5" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084635Z:3b47de51-b9ae-4147-9391-00d13942cc72" + "SOUTHEASTASIA:20210226T093640Z:49cb9526-3f0b-48c9-89af-ac20122394a5" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:35 GMT" + "Fri, 26 Feb 2021 09:36:39 GMT" ], "Content-Length": [ "469" @@ -345,7 +345,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:33.5966667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:35.4533333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"2\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:37.6933333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:39.5866667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"2\",\r\n \"description\": \"Hello\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -355,7 +355,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "61f6c29b-a099-4c25-9661-ffec31845b02" + "57273989-945b-4af3-b058-5facce21224e" ], "Accept-Language": [ "en-US" @@ -375,7 +375,7 @@ "no-cache" ], "x-ms-request-id": [ - "61f6c29b-a099-4c25-9661-ffec31845b02" + "57273989-945b-4af3-b058-5facce21224e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -390,19 +390,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" + "11989" ], "x-ms-correlation-request-id": [ - "944943cb-87d2-456e-8efd-5bbe53216113" + "fbaf20c4-117c-406c-bcde-8ac455b92dd4" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084636Z:944943cb-87d2-456e-8efd-5bbe53216113" + "SOUTHEASTASIA:20210226T093640Z:fbaf20c4-117c-406c-bcde-8ac455b92dd4" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:36 GMT" + "Fri, 26 Feb 2021 09:36:40 GMT" ], "Content-Length": [ "469" @@ -414,7 +414,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:33.5966667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:35.4533333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"2\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:37.6933333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:39.5866667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"2\",\r\n \"description\": \"Hello\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -424,7 +424,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f1ba7bdd-2fbe-4efc-91a9-ec13bb1ce98b" + "e263b306-679c-4999-a85e-06c8b668f517" ], "Accept-Language": [ "en-US" @@ -444,11 +444,14 @@ "no-cache" ], "x-ms-request-id": [ - "f1ba7bdd-2fbe-4efc-91a9-ec13bb1ce98b" + "e263b306-679c-4999-a85e-06c8b668f517" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], "Server": [ "Microsoft-IIS/10.0" ], @@ -458,20 +461,17 @@ "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" - ], "x-ms-correlation-request-id": [ - "51241eb1-e5cf-4581-a9d4-084004791728" + "c17e5db3-9611-4ce6-968e-230f9c3c8f82" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084640Z:51241eb1-e5cf-4581-a9d4-084004791728" + "SOUTHEASTASIA:20210226T093644Z:c17e5db3-9611-4ce6-968e-230f9c3c8f82" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:40 GMT" + "Fri, 26 Feb 2021 09:36:43 GMT" ], "Content-Length": [ "51" @@ -493,7 +493,7 @@ "RequestBody": "{\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"properties\": {\r\n \"value\": \"1\",\r\n \"description\": \"Hello\",\r\n \"isEncrypted\": false\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "c517ecef-cdaf-460e-8d0f-77d80dfe6078" + "15a08838-f326-4419-9495-f3da4f08dc0f" ], "Accept-Language": [ "en-US" @@ -522,7 +522,7 @@ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31" ], "x-ms-request-id": [ - "c517ecef-cdaf-460e-8d0f-77d80dfe6078" + "15a08838-f326-4419-9495-f3da4f08dc0f" ], "x-ms-location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue?api-version=2015-10-31" @@ -543,19 +543,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1197" ], "x-ms-correlation-request-id": [ - "916a3101-789b-487f-8acc-8bc5012def96" + "92b151da-3e69-4916-be2d-316d6102cca9" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084633Z:916a3101-789b-487f-8acc-8bc5012def96" + "SOUTHEASTASIA:20210226T093637Z:92b151da-3e69-4916-be2d-316d6102cca9" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:33 GMT" + "Fri, 26 Feb 2021 09:36:37 GMT" ], "Content-Length": [ "469" @@ -567,7 +567,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:33.5966667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:33.5966667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"1\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:37.6933333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:37.6933333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"1\",\r\n \"description\": \"Hello\"\r\n }\r\n}", "StatusCode": 201 }, { @@ -577,7 +577,7 @@ "RequestBody": "{\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"properties\": {\r\n \"value\": \"2\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "2392dfda-2fa9-4b27-9e7c-0c4548a833b7" + "2764dfef-a59a-4902-b201-38f7ba6f94aa" ], "Accept-Language": [ "en-US" @@ -603,7 +603,7 @@ "no-cache" ], "x-ms-request-id": [ - "2392dfda-2fa9-4b27-9e7c-0c4548a833b7" + "2764dfef-a59a-4902-b201-38f7ba6f94aa" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -618,19 +618,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1195" ], "x-ms-correlation-request-id": [ - "08c04b7e-d523-4fd5-b6c6-f93d1288fe8c" + "9ea732d3-e01d-4892-9c0f-ea239aa55989" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084635Z:08c04b7e-d523-4fd5-b6c6-f93d1288fe8c" + "SOUTHEASTASIA:20210226T093639Z:9ea732d3-e01d-4892-9c0f-ea239aa55989" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:34 GMT" + "Fri, 26 Feb 2021 09:36:38 GMT" ], "Content-Length": [ "469" @@ -642,7 +642,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:33.5966667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:35.4533333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"2\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/CreateNewVariableWithValue\",\r\n \"name\": \"CreateNewVariableWithValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:37.6933333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:39.5866667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"2\",\r\n \"description\": \"Hello\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -652,7 +652,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "13a05e06-460e-43a6-a4bc-f354e52acf64" + "3d6fc853-eed5-44e9-aa6f-0cbda7680ea4" ], "Accept-Language": [ "en-US" @@ -672,7 +672,7 @@ "no-cache" ], "x-ms-request-id": [ - "13a05e06-460e-43a6-a4bc-f354e52acf64" + "3d6fc853-eed5-44e9-aa6f-0cbda7680ea4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -687,19 +687,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" + "14996" ], "x-ms-correlation-request-id": [ - "00c601e3-6056-4703-afeb-c0e5a502a1cb" + "55aa3236-c74a-4ea0-b46f-7baf683002fa" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084640Z:00c601e3-6056-4703-afeb-c0e5a502a1cb" + "SOUTHEASTASIA:20210226T093642Z:55aa3236-c74a-4ea0-b46f-7baf683002fa" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:39 GMT" + "Fri, 26 Feb 2021 09:36:41 GMT" ], "Expires": [ "-1" diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestJsonInDictValueVariable.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestJsonInDictValueVariable.json index 26c87b5e5285..10106a4f3f85 100644 --- a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestJsonInDictValueVariable.json +++ b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestJsonInDictValueVariable.json @@ -7,7 +7,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "407266f4-5647-4826-ab75-60892a274ca0" + "54a7da71-3657-4936-87d6-f68bda89bc32" ], "Accept-Language": [ "en-US" @@ -30,7 +30,7 @@ "1f2cbd06-83a6-470d-b1bc-af146f663017" ], "x-ms-request-id": [ - "407266f4-5647-4826-ab75-60892a274ca0" + "54a7da71-3657-4936-87d6-f68bda89bc32" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -45,19 +45,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11988" ], "x-ms-correlation-request-id": [ - "7cc0a5a6-d1a9-4ce4-8b2c-9edf35cef01c" + "3c1263f7-9f2c-4d7e-8e2e-83f00deec800" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084643Z:7cc0a5a6-d1a9-4ce4-8b2c-9edf35cef01c" + "SOUTHEASTASIA:20210226T093646Z:3c1263f7-9f2c-4d7e-8e2e-83f00deec800" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:43 GMT" + "Fri, 26 Feb 2021 09:36:46 GMT" ], "Content-Length": [ "624" @@ -79,7 +79,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6ae9c6e6-d15b-497a-9efe-1fccfb8a210e" + "bb416e2e-f2f0-4e15-84f7-cd7f84c9bf01" ], "Accept-Language": [ "en-US" @@ -99,7 +99,7 @@ "no-cache" ], "x-ms-request-id": [ - "6ae9c6e6-d15b-497a-9efe-1fccfb8a210e" + "bb416e2e-f2f0-4e15-84f7-cd7f84c9bf01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -114,19 +114,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" + "11985" ], "x-ms-correlation-request-id": [ - "dc9a867f-a7b7-4d64-ad71-63329ca3955d" + "effd3a02-c1d2-45d4-a865-d6df07398f25" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084643Z:dc9a867f-a7b7-4d64-ad71-63329ca3955d" + "SOUTHEASTASIA:20210226T093648Z:effd3a02-c1d2-45d4-a865-d6df07398f25" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:43 GMT" + "Fri, 26 Feb 2021 09:36:47 GMT" ], "Content-Length": [ "51" @@ -148,7 +148,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "41ae3e0a-523e-4982-b992-2706ec688174" + "d15f60fb-4f07-47ec-9062-2e41b1499b49" ], "Accept-Language": [ "en-US" @@ -168,7 +168,7 @@ "no-cache" ], "x-ms-request-id": [ - "41ae3e0a-523e-4982-b992-2706ec688174" + "d15f60fb-4f07-47ec-9062-2e41b1499b49" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -183,19 +183,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" + "11993" ], "x-ms-correlation-request-id": [ - "041c39a2-94c5-4545-8097-7719617b03f8" + "003f11e2-041b-4574-a7cd-faba9cbbf9e7" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084645Z:041c39a2-94c5-4545-8097-7719617b03f8" + "SOUTHEASTASIA:20210226T093649Z:003f11e2-041b-4574-a7cd-faba9cbbf9e7" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:44 GMT" + "Fri, 26 Feb 2021 09:36:48 GMT" ], "Content-Length": [ "507" @@ -207,7 +207,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"JsonInDictValue\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:44.1666667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:44.1666667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"sub-value\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue\",\r\n \"name\": \"JsonInDictValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:48.8166667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:48.8166667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"sub-value\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -217,7 +217,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a61b0fbc-4ca2-484c-9670-346ece9f31a6" + "aa2e8882-b2ae-46a0-9597-d56855ee82eb" ], "Accept-Language": [ "en-US" @@ -237,7 +237,7 @@ "no-cache" ], "x-ms-request-id": [ - "a61b0fbc-4ca2-484c-9670-346ece9f31a6" + "aa2e8882-b2ae-46a0-9597-d56855ee82eb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -252,19 +252,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" + "11994" ], "x-ms-correlation-request-id": [ - "a5c5fc58-fcd8-41f3-b8ad-e56ba13c1127" + "6c6dfc87-bc93-4169-8cee-37d2b80fc982" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084645Z:a5c5fc58-fcd8-41f3-b8ad-e56ba13c1127" + "SOUTHEASTASIA:20210226T093650Z:6c6dfc87-bc93-4169-8cee-37d2b80fc982" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:44 GMT" + "Fri, 26 Feb 2021 09:36:49 GMT" ], "Content-Length": [ "507" @@ -276,7 +276,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue\",\r\n \"name\": \"JsonInDictValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:44.1666667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:44.1666667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"sub-value\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"JsonInDictValue\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:48.8166667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:48.8166667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"sub-value\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -286,7 +286,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a61b0fbc-4ca2-484c-9670-346ece9f31a6" + "aa2e8882-b2ae-46a0-9597-d56855ee82eb" ], "Accept-Language": [ "en-US" @@ -306,7 +306,7 @@ "no-cache" ], "x-ms-request-id": [ - "a61b0fbc-4ca2-484c-9670-346ece9f31a6" + "aa2e8882-b2ae-46a0-9597-d56855ee82eb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -321,22 +321,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11986" + "11993" ], "x-ms-correlation-request-id": [ - "5f527be0-4f18-49a6-aefb-90354149efb9" + "6577856e-cf29-45ce-a489-e6456e127602" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084646Z:5f527be0-4f18-49a6-aefb-90354149efb9" + "SOUTHEASTASIA:20210226T093651Z:6577856e-cf29-45ce-a489-e6456e127602" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:46 GMT" + "Fri, 26 Feb 2021 09:36:50 GMT" ], "Content-Length": [ - "494" + "499" ], "Content-Type": [ "application/json; charset=utf-8" @@ -345,7 +345,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue\",\r\n \"name\": \"JsonInDictValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:44.1666667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:46.34+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"0\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"JsonInDictValue\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:48.8166667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:50.9533333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"0\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -355,7 +355,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d4b735ab-3115-452a-8f0d-3586aad55466" + "7b8528d9-efc2-4fff-b184-2c5fce48825a" ], "Accept-Language": [ "en-US" @@ -375,7 +375,7 @@ "no-cache" ], "x-ms-request-id": [ - "d4b735ab-3115-452a-8f0d-3586aad55466" + "7b8528d9-efc2-4fff-b184-2c5fce48825a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -390,22 +390,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" + "11988" ], "x-ms-correlation-request-id": [ - "629e7ad8-afd0-43ab-84f3-02a450cac38d" + "cdc671e6-cbd7-47cd-9346-3577674192d8" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084647Z:629e7ad8-afd0-43ab-84f3-02a450cac38d" + "SOUTHEASTASIA:20210226T093652Z:cdc671e6-cbd7-47cd-9346-3577674192d8" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:46 GMT" + "Fri, 26 Feb 2021 09:36:51 GMT" ], "Content-Length": [ - "494" + "499" ], "Content-Type": [ "application/json; charset=utf-8" @@ -414,7 +414,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue\",\r\n \"name\": \"JsonInDictValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:44.1666667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:46.34+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"0\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue\",\r\n \"name\": \"JsonInDictValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:48.8166667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:50.9533333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"0\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -424,7 +424,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4cad716e-171f-4643-8845-1c93888b3e12" + "68656931-39bf-4f08-877c-ad1e928966c2" ], "Accept-Language": [ "en-US" @@ -444,7 +444,7 @@ "no-cache" ], "x-ms-request-id": [ - "4cad716e-171f-4643-8845-1c93888b3e12" + "68656931-39bf-4f08-877c-ad1e928966c2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -462,16 +462,16 @@ "11992" ], "x-ms-correlation-request-id": [ - "4779fdb2-cb30-422c-97ac-734bde25ad44" + "b356f4ee-d40f-44af-b5ad-c73d2002860a" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084649Z:4779fdb2-cb30-422c-97ac-734bde25ad44" + "SOUTHEASTASIA:20210226T093656Z:b356f4ee-d40f-44af-b5ad-c73d2002860a" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:49 GMT" + "Fri, 26 Feb 2021 09:36:56 GMT" ], "Content-Length": [ "51" @@ -493,7 +493,7 @@ "RequestBody": "{\r\n \"name\": \"JsonInDictValue\",\r\n \"properties\": {\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"sub-value\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\",\r\n \"isEncrypted\": false\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "6ae9c6e6-d15b-497a-9efe-1fccfb8a210e" + "bb416e2e-f2f0-4e15-84f7-cd7f84c9bf01" ], "Accept-Language": [ "en-US" @@ -522,7 +522,7 @@ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue?api-version=2015-10-31" ], "x-ms-request-id": [ - "6ae9c6e6-d15b-497a-9efe-1fccfb8a210e" + "bb416e2e-f2f0-4e15-84f7-cd7f84c9bf01" ], "x-ms-location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue?api-version=2015-10-31" @@ -543,19 +543,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1194" ], "x-ms-correlation-request-id": [ - "631232c7-2db6-4e92-a54b-1b537ed6f338" + "f70ad7e4-c01a-4590-98c8-db623fe8884b" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084644Z:631232c7-2db6-4e92-a54b-1b537ed6f338" + "SOUTHEASTASIA:20210226T093649Z:f70ad7e4-c01a-4590-98c8-db623fe8884b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:44 GMT" + "Fri, 26 Feb 2021 09:36:48 GMT" ], "Content-Length": [ "507" @@ -567,7 +567,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"JsonInDictValue\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:44.1666667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:44.1666667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"sub-value\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue\",\r\n \"name\": \"JsonInDictValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:48.8166667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:48.8166667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"sub-value\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\"\r\n }\r\n}", "StatusCode": 201 }, { @@ -577,7 +577,7 @@ "RequestBody": "{\r\n \"name\": \"JsonInDictValue\",\r\n \"properties\": {\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"0\\\\\\\"}\\\"}\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "a61b0fbc-4ca2-484c-9670-346ece9f31a6" + "aa2e8882-b2ae-46a0-9597-d56855ee82eb" ], "Accept-Language": [ "en-US" @@ -603,7 +603,7 @@ "no-cache" ], "x-ms-request-id": [ - "a61b0fbc-4ca2-484c-9670-346ece9f31a6" + "aa2e8882-b2ae-46a0-9597-d56855ee82eb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -618,22 +618,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1198" ], "x-ms-correlation-request-id": [ - "3ea33c93-6962-429c-a2b8-66f909e57e7f" + "2a336a93-21e0-45e1-8087-d760891f1751" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084646Z:3ea33c93-6962-429c-a2b8-66f909e57e7f" + "SOUTHEASTASIA:20210226T093651Z:2a336a93-21e0-45e1-8087-d760891f1751" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:45 GMT" + "Fri, 26 Feb 2021 09:36:50 GMT" ], "Content-Length": [ - "494" + "499" ], "Content-Type": [ "application/json; charset=utf-8" @@ -642,7 +642,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue\",\r\n \"name\": \"JsonInDictValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:44.1666667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:46.34+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"0\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"JsonInDictValue\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInDictValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:48.8166667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:50.9533333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"{\\\\\\\"subkey\\\\\\\" = \\\\\\\"0\\\\\\\"}\\\"}\",\r\n \"description\": \"JsonInDictValue\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -652,7 +652,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "84948f54-8340-4af2-b1f9-3bbc1f102cf2" + "88b0385d-cb2a-4623-aabe-4b57bac776e5" ], "Accept-Language": [ "en-US" @@ -672,7 +672,7 @@ "no-cache" ], "x-ms-request-id": [ - "84948f54-8340-4af2-b1f9-3bbc1f102cf2" + "88b0385d-cb2a-4623-aabe-4b57bac776e5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -687,19 +687,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14997" + "14999" ], "x-ms-correlation-request-id": [ - "4367a0f6-3c24-4974-a60f-a69276bf2e74" + "973cb1ba-dff6-4ae6-9b90-fd54b27b81f9" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084649Z:4367a0f6-3c24-4974-a60f-a69276bf2e74" + "SOUTHEASTASIA:20210226T093655Z:973cb1ba-dff6-4ae6-9b90-fd54b27b81f9" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:48 GMT" + "Fri, 26 Feb 2021 09:36:55 GMT" ], "Expires": [ "-1" diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestJsonInValueVariable.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestJsonInValueVariable.json deleted file mode 100644 index de52976e0e99..000000000000 --- a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestJsonInValueVariable.json +++ /dev/null @@ -1,719 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "69a55f4d-8967-410f-aa42-2b74588f5174" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "ocp-automation-accountid": [ - "1f2cbd06-83a6-470d-b1bc-af146f663017" - ], - "x-ms-request-id": [ - "69a55f4d-8967-410f-aa42-2b74588f5174" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "7a4e86c9-0279-42ea-8929-bc20db8f955e" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083052Z:7a4e86c9-0279-42ea-8929-bc20db8f955e" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:30:52 GMT" - ], - "Content-Length": [ - "624" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"test-automation-0\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"etag\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"family\": null,\r\n \"capacity\": null\r\n },\r\n \"state\": \"Ok\",\r\n \"RegistrationUrl\": \"https://1f2cbd06-83a6-470d-b1bc-af146f663017.agentsvc.eus.azure-automation.net/accounts/1f2cbd06-83a6-470d-b1bc-af146f663017\",\r\n \"creationTime\": \"2021-02-26T15:25:27.07+08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2021-02-26T15:25:27.07+08:00\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5WYWx1ZVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "87ca0d77-7ab1-4c72-9437-722114130bb1" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "87ca0d77-7ab1-4c72-9437-722114130bb1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" - ], - "x-ms-correlation-request-id": [ - "6cdfd78c-cf59-4552-81df-175ec825d737" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083054Z:6cdfd78c-cf59-4552-81df-175ec825d737" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:30:53 GMT" - ], - "Content-Length": [ - "51" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", - "StatusCode": 404 - }, - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5WYWx1ZVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "9e659577-9fd7-4f29-bd80-245ba504b55e" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "9e659577-9fd7-4f29-bd80-245ba504b55e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" - ], - "x-ms-correlation-request-id": [ - "c7c9ca40-fd78-4a8d-b81e-788eb5ed4afd" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083055Z:c7c9ca40-fd78-4a8d-b81e-788eb5ed4afd" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:30:54 GMT" - ], - "Content-Length": [ - "504" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable\",\r\n \"name\": \"JsonInValueVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:54.3833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:54.3833333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":\\\"subvalue\\\"}}\",\r\n \"description\": \"JsonInValueVariable\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5WYWx1ZVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "c9d36f22-fc9d-4a05-83d1-71e1d545ef15" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "c9d36f22-fc9d-4a05-83d1-71e1d545ef15" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "98d0a652-8033-4fbe-8534-bdae837b789e" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083056Z:98d0a652-8033-4fbe-8534-bdae837b789e" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:30:56 GMT" - ], - "Content-Length": [ - "504" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable\",\r\n \"name\": \"JsonInValueVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:54.3833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:54.3833333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":\\\"subvalue\\\"}}\",\r\n \"description\": \"JsonInValueVariable\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5WYWx1ZVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "c9d36f22-fc9d-4a05-83d1-71e1d545ef15" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "c9d36f22-fc9d-4a05-83d1-71e1d545ef15" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "a138ab3e-2af1-424b-bdbc-5d4aa23aa35b" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083058Z:a138ab3e-2af1-424b-bdbc-5d4aa23aa35b" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:30:57 GMT" - ], - "Content-Length": [ - "484" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable\",\r\n \"name\": \"JsonInValueVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:54.3833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:57.97+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"JsonInValueVariable\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5WYWx1ZVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "0083fe02-cbbc-40bf-a8ed-99d8c29dd0bd" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "0083fe02-cbbc-40bf-a8ed-99d8c29dd0bd" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" - ], - "x-ms-correlation-request-id": [ - "edbcd1e4-8efd-43ae-b7f5-e32661994f34" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083059Z:edbcd1e4-8efd-43ae-b7f5-e32661994f34" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:30:58 GMT" - ], - "Content-Length": [ - "484" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable\",\r\n \"name\": \"JsonInValueVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:54.3833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:57.97+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"JsonInValueVariable\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5WYWx1ZVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "deac91bc-a60e-4e5f-92d8-18a9ca6d8ac5" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "deac91bc-a60e-4e5f-92d8-18a9ca6d8ac5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" - ], - "x-ms-correlation-request-id": [ - "b9423ced-29a9-479f-af40-a95f75582334" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083103Z:b9423ced-29a9-479f-af40-a95f75582334" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:31:02 GMT" - ], - "Content-Length": [ - "51" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Variable not found.\"\r\n}", - "StatusCode": 404 - }, - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5WYWx1ZVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"name\": \"JsonInValueVariable\",\r\n \"properties\": {\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":\\\"subvalue\\\"}}\",\r\n \"description\": \"JsonInValueVariable\",\r\n \"isEncrypted\": false\r\n }\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "87ca0d77-7ab1-4c72-9437-722114130bb1" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "185" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31" - ], - "x-ms-request-id": [ - "87ca0d77-7ab1-4c72-9437-722114130bb1" - ], - "x-ms-location": [ - "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31" - ], - "ocp-location": [ - "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" - ], - "x-ms-correlation-request-id": [ - "d65c2102-c178-48c3-ac76-1b0d2656ad51" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083054Z:d65c2102-c178-48c3-ac76-1b0d2656ad51" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:30:54 GMT" - ], - "Content-Length": [ - "504" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable\",\r\n \"name\": \"JsonInValueVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:54.3833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:54.3833333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":\\\"subvalue\\\"}}\",\r\n \"description\": \"JsonInValueVariable\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5WYWx1ZVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", - "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"name\": \"JsonInValueVariable\",\r\n \"properties\": {\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\"\r\n }\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "c9d36f22-fc9d-4a05-83d1-71e1d545ef15" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "100" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "c9d36f22-fc9d-4a05-83d1-71e1d545ef15" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" - ], - "x-ms-correlation-request-id": [ - "fe503299-1e65-44c8-82da-84095bfc1ad6" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083058Z:fe503299-1e65-44c8-82da-84095bfc1ad6" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:30:57 GMT" - ], - "Content-Length": [ - "484" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable\",\r\n \"name\": \"JsonInValueVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:30:54.3833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:30:57.97+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"JsonInValueVariable\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/JsonInValueVariable?api-version=2015-10-31", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9Kc29uSW5WYWx1ZVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "edbf2fb9-bafb-4112-9d35-f8c7192fd176" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29719.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Automation.AutomationClient/3.8.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "edbf2fb9-bafb-4112-9d35-f8c7192fd176" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "Microsoft-IIS/10.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-correlation-request-id": [ - "0a67da72-c625-41d2-8c45-be265362a46e" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T083102Z:0a67da72-c625-41d2-8c45-be265362a46e" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 26 Feb 2021 08:31:02 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f" - } -} \ No newline at end of file diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestMultiLevelDictVariable.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestMultiLevelDictVariable.json index 112ba655dcda..74af66e9a4f4 100644 --- a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestMultiLevelDictVariable.json +++ b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestMultiLevelDictVariable.json @@ -7,7 +7,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "746cfde3-545f-427e-8e46-31ade8f857e1" + "8fb0a520-a8d8-47be-aaf7-206aeb6c0463" ], "Accept-Language": [ "en-US" @@ -30,7 +30,7 @@ "1f2cbd06-83a6-470d-b1bc-af146f663017" ], "x-ms-request-id": [ - "746cfde3-545f-427e-8e46-31ade8f857e1" + "8fb0a520-a8d8-47be-aaf7-206aeb6c0463" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -45,19 +45,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" + "11991" ], "x-ms-correlation-request-id": [ - "4244c9bd-b46a-46bb-8156-676915892867" + "5f014350-6f58-4d6d-a720-84dfe7787dc6" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084556Z:4244c9bd-b46a-46bb-8156-676915892867" + "SOUTHEASTASIA:20210226T093559Z:5f014350-6f58-4d6d-a720-84dfe7787dc6" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:45:56 GMT" + "Fri, 26 Feb 2021 09:35:58 GMT" ], "Content-Length": [ "624" @@ -79,7 +79,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "35743461-7c01-4e01-b8b1-5959ea460711" + "aa49c613-848a-47a6-a528-e187c42f5c16" ], "Accept-Language": [ "en-US" @@ -99,7 +99,7 @@ "no-cache" ], "x-ms-request-id": [ - "35743461-7c01-4e01-b8b1-5959ea460711" + "aa49c613-848a-47a6-a528-e187c42f5c16" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -114,19 +114,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" + "11991" ], "x-ms-correlation-request-id": [ - "55cc3fe9-54ce-4dc7-804e-40a72b3ca76c" + "1ed9309a-750f-46c4-b1ef-ad194edfb177" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084557Z:55cc3fe9-54ce-4dc7-804e-40a72b3ca76c" + "SOUTHEASTASIA:20210226T093600Z:1ed9309a-750f-46c4-b1ef-ad194edfb177" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:45:56 GMT" + "Fri, 26 Feb 2021 09:35:59 GMT" ], "Content-Length": [ "51" @@ -148,7 +148,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "622e5124-133f-4fc5-a5bf-c28ab59a0d19" + "cde70944-0e9f-4205-a03a-2ee8b0fe8d21" ], "Accept-Language": [ "en-US" @@ -168,7 +168,7 @@ "no-cache" ], "x-ms-request-id": [ - "622e5124-133f-4fc5-a5bf-c28ab59a0d19" + "cde70944-0e9f-4205-a03a-2ee8b0fe8d21" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -183,19 +183,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" + "11990" ], "x-ms-correlation-request-id": [ - "93e7a6f5-077f-4b7f-b918-4ffac2ee781f" + "3a2dbcbb-fc01-46f0-abf9-e5fb5c8dd34e" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084559Z:93e7a6f5-077f-4b7f-b918-4ffac2ee781f" + "SOUTHEASTASIA:20210226T093601Z:3a2dbcbb-fc01-46f0-abf9-e5fb5c8dd34e" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:45:58 GMT" + "Fri, 26 Feb 2021 09:36:01 GMT" ], "Content-Length": [ "479" @@ -207,7 +207,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict\",\r\n \"name\": \"MultiLevelDict\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:45:58.25+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:45:58.25+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":\\\"subvalue\\\"}}\",\r\n \"description\": \"MultiLevelDict\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict\",\r\n \"name\": \"MultiLevelDict\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:00.43+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:00.43+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":\\\"subvalue\\\"}}\",\r\n \"description\": \"MultiLevelDict\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -217,7 +217,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9e1566e9-d1f9-4135-9412-a51a3862cc63" + "b6dc17bc-8571-48ab-8222-2607ba18e910" ], "Accept-Language": [ "en-US" @@ -237,7 +237,7 @@ "no-cache" ], "x-ms-request-id": [ - "9e1566e9-d1f9-4135-9412-a51a3862cc63" + "b6dc17bc-8571-48ab-8222-2607ba18e910" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -252,19 +252,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" + "11988" ], "x-ms-correlation-request-id": [ - "d41ce3f8-673b-461c-944f-606e81980cf7" + "fd959fe2-a67b-4a0f-bf2d-0c40e81bc8c6" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084601Z:d41ce3f8-673b-461c-944f-606e81980cf7" + "SOUTHEASTASIA:20210226T093601Z:fd959fe2-a67b-4a0f-bf2d-0c40e81bc8c6" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:01 GMT" + "Fri, 26 Feb 2021 09:36:01 GMT" ], "Content-Length": [ "479" @@ -276,7 +276,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict\",\r\n \"name\": \"MultiLevelDict\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:45:58.25+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:45:58.25+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":\\\"subvalue\\\"}}\",\r\n \"description\": \"MultiLevelDict\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict\",\r\n \"name\": \"MultiLevelDict\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:00.43+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:00.43+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":\\\"subvalue\\\"}}\",\r\n \"description\": \"MultiLevelDict\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -286,7 +286,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9e1566e9-d1f9-4135-9412-a51a3862cc63" + "b6dc17bc-8571-48ab-8222-2607ba18e910" ], "Accept-Language": [ "en-US" @@ -306,7 +306,7 @@ "no-cache" ], "x-ms-request-id": [ - "9e1566e9-d1f9-4135-9412-a51a3862cc63" + "b6dc17bc-8571-48ab-8222-2607ba18e910" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -321,19 +321,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11987" ], "x-ms-correlation-request-id": [ - "a2e95760-a613-4dae-badd-431976fcef02" + "b4d2c047-7713-4b7d-9ee9-1475d7b79126" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084602Z:a2e95760-a613-4dae-badd-431976fcef02" + "SOUTHEASTASIA:20210226T093602Z:b4d2c047-7713-4b7d-9ee9-1475d7b79126" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:02 GMT" + "Fri, 26 Feb 2021 09:36:02 GMT" ], "Content-Length": [ "498" @@ -345,7 +345,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict\",\r\n \"name\": \"MultiLevelDict\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:45:58.25+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:02.1766667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":{\\\"3rdkey\\\":\\\"3rd-value\\\"}}}\",\r\n \"description\": \"MultiLevelDict\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict\",\r\n \"name\": \"MultiLevelDict\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:00.43+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:02.4033333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":{\\\"3rdkey\\\":\\\"3rd-value\\\"}}}\",\r\n \"description\": \"MultiLevelDict\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -355,7 +355,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b18e083d-878d-48b2-992a-bc9c54e07614" + "42a96ae5-ea0f-4410-bc86-263c9340f28c" ], "Accept-Language": [ "en-US" @@ -375,7 +375,7 @@ "no-cache" ], "x-ms-request-id": [ - "b18e083d-878d-48b2-992a-bc9c54e07614" + "42a96ae5-ea0f-4410-bc86-263c9340f28c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -390,19 +390,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" + "11981" ], "x-ms-correlation-request-id": [ - "84281c47-e4e6-45b4-acdc-356bd75353c7" + "b9c5191b-40d4-4436-85ef-c49b245afd83" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084604Z:84281c47-e4e6-45b4-acdc-356bd75353c7" + "SOUTHEASTASIA:20210226T093604Z:b9c5191b-40d4-4436-85ef-c49b245afd83" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:04 GMT" + "Fri, 26 Feb 2021 09:36:03 GMT" ], "Content-Length": [ "498" @@ -414,7 +414,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict\",\r\n \"name\": \"MultiLevelDict\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:45:58.25+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:02.1766667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":{\\\"3rdkey\\\":\\\"3rd-value\\\"}}}\",\r\n \"description\": \"MultiLevelDict\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict\",\r\n \"name\": \"MultiLevelDict\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:00.43+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:02.4033333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":{\\\"3rdkey\\\":\\\"3rd-value\\\"}}}\",\r\n \"description\": \"MultiLevelDict\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -424,7 +424,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "67272943-df79-4083-b1cd-95adf9083206" + "b52cf3a2-d80d-4233-9c8e-f1b7f003b795" ], "Accept-Language": [ "en-US" @@ -444,7 +444,7 @@ "no-cache" ], "x-ms-request-id": [ - "67272943-df79-4083-b1cd-95adf9083206" + "b52cf3a2-d80d-4233-9c8e-f1b7f003b795" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -459,19 +459,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" + "11990" ], "x-ms-correlation-request-id": [ - "c9109301-13a9-41f4-89ea-4f582ce83f44" + "e05cd4b4-573c-48b9-9ac1-4b7be66820d6" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084608Z:c9109301-13a9-41f4-89ea-4f582ce83f44" + "SOUTHEASTASIA:20210226T093608Z:e05cd4b4-573c-48b9-9ac1-4b7be66820d6" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:08 GMT" + "Fri, 26 Feb 2021 09:36:08 GMT" ], "Content-Length": [ "51" @@ -493,7 +493,7 @@ "RequestBody": "{\r\n \"name\": \"MultiLevelDict\",\r\n \"properties\": {\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":\\\"subvalue\\\"}}\",\r\n \"description\": \"MultiLevelDict\",\r\n \"isEncrypted\": false\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "35743461-7c01-4e01-b8b1-5959ea460711" + "aa49c613-848a-47a6-a528-e187c42f5c16" ], "Accept-Language": [ "en-US" @@ -522,7 +522,7 @@ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict?api-version=2015-10-31" ], "x-ms-request-id": [ - "35743461-7c01-4e01-b8b1-5959ea460711" + "aa49c613-848a-47a6-a528-e187c42f5c16" ], "x-ms-location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict?api-version=2015-10-31" @@ -546,16 +546,16 @@ "1198" ], "x-ms-correlation-request-id": [ - "19f22c7d-8232-4ffd-a5cf-f88322fe4047" + "06dc7515-5959-4b51-a6c1-7c91124c59c5" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084558Z:19f22c7d-8232-4ffd-a5cf-f88322fe4047" + "SOUTHEASTASIA:20210226T093600Z:06dc7515-5959-4b51-a6c1-7c91124c59c5" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:45:57 GMT" + "Fri, 26 Feb 2021 09:36:00 GMT" ], "Content-Length": [ "479" @@ -567,7 +567,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict\",\r\n \"name\": \"MultiLevelDict\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:45:58.25+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:45:58.25+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":\\\"subvalue\\\"}}\",\r\n \"description\": \"MultiLevelDict\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict\",\r\n \"name\": \"MultiLevelDict\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:00.43+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:00.43+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":\\\"subvalue\\\"}}\",\r\n \"description\": \"MultiLevelDict\"\r\n }\r\n}", "StatusCode": 201 }, { @@ -577,7 +577,7 @@ "RequestBody": "{\r\n \"name\": \"MultiLevelDict\",\r\n \"properties\": {\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":{\\\"3rdkey\\\":\\\"3rd-value\\\"}}}\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "9e1566e9-d1f9-4135-9412-a51a3862cc63" + "b6dc17bc-8571-48ab-8222-2607ba18e910" ], "Accept-Language": [ "en-US" @@ -603,7 +603,7 @@ "no-cache" ], "x-ms-request-id": [ - "9e1566e9-d1f9-4135-9412-a51a3862cc63" + "b6dc17bc-8571-48ab-8222-2607ba18e910" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -621,16 +621,16 @@ "1197" ], "x-ms-correlation-request-id": [ - "03454fff-092a-4144-8e58-ed95e87e538d" + "2b6d1b0b-915b-43eb-9909-8f678b7b4916" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084602Z:03454fff-092a-4144-8e58-ed95e87e538d" + "SOUTHEASTASIA:20210226T093602Z:2b6d1b0b-915b-43eb-9909-8f678b7b4916" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:02 GMT" + "Fri, 26 Feb 2021 09:36:02 GMT" ], "Content-Length": [ "498" @@ -642,7 +642,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict\",\r\n \"name\": \"MultiLevelDict\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:45:58.25+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:02.1766667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":{\\\"3rdkey\\\":\\\"3rd-value\\\"}}}\",\r\n \"description\": \"MultiLevelDict\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/MultiLevelDict\",\r\n \"name\": \"MultiLevelDict\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:00.43+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:02.4033333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":{\\\"subkey\\\":{\\\"3rdkey\\\":\\\"3rd-value\\\"}}}\",\r\n \"description\": \"MultiLevelDict\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -652,7 +652,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b6f44864-b256-4f52-8a9a-aec7a2abfb71" + "c66b94d8-56c0-461f-af1e-3b32487ee28c" ], "Accept-Language": [ "en-US" @@ -672,7 +672,7 @@ "no-cache" ], "x-ms-request-id": [ - "b6f44864-b256-4f52-8a9a-aec7a2abfb71" + "c66b94d8-56c0-461f-af1e-3b32487ee28c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -687,19 +687,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" + "14998" ], "x-ms-correlation-request-id": [ - "b10c8421-71ad-4f90-969f-721d23bc3d10" + "84a116ec-4924-4aad-8f46-66aed52962c0" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084608Z:b10c8421-71ad-4f90-969f-721d23bc3d10" + "SOUTHEASTASIA:20210226T093608Z:84a116ec-4924-4aad-8f46-66aed52962c0" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:07 GMT" + "Fri, 26 Feb 2021 09:36:08 GMT" ], "Expires": [ "-1" diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestNormalHashTableVariable.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestNormalHashTableVariable.json index 7332771917ed..8e1cfc56a190 100644 --- a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestNormalHashTableVariable.json +++ b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestNormalHashTableVariable.json @@ -7,7 +7,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a3a0af79-c684-4cb2-a2d2-3bf703b49f9d" + "9f23523d-f970-4f77-935d-aed0287c3e68" ], "Accept-Language": [ "en-US" @@ -30,7 +30,7 @@ "1f2cbd06-83a6-470d-b1bc-af146f663017" ], "x-ms-request-id": [ - "a3a0af79-c684-4cb2-a2d2-3bf703b49f9d" + "9f23523d-f970-4f77-935d-aed0287c3e68" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -45,19 +45,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" + "11991" ], "x-ms-correlation-request-id": [ - "804f57d8-e870-421a-a18d-a16914761e43" + "2972f43e-1cc4-437c-a963-cca5df94ed48" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084611Z:804f57d8-e870-421a-a18d-a16914761e43" + "SOUTHEASTASIA:20210226T093611Z:2972f43e-1cc4-437c-a963-cca5df94ed48" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:11 GMT" + "Fri, 26 Feb 2021 09:36:11 GMT" ], "Content-Length": [ "624" @@ -79,7 +79,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "cdc6e57c-224e-4cb5-96a8-c58865125041" + "55070cc0-5a26-451d-aaa7-79e034608c79" ], "Accept-Language": [ "en-US" @@ -99,7 +99,7 @@ "no-cache" ], "x-ms-request-id": [ - "cdc6e57c-224e-4cb5-96a8-c58865125041" + "55070cc0-5a26-451d-aaa7-79e034608c79" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -114,19 +114,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" + "11995" ], "x-ms-correlation-request-id": [ - "c107e310-4490-4fe9-91a1-26cbf849f3d9" + "cb545d52-521c-4bc9-ab22-1ae27c43657a" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084612Z:c107e310-4490-4fe9-91a1-26cbf849f3d9" + "SOUTHEASTASIA:20210226T093612Z:cb545d52-521c-4bc9-ab22-1ae27c43657a" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:11 GMT" + "Fri, 26 Feb 2021 09:36:11 GMT" ], "Content-Length": [ "51" @@ -148,7 +148,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "610b7e53-e3f7-478d-bcfc-aa010dd16c19" + "531e338c-fcfe-41ae-be18-f33adec3d109" ], "Accept-Language": [ "en-US" @@ -168,7 +168,7 @@ "no-cache" ], "x-ms-request-id": [ - "610b7e53-e3f7-478d-bcfc-aa010dd16c19" + "531e338c-fcfe-41ae-be18-f33adec3d109" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -183,19 +183,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" + "11990" ], "x-ms-correlation-request-id": [ - "9b846c37-810c-4bed-b708-824f6bc6ba01" + "519f8bf2-854c-4ea6-8c4b-697c1088da4c" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084614Z:9b846c37-810c-4bed-b708-824f6bc6ba01" + "SOUTHEASTASIA:20210226T093615Z:519f8bf2-854c-4ea6-8c4b-697c1088da4c" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:14 GMT" + "Fri, 26 Feb 2021 09:36:15 GMT" ], "Content-Length": [ "485" @@ -207,7 +207,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"NormalHashTable\",\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:12.8833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:12.8833333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"value0\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:13.2033333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:13.2033333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"value0\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -217,7 +217,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "0a3f94c0-5e03-40a8-b135-0fd3a84870c0" + "f1a5486d-51f6-4c31-be73-70554999a926" ], "Accept-Language": [ "en-US" @@ -237,7 +237,7 @@ "no-cache" ], "x-ms-request-id": [ - "0a3f94c0-5e03-40a8-b135-0fd3a84870c0" + "f1a5486d-51f6-4c31-be73-70554999a926" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -252,19 +252,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" + "11994" ], "x-ms-correlation-request-id": [ - "7e453a5c-e5dd-407e-b26b-96cd50ea7d73" + "dc7c4599-f97b-4e1e-b4ec-43aaa9c2fbad" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084616Z:7e453a5c-e5dd-407e-b26b-96cd50ea7d73" + "SOUTHEASTASIA:20210226T093615Z:dc7c4599-f97b-4e1e-b4ec-43aaa9c2fbad" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:16 GMT" + "Fri, 26 Feb 2021 09:36:15 GMT" ], "Content-Length": [ "485" @@ -276,7 +276,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:12.8833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:12.8833333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"value0\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:13.2033333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:13.2033333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"value0\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -286,7 +286,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "0a3f94c0-5e03-40a8-b135-0fd3a84870c0" + "f1a5486d-51f6-4c31-be73-70554999a926" ], "Accept-Language": [ "en-US" @@ -306,7 +306,7 @@ "no-cache" ], "x-ms-request-id": [ - "0a3f94c0-5e03-40a8-b135-0fd3a84870c0" + "f1a5486d-51f6-4c31-be73-70554999a926" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -321,22 +321,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11993" ], "x-ms-correlation-request-id": [ - "7ae87c23-ae82-4b04-9754-324efbf67760" + "fd404a56-8c1a-4d7d-91e9-6bd4a3bc22c3" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084617Z:7ae87c23-ae82-4b04-9754-324efbf67760" + "SOUTHEASTASIA:20210226T093618Z:fd404a56-8c1a-4d7d-91e9-6bd4a3bc22c3" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:17 GMT" + "Fri, 26 Feb 2021 09:36:17 GMT" ], "Content-Length": [ - "485" + "480" ], "Content-Type": [ "application/json; charset=utf-8" @@ -345,7 +345,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:12.8833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:17.2933333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:13.2033333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:17.49+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -355,7 +355,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "691f5d94-6487-4b81-851f-b03af2770c46" + "2db70959-3b91-417d-952c-eca083c73336" ], "Accept-Language": [ "en-US" @@ -375,7 +375,7 @@ "no-cache" ], "x-ms-request-id": [ - "691f5d94-6487-4b81-851f-b03af2770c46" + "2db70959-3b91-417d-952c-eca083c73336" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -390,22 +390,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11989" ], "x-ms-correlation-request-id": [ - "c80fd8a5-2f02-43f5-92ee-b27d2f058ac7" + "d9fcda85-359d-4070-8554-ed26646d44ef" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084618Z:c80fd8a5-2f02-43f5-92ee-b27d2f058ac7" + "SOUTHEASTASIA:20210226T093618Z:d9fcda85-359d-4070-8554-ed26646d44ef" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:18 GMT" + "Fri, 26 Feb 2021 09:36:18 GMT" ], "Content-Length": [ - "485" + "480" ], "Content-Type": [ "application/json; charset=utf-8" @@ -414,7 +414,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:12.8833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:17.2933333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:13.2033333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:17.49+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -424,7 +424,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c7a56402-699d-4f10-851c-7867035a3b26" + "da31f280-a18e-4d8e-a814-94c4574f8e0f" ], "Accept-Language": [ "en-US" @@ -444,7 +444,7 @@ "no-cache" ], "x-ms-request-id": [ - "c7a56402-699d-4f10-851c-7867035a3b26" + "da31f280-a18e-4d8e-a814-94c4574f8e0f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -459,19 +459,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11988" ], "x-ms-correlation-request-id": [ - "75a0d97e-b4ff-47a6-ad20-11ffc5dde9e1" + "ef8af76a-4a64-4a7f-a2d5-bd93a382251c" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084622Z:75a0d97e-b4ff-47a6-ad20-11ffc5dde9e1" + "SOUTHEASTASIA:20210226T093622Z:ef8af76a-4a64-4a7f-a2d5-bd93a382251c" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:21 GMT" + "Fri, 26 Feb 2021 09:36:22 GMT" ], "Content-Length": [ "51" @@ -493,7 +493,7 @@ "RequestBody": "{\r\n \"name\": \"NormalHashTable\",\r\n \"properties\": {\r\n \"value\": \"{\\\"key0\\\":\\\"value0\\\"}\",\r\n \"description\": \"NormalHashTableVariable\",\r\n \"isEncrypted\": false\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "cdc6e57c-224e-4cb5-96a8-c58865125041" + "55070cc0-5a26-451d-aaa7-79e034608c79" ], "Accept-Language": [ "en-US" @@ -522,7 +522,7 @@ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable?api-version=2015-10-31" ], "x-ms-request-id": [ - "cdc6e57c-224e-4cb5-96a8-c58865125041" + "55070cc0-5a26-451d-aaa7-79e034608c79" ], "x-ms-location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable?api-version=2015-10-31" @@ -543,19 +543,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1197" ], "x-ms-correlation-request-id": [ - "d1e79403-c37a-411f-8fcd-861bcdc937bf" + "6b778d21-c78b-4f06-9c43-09dbca035169" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084613Z:d1e79403-c37a-411f-8fcd-861bcdc937bf" + "SOUTHEASTASIA:20210226T093613Z:6b778d21-c78b-4f06-9c43-09dbca035169" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:12 GMT" + "Fri, 26 Feb 2021 09:36:12 GMT" ], "Content-Length": [ "485" @@ -567,7 +567,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:12.8833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:12.8833333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"value0\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:13.2033333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:13.2033333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key0\\\":\\\"value0\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", "StatusCode": 201 }, { @@ -577,7 +577,7 @@ "RequestBody": "{\r\n \"name\": \"NormalHashTable\",\r\n \"properties\": {\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "0a3f94c0-5e03-40a8-b135-0fd3a84870c0" + "f1a5486d-51f6-4c31-be73-70554999a926" ], "Accept-Language": [ "en-US" @@ -603,7 +603,7 @@ "no-cache" ], "x-ms-request-id": [ - "0a3f94c0-5e03-40a8-b135-0fd3a84870c0" + "f1a5486d-51f6-4c31-be73-70554999a926" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -621,19 +621,19 @@ "1196" ], "x-ms-correlation-request-id": [ - "c812bf63-bee1-4ecf-a3cd-65592695013e" + "c1460746-5238-49f0-a9b2-5fa9e3a8bebb" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084617Z:c812bf63-bee1-4ecf-a3cd-65592695013e" + "SOUTHEASTASIA:20210226T093617Z:c1460746-5238-49f0-a9b2-5fa9e3a8bebb" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:16 GMT" + "Fri, 26 Feb 2021 09:36:17 GMT" ], "Content-Length": [ - "485" + "480" ], "Content-Type": [ "application/json; charset=utf-8" @@ -642,7 +642,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:46:12.8833333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:46:17.2933333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NormalHashTable\",\r\n \"name\": \"NormalHashTable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:36:13.2033333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:36:17.49+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"{\\\"key1\\\":\\\"value1\\\"}\",\r\n \"description\": \"NormalHashTableVariable\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -652,7 +652,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b3ea8896-173c-4f83-9704-2206c33f62e3" + "40f3060d-bb1d-4511-9c16-d9320a8f3acd" ], "Accept-Language": [ "en-US" @@ -672,7 +672,7 @@ "no-cache" ], "x-ms-request-id": [ - "b3ea8896-173c-4f83-9704-2206c33f62e3" + "40f3060d-bb1d-4511-9c16-d9320a8f3acd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -687,19 +687,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14998" + "14997" ], "x-ms-correlation-request-id": [ - "18ae203f-a364-48a5-813e-3f7c351c4bd2" + "fc3969ab-6e44-41bb-a4a5-462e42d7d7ac" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084622Z:18ae203f-a364-48a5-813e-3f7c351c4bd2" + "SOUTHEASTASIA:20210226T093621Z:fc3969ab-6e44-41bb-a4a5-462e42d7d7ac" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:46:21 GMT" + "Fri, 26 Feb 2021 09:36:21 GMT" ], "Expires": [ "-1" diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestStringVariable.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestStringVariable.json index f91fc655f10d..e118409bf31d 100644 --- a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestStringVariable.json +++ b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestStringVariable.json @@ -7,7 +7,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "eb15b78d-c7ef-468b-a2c9-e5fc11558eef" + "7d3a20d9-c065-4d90-a2c4-85b723040e90" ], "Accept-Language": [ "en-US" @@ -30,7 +30,7 @@ "1f2cbd06-83a6-470d-b1bc-af146f663017" ], "x-ms-request-id": [ - "eb15b78d-c7ef-468b-a2c9-e5fc11558eef" + "7d3a20d9-c065-4d90-a2c4-85b723040e90" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -45,19 +45,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" + "11986" ], "x-ms-correlation-request-id": [ - "ad11c6d4-0d1d-444d-b5ce-c6d447df5a33" + "519ae12d-e661-48de-be5f-2401d303a1a0" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084703Z:ad11c6d4-0d1d-444d-b5ce-c6d447df5a33" + "SOUTHEASTASIA:20210226T093710Z:519ae12d-e661-48de-be5f-2401d303a1a0" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:47:03 GMT" + "Fri, 26 Feb 2021 09:37:09 GMT" ], "Content-Length": [ "624" @@ -79,7 +79,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f8c623b2-9f84-44e9-886a-e528c0cad3a8" + "70f4ba23-dbd3-492c-a718-33660ab440f2" ], "Accept-Language": [ "en-US" @@ -99,7 +99,7 @@ "no-cache" ], "x-ms-request-id": [ - "f8c623b2-9f84-44e9-886a-e528c0cad3a8" + "70f4ba23-dbd3-492c-a718-33660ab440f2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -114,19 +114,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11985" + "11986" ], "x-ms-correlation-request-id": [ - "57973d23-38d7-44df-ab39-b6c4eb7d61e4" + "26de4d61-c903-44e9-ae28-85b3c9b30720" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084704Z:57973d23-38d7-44df-ab39-b6c4eb7d61e4" + "SOUTHEASTASIA:20210226T093710Z:26de4d61-c903-44e9-ae28-85b3c9b30720" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:47:03 GMT" + "Fri, 26 Feb 2021 09:37:10 GMT" ], "Content-Length": [ "51" @@ -148,7 +148,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6f8158ab-7bc7-475f-bebb-4f0a80326343" + "5668e862-f27c-4266-bf9e-a6cc6c0f092a" ], "Accept-Language": [ "en-US" @@ -168,7 +168,7 @@ "no-cache" ], "x-ms-request-id": [ - "6f8158ab-7bc7-475f-bebb-4f0a80326343" + "5668e862-f27c-4266-bf9e-a6cc6c0f092a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -183,22 +183,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" + "11985" ], "x-ms-correlation-request-id": [ - "b55c735a-6f03-43c2-8205-068fd480a6a8" + "e1de610c-43fb-427e-8507-af1818cedbb3" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084705Z:b55c735a-6f03-43c2-8205-068fd480a6a8" + "SOUTHEASTASIA:20210226T093712Z:e1de610c-43fb-427e-8507-af1818cedbb3" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:47:05 GMT" + "Fri, 26 Feb 2021 09:37:11 GMT" ], "Content-Length": [ - "443" + "441" ], "Content-Type": [ "application/json; charset=utf-8" @@ -207,7 +207,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue\",\r\n \"name\": \"StringValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:47:04.59+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:47:04.59+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue\",\r\n \"name\": \"StringValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:37:11.2+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:37:11.2+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -217,7 +217,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "240914e6-c1a2-44aa-8f58-b3ad7a83c77b" + "2954ed12-fbbe-42f8-8f9e-1226d10d1ed6" ], "Accept-Language": [ "en-US" @@ -237,7 +237,7 @@ "no-cache" ], "x-ms-request-id": [ - "240914e6-c1a2-44aa-8f58-b3ad7a83c77b" + "2954ed12-fbbe-42f8-8f9e-1226d10d1ed6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -252,22 +252,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11988" ], "x-ms-correlation-request-id": [ - "ede8313c-a3ff-459a-b4e1-341ab520dbd1" + "d6c30386-401e-4777-81e8-6298e6d19b34" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084705Z:ede8313c-a3ff-459a-b4e1-341ab520dbd1" + "SOUTHEASTASIA:20210226T093712Z:d6c30386-401e-4777-81e8-6298e6d19b34" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:47:05 GMT" + "Fri, 26 Feb 2021 09:37:11 GMT" ], "Content-Length": [ - "443" + "441" ], "Content-Type": [ "application/json; charset=utf-8" @@ -276,7 +276,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue\",\r\n \"name\": \"StringValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:47:04.59+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:47:04.59+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue\",\r\n \"name\": \"StringValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:37:11.2+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:37:11.2+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -286,7 +286,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "240914e6-c1a2-44aa-8f58-b3ad7a83c77b" + "2954ed12-fbbe-42f8-8f9e-1226d10d1ed6" ], "Accept-Language": [ "en-US" @@ -306,7 +306,7 @@ "no-cache" ], "x-ms-request-id": [ - "240914e6-c1a2-44aa-8f58-b3ad7a83c77b" + "2954ed12-fbbe-42f8-8f9e-1226d10d1ed6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -321,22 +321,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" + "11987" ], "x-ms-correlation-request-id": [ - "d556756c-68e3-46ee-a2a1-8888f2869330" + "e55a787f-f00b-4862-b9a8-5be0b06f69b4" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084707Z:d556756c-68e3-46ee-a2a1-8888f2869330" + "SOUTHEASTASIA:20210226T093713Z:e55a787f-f00b-4862-b9a8-5be0b06f69b4" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:47:07 GMT" + "Fri, 26 Feb 2021 09:37:12 GMT" ], "Content-Length": [ - "455" + "454" ], "Content-Type": [ "application/json; charset=utf-8" @@ -345,7 +345,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue\",\r\n \"name\": \"StringValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:47:04.59+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:47:06.8666667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValueChanged\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue\",\r\n \"name\": \"StringValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:37:11.2+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:37:13.1433333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValueChanged\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -355,7 +355,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a8b27ec0-27e2-4227-9e7d-d24c03350781" + "5ed9035d-89eb-4eef-9c52-1c26a8308469" ], "Accept-Language": [ "en-US" @@ -375,7 +375,7 @@ "no-cache" ], "x-ms-request-id": [ - "a8b27ec0-27e2-4227-9e7d-d24c03350781" + "5ed9035d-89eb-4eef-9c52-1c26a8308469" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -390,22 +390,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11980" ], "x-ms-correlation-request-id": [ - "90584c73-5a01-4e49-be30-dd2596e424a8" + "abbd3b37-d086-45b9-93d0-05e229006689" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084707Z:90584c73-5a01-4e49-be30-dd2596e424a8" + "SOUTHEASTASIA:20210226T093715Z:abbd3b37-d086-45b9-93d0-05e229006689" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:47:07 GMT" + "Fri, 26 Feb 2021 09:37:15 GMT" ], "Content-Length": [ - "455" + "454" ], "Content-Type": [ "application/json; charset=utf-8" @@ -414,7 +414,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue\",\r\n \"name\": \"StringValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:47:04.59+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:47:06.8666667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValueChanged\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue\",\r\n \"name\": \"StringValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:37:11.2+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:37:13.1433333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValueChanged\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -424,7 +424,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "29ef0f8e-8839-4974-b2ff-8969de6ab956" + "9b73330d-192e-413b-a4b0-1c69193d0260" ], "Accept-Language": [ "en-US" @@ -444,7 +444,7 @@ "no-cache" ], "x-ms-request-id": [ - "29ef0f8e-8839-4974-b2ff-8969de6ab956" + "9b73330d-192e-413b-a4b0-1c69193d0260" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -459,19 +459,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11988" ], "x-ms-correlation-request-id": [ - "cbdb0bf4-baea-40c4-acd9-c79eb998176e" + "e97e8beb-6d24-4774-b85d-6349c9c68592" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084712Z:cbdb0bf4-baea-40c4-acd9-c79eb998176e" + "SOUTHEASTASIA:20210226T093718Z:e97e8beb-6d24-4774-b85d-6349c9c68592" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:47:12 GMT" + "Fri, 26 Feb 2021 09:37:18 GMT" ], "Content-Length": [ "51" @@ -493,7 +493,7 @@ "RequestBody": "{\r\n \"name\": \"StringValue\",\r\n \"properties\": {\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\",\r\n \"isEncrypted\": false\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "f8c623b2-9f84-44e9-886a-e528c0cad3a8" + "70f4ba23-dbd3-492c-a718-33660ab440f2" ], "Accept-Language": [ "en-US" @@ -522,7 +522,7 @@ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue?api-version=2015-10-31" ], "x-ms-request-id": [ - "f8c623b2-9f84-44e9-886a-e528c0cad3a8" + "70f4ba23-dbd3-492c-a718-33660ab440f2" ], "x-ms-location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue?api-version=2015-10-31" @@ -543,22 +543,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1195" ], "x-ms-correlation-request-id": [ - "01c7755c-673e-4962-8ea6-7307df5b4e3a" + "d239fa24-5234-4bea-9be0-737eb20874e4" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084704Z:01c7755c-673e-4962-8ea6-7307df5b4e3a" + "SOUTHEASTASIA:20210226T093711Z:d239fa24-5234-4bea-9be0-737eb20874e4" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:47:04 GMT" + "Fri, 26 Feb 2021 09:37:10 GMT" ], "Content-Length": [ - "443" + "441" ], "Content-Type": [ "application/json; charset=utf-8" @@ -567,7 +567,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue\",\r\n \"name\": \"StringValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:47:04.59+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:47:04.59+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue\",\r\n \"name\": \"StringValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:37:11.2+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:37:11.2+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValue\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", "StatusCode": 201 }, { @@ -577,7 +577,7 @@ "RequestBody": "{\r\n \"name\": \"StringValue\",\r\n \"properties\": {\r\n \"value\": \"\\\"StringValueChanged\\\"\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "240914e6-c1a2-44aa-8f58-b3ad7a83c77b" + "2954ed12-fbbe-42f8-8f9e-1226d10d1ed6" ], "Accept-Language": [ "en-US" @@ -603,7 +603,7 @@ "no-cache" ], "x-ms-request-id": [ - "240914e6-c1a2-44aa-8f58-b3ad7a83c77b" + "2954ed12-fbbe-42f8-8f9e-1226d10d1ed6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -618,22 +618,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1197" ], "x-ms-correlation-request-id": [ - "89763b35-5779-4af3-b8f5-84c3db3b2a2d" + "9d0fc5d5-28ce-4e35-bb58-f82eff421651" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084707Z:89763b35-5779-4af3-b8f5-84c3db3b2a2d" + "SOUTHEASTASIA:20210226T093713Z:9d0fc5d5-28ce-4e35-bb58-f82eff421651" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:47:06 GMT" + "Fri, 26 Feb 2021 09:37:12 GMT" ], "Content-Length": [ - "455" + "454" ], "Content-Type": [ "application/json; charset=utf-8" @@ -642,7 +642,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue\",\r\n \"name\": \"StringValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T16:47:04.59+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T16:47:06.8666667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValueChanged\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/StringValue\",\r\n \"name\": \"StringValue\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:37:11.2+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:37:13.1433333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"\\\"StringValueChanged\\\"\",\r\n \"description\": \"Hello\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -652,7 +652,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ef22b8d7-b2c0-48ab-87e0-a3a3feb0a492" + "580e2cfa-82c0-48a6-9a3a-98033b396dd6" ], "Accept-Language": [ "en-US" @@ -672,7 +672,7 @@ "no-cache" ], "x-ms-request-id": [ - "ef22b8d7-b2c0-48ab-87e0-a3a3feb0a492" + "580e2cfa-82c0-48a6-9a3a-98033b396dd6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -687,19 +687,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" + "14998" ], "x-ms-correlation-request-id": [ - "e805c9b6-b1b6-42f7-b015-2bc42a3a7c81" + "a21f6f96-cf3b-4cdb-b648-7c998f3f2b76" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T084711Z:e805c9b6-b1b6-42f7-b015-2bc42a3a7c81" + "SOUTHEASTASIA:20210226T093718Z:a21f6f96-cf3b-4cdb-b648-7c998f3f2b76" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 08:47:11 GMT" + "Fri, 26 Feb 2021 09:37:18 GMT" ], "Expires": [ "-1" From e5aaab50aa8ec538b4eb94f1d8ea6383abf3cf84 Mon Sep 17 00:00:00 2001 From: wyunchi-ms Date: Fri, 26 Feb 2021 17:55:39 +0800 Subject: [PATCH 6/6] Update test case and fix issue for int --- .../ScenarioTests/VariableTests.ps1 | 4 +- .../TestArrayVariable.json | 150 +++++++++--------- 2 files changed, 77 insertions(+), 77 deletions(-) diff --git a/src/Automation/Automation.Test/ScenarioTests/VariableTests.ps1 b/src/Automation/Automation.Test/ScenarioTests/VariableTests.ps1 index c58b815fe757..9b9d64995328 100644 --- a/src/Automation/Automation.Test/ScenarioTests/VariableTests.ps1 +++ b/src/Automation/Automation.Test/ScenarioTests/VariableTests.ps1 @@ -168,8 +168,8 @@ function Test-ArrayVariable $automationAccountName = "test-automation-0" $output = Get-AzAutomationAccount -ResourceGroupName $resourceGroupName -AutomationAccountName $automationAccountName -ErrorAction SilentlyContinue $variableName = "NewArrayVariable" - $variableValue = Get-Process | where {$_.ProcessName -like "WmiPrvSE"} | Select-Object ProcessName,CPU,Id - $variableValueUpdated = Get-Process | where {$_.ProcessName -like "WmiPrvSE"} | Select-Object ProcessName,Id + $variableValue = @(@{"key1" = "value1"}, @{"key2" = "value2"}, @{"key3" = "value3"}) + $variableValueUpdated = @(@{"key1" = "value1"}, @{"key2" = "value2"}) $variableCreated = New-AzAutomationVariable -ResourceGroupName $resourceGroupName ` -AutomationAccountName $automationAccountName ` diff --git a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestArrayVariable.json b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestArrayVariable.json index ad9199875e50..168e688df455 100644 --- a/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestArrayVariable.json +++ b/src/Automation/Automation.Test/SessionRecords/Commands.Automation.Test.VariableTests/TestArrayVariable.json @@ -7,7 +7,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7c0d805c-0f61-433b-8625-884444045ed6" + "74aa7ddc-977d-45a5-84da-dc2be19d0f54" ], "Accept-Language": [ "en-US" @@ -30,7 +30,7 @@ "1f2cbd06-83a6-470d-b1bc-af146f663017" ], "x-ms-request-id": [ - "7c0d805c-0f61-433b-8625-884444045ed6" + "74aa7ddc-977d-45a5-84da-dc2be19d0f54" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -48,16 +48,16 @@ "11989" ], "x-ms-correlation-request-id": [ - "cb26eb2d-e8d7-4a64-986c-5c4c3cf93d1b" + "33777257-9f69-4abb-ad54-e09ac660983e" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T093658Z:cb26eb2d-e8d7-4a64-986c-5c4c3cf93d1b" + "SOUTHEASTASIA:20210226T095509Z:33777257-9f69-4abb-ad54-e09ac660983e" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 09:36:58 GMT" + "Fri, 26 Feb 2021 09:55:08 GMT" ], "Content-Length": [ "624" @@ -79,7 +79,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9fcf88b0-25fc-4ae6-85c5-1d586c71dace" + "3c738031-5f43-4b5f-b2dd-469d8eaf8e68" ], "Accept-Language": [ "en-US" @@ -99,7 +99,7 @@ "no-cache" ], "x-ms-request-id": [ - "9fcf88b0-25fc-4ae6-85c5-1d586c71dace" + "3c738031-5f43-4b5f-b2dd-469d8eaf8e68" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -114,19 +114,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" + "11993" ], "x-ms-correlation-request-id": [ - "059cde58-26a3-4fef-bb1d-628627af4212" + "08d024b2-f32f-4ff7-bc86-526a1749ba14" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T093700Z:059cde58-26a3-4fef-bb1d-628627af4212" + "SOUTHEASTASIA:20210226T095510Z:08d024b2-f32f-4ff7-bc86-526a1749ba14" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 09:36:59 GMT" + "Fri, 26 Feb 2021 09:55:09 GMT" ], "Content-Length": [ "51" @@ -148,7 +148,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "193df955-1e08-4416-aa77-113013e1a90d" + "9e208b55-9c26-448e-8a5e-072de84c1ef5" ], "Accept-Language": [ "en-US" @@ -168,7 +168,7 @@ "no-cache" ], "x-ms-request-id": [ - "193df955-1e08-4416-aa77-113013e1a90d" + "9e208b55-9c26-448e-8a5e-072de84c1ef5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -183,22 +183,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11992" ], "x-ms-correlation-request-id": [ - "18798c30-77e9-45b3-9c29-577beb229e9e" + "441d9c55-1dbe-4021-98d7-2ad0505ef3b0" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T093701Z:18798c30-77e9-45b3-9c29-577beb229e9e" + "SOUTHEASTASIA:20210226T095511Z:441d9c55-1dbe-4021-98d7-2ad0505ef3b0" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 09:37:01 GMT" + "Fri, 26 Feb 2021 09:55:10 GMT" ], "Content-Length": [ - "844" + "515" ], "Content-Type": [ "application/json; charset=utf-8" @@ -207,7 +207,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:37:01.0533333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:37:01.0533333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:55:11.0566667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:55:11.0566667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"key1\\\":\\\"value1\\\"},{\\\"key2\\\":\\\"value2\\\"},{\\\"key3\\\":\\\"value3\\\"}]\",\r\n \"description\": \"array\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -217,7 +217,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8d80afe6-a0bb-4046-b1c5-98743bbf9d55" + "5a9032a2-2446-46b7-833b-2a40863e122d" ], "Accept-Language": [ "en-US" @@ -237,7 +237,7 @@ "no-cache" ], "x-ms-request-id": [ - "8d80afe6-a0bb-4046-b1c5-98743bbf9d55" + "5a9032a2-2446-46b7-833b-2a40863e122d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -252,22 +252,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11994" ], "x-ms-correlation-request-id": [ - "b09db698-0f1a-4322-8670-830600ae3b55" + "c7f0590b-730d-41ad-9b1b-e444eb6c6d33" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T093702Z:b09db698-0f1a-4322-8670-830600ae3b55" + "SOUTHEASTASIA:20210226T095512Z:c7f0590b-730d-41ad-9b1b-e444eb6c6d33" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 09:37:02 GMT" + "Fri, 26 Feb 2021 09:55:12 GMT" ], "Content-Length": [ - "844" + "515" ], "Content-Type": [ "application/json; charset=utf-8" @@ -276,7 +276,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:37:01.0533333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:37:01.0533333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:55:11.0566667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:55:11.0566667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"key1\\\":\\\"value1\\\"},{\\\"key2\\\":\\\"value2\\\"},{\\\"key3\\\":\\\"value3\\\"}]\",\r\n \"description\": \"array\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -286,7 +286,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8d80afe6-a0bb-4046-b1c5-98743bbf9d55" + "5a9032a2-2446-46b7-833b-2a40863e122d" ], "Accept-Language": [ "en-US" @@ -306,7 +306,7 @@ "no-cache" ], "x-ms-request-id": [ - "8d80afe6-a0bb-4046-b1c5-98743bbf9d55" + "5a9032a2-2446-46b7-833b-2a40863e122d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -321,22 +321,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11993" ], "x-ms-correlation-request-id": [ - "87529c1f-c2bc-432b-be35-ca2717e66f23" + "0b38e095-4ca4-447a-a402-b19a58d1405b" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T093703Z:87529c1f-c2bc-432b-be35-ca2717e66f23" + "SOUTHEASTASIA:20210226T095513Z:0b38e095-4ca4-447a-a402-b19a58d1405b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 09:37:03 GMT" + "Fri, 26 Feb 2021 09:55:13 GMT" ], "Content-Length": [ - "753" + "488" ], "Content-Type": [ "application/json; charset=utf-8" @@ -345,7 +345,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:37:01.0533333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:37:02.9466667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:55:11.0566667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:55:13.15+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"key1\\\":\\\"value1\\\"},{\\\"key2\\\":\\\"value2\\\"}]\",\r\n \"description\": \"array\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -355,7 +355,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "61488b22-b3be-4b38-8852-2c688fd9cb4c" + "249d8260-61b9-4382-96d7-eb3593aac889" ], "Accept-Language": [ "en-US" @@ -375,7 +375,7 @@ "no-cache" ], "x-ms-request-id": [ - "61488b22-b3be-4b38-8852-2c688fd9cb4c" + "249d8260-61b9-4382-96d7-eb3593aac889" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -390,22 +390,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" + "11984" ], "x-ms-correlation-request-id": [ - "d21d36d1-1972-4244-ad0b-c4290aa0f434" + "24fa4727-2d93-4b8e-aa8a-542221608206" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T093704Z:d21d36d1-1972-4244-ad0b-c4290aa0f434" + "SOUTHEASTASIA:20210226T095514Z:24fa4727-2d93-4b8e-aa8a-542221608206" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 09:37:03 GMT" + "Fri, 26 Feb 2021 09:55:14 GMT" ], "Content-Length": [ - "753" + "488" ], "Content-Type": [ "application/json; charset=utf-8" @@ -414,7 +414,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:37:01.0533333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:37:02.9466667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:55:11.0566667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:55:13.15+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"key1\\\":\\\"value1\\\"},{\\\"key2\\\":\\\"value2\\\"}]\",\r\n \"description\": \"array\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -424,7 +424,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "28cf23cc-72ab-42a8-8bdd-046b70fc4430" + "10714f58-aeb4-49ca-90a2-fabe687f1d70" ], "Accept-Language": [ "en-US" @@ -444,7 +444,7 @@ "no-cache" ], "x-ms-request-id": [ - "28cf23cc-72ab-42a8-8bdd-046b70fc4430" + "10714f58-aeb4-49ca-90a2-fabe687f1d70" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -459,19 +459,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11983" ], "x-ms-correlation-request-id": [ - "f7edd17b-363a-4297-af9e-8a826bf9e34d" + "d9d3f2de-e76b-44a7-a122-0b403f16ef08" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T093707Z:f7edd17b-363a-4297-af9e-8a826bf9e34d" + "SOUTHEASTASIA:20210226T095518Z:d9d3f2de-e76b-44a7-a122-0b403f16ef08" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 09:37:06 GMT" + "Fri, 26 Feb 2021 09:55:18 GMT" ], "Content-Length": [ "51" @@ -490,10 +490,10 @@ "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31", "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdBcnJheVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"name\": \"NewArrayVariable\",\r\n \"properties\": {\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\",\r\n \"isEncrypted\": false\r\n }\r\n}", + "RequestBody": "{\r\n \"name\": \"NewArrayVariable\",\r\n \"properties\": {\r\n \"value\": \"[{\\\"key1\\\":\\\"value1\\\"},{\\\"key2\\\":\\\"value2\\\"},{\\\"key3\\\":\\\"value3\\\"}]\",\r\n \"description\": \"array\",\r\n \"isEncrypted\": false\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "9fcf88b0-25fc-4ae6-85c5-1d586c71dace" + "3c738031-5f43-4b5f-b2dd-469d8eaf8e68" ], "Accept-Language": [ "en-US" @@ -508,7 +508,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "528" + "199" ] }, "ResponseHeaders": { @@ -522,7 +522,7 @@ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31" ], "x-ms-request-id": [ - "9fcf88b0-25fc-4ae6-85c5-1d586c71dace" + "3c738031-5f43-4b5f-b2dd-469d8eaf8e68" ], "x-ms-location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31" @@ -543,22 +543,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1197" ], "x-ms-correlation-request-id": [ - "a42c11e1-b8f1-40b5-a101-da521260c6dd" + "c0aa82b6-9b2d-4548-9e61-4ce3eb591289" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T093701Z:a42c11e1-b8f1-40b5-a101-da521260c6dd" + "SOUTHEASTASIA:20210226T095511Z:c0aa82b6-9b2d-4548-9e61-4ce3eb591289" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 09:37:00 GMT" + "Fri, 26 Feb 2021 09:55:10 GMT" ], "Content-Length": [ - "844" + "515" ], "Content-Type": [ "application/json; charset=utf-8" @@ -567,17 +567,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:37:01.0533333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:37:01.0533333+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"CPU\\\":null,\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:55:11.0566667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:55:11.0566667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"key1\\\":\\\"value1\\\"},{\\\"key2\\\":\\\"value2\\\"},{\\\"key3\\\":\\\"value3\\\"}]\",\r\n \"description\": \"array\"\r\n }\r\n}", "StatusCode": 201 }, { "RequestUri": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable?api-version=2015-10-31", "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOWUyMjNkYmUtMzM5OS00ZTE5LTg4ZWItMDk3NWYwMmFjODdmL3Jlc291cmNlR3JvdXBzL3d5dW5jaGktYXV0b21hdGlvbi9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL3Rlc3QtYXV0b21hdGlvbi0wL3ZhcmlhYmxlcy9OZXdBcnJheVZhcmlhYmxlP2FwaS12ZXJzaW9uPTIwMTUtMTAtMzE=", "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"name\": \"NewArrayVariable\",\r\n \"properties\": {\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\"\r\n }\r\n}", + "RequestBody": "{\r\n \"name\": \"NewArrayVariable\",\r\n \"properties\": {\r\n \"value\": \"[{\\\"key1\\\":\\\"value1\\\"},{\\\"key2\\\":\\\"value2\\\"}]\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "8d80afe6-a0bb-4046-b1c5-98743bbf9d55" + "5a9032a2-2446-46b7-833b-2a40863e122d" ], "Accept-Language": [ "en-US" @@ -592,7 +592,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "381" + "121" ] }, "ResponseHeaders": { @@ -603,7 +603,7 @@ "no-cache" ], "x-ms-request-id": [ - "8d80afe6-a0bb-4046-b1c5-98743bbf9d55" + "5a9032a2-2446-46b7-833b-2a40863e122d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -618,22 +618,22 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1198" ], "x-ms-correlation-request-id": [ - "f8676f04-cc79-47fe-9bbe-a7392cff6f5a" + "3d051d2b-5857-4ed5-8727-2a860ba5ebbb" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T093703Z:f8676f04-cc79-47fe-9bbe-a7392cff6f5a" + "SOUTHEASTASIA:20210226T095513Z:3d051d2b-5857-4ed5-8727-2a860ba5ebbb" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 09:37:03 GMT" + "Fri, 26 Feb 2021 09:55:13 GMT" ], "Content-Length": [ - "753" + "488" ], "Content-Type": [ "application/json; charset=utf-8" @@ -642,7 +642,7 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:37:01.0533333+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:37:02.9466667+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":4760},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":6720},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":7072},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":9524},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":15888},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":16664},{\\\"ProcessName\\\":\\\"WmiPrvSE\\\",\\\"Id\\\":34984}]\",\r\n \"description\": \"array\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-automation/providers/Microsoft.Automation/automationAccounts/test-automation-0/variables/NewArrayVariable\",\r\n \"name\": \"NewArrayVariable\",\r\n \"type\": \"Microsoft.Automation/AutomationAccounts/Variables\",\r\n \"properties\": {\r\n \"creationTime\": \"2021-02-26T17:55:11.0566667+08:00\",\r\n \"lastModifiedTime\": \"2021-02-26T17:55:13.15+08:00\",\r\n \"isEncrypted\": false,\r\n \"value\": \"[{\\\"key1\\\":\\\"value1\\\"},{\\\"key2\\\":\\\"value2\\\"}]\",\r\n \"description\": \"array\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -652,7 +652,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b2b432e6-1c13-4c1e-b63a-41459ed4663a" + "0794f08f-040f-4e3d-9bba-c2b1ec14f91a" ], "Accept-Language": [ "en-US" @@ -672,7 +672,7 @@ "no-cache" ], "x-ms-request-id": [ - "b2b432e6-1c13-4c1e-b63a-41459ed4663a" + "0794f08f-040f-4e3d-9bba-c2b1ec14f91a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -687,19 +687,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14997" + "14999" ], "x-ms-correlation-request-id": [ - "2021b8ef-042d-41ab-8ff0-64c41bb3a707" + "738b07f1-55ff-4496-a1ca-93b690dedb13" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20210226T093707Z:2021b8ef-042d-41ab-8ff0-64c41bb3a707" + "SOUTHEASTASIA:20210226T095517Z:738b07f1-55ff-4496-a1ca-93b690dedb13" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Fri, 26 Feb 2021 09:37:06 GMT" + "Fri, 26 Feb 2021 09:55:17 GMT" ], "Expires": [ "-1"