From 9ceffe97354579f3a036c61e70fc1636b14a8af3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Jan=C3=ADk?= <57525616+petrjanikac@users.noreply.github.com> Date: Wed, 30 Aug 2023 12:02:57 +0200 Subject: [PATCH] Add missing parameter EnvironmentId --- 2LCS/HttpClientHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2LCS/HttpClientHelper.cs b/2LCS/HttpClientHelper.cs index b084c03..744b6fb 100644 --- a/2LCS/HttpClientHelper.cs +++ b/2LCS/HttpClientHelper.cs @@ -705,7 +705,7 @@ internal Response StartSandboxServicing(DeployablePackage package, string platfo internal async Task StartStopDeployment(CloudHostedInstance instance, string action) { - var parameters = $"{action}=&ActivityId={instance.ActivityId}&ProductName={WebUtility.UrlEncode(instance.ProductName)}&TopologyName={instance.TopologyName}&TopologyInstanceId={instance.InstanceId}&AzureSubscriptionId={instance.AzureSubscriptionId}&EnvironmentGroup=0"; + var parameters = $"{action}=&ActivityId={instance.ActivityId}&ProductName={WebUtility.UrlEncode(instance.ProductName)}&TopologyName={instance.TopologyName}&TopologyInstanceId={instance.InstanceId}&AzureSubscriptionId={instance.AzureSubscriptionId}&EnvironmentGroup=0&EnvironmentId={instance.EnvironmentId}"; using (_stringContent = new StringContent(parameters, Encoding.UTF8, "application/x-www-form-urlencoded")) { SetRequestVerificationToken($"{LcsUrl}/V2"); @@ -904,4 +904,4 @@ private void Dispose(bool disposing) } } } -} \ No newline at end of file +}