File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/Common/Commands.ScenarioTest/Resources/ServiceManagement Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -430,12 +430,13 @@ function Run-AutoGeneratedServiceExtensionCmdletTests
430
430
# Invoke Deployment Change Configuration
431
431
$p2 = New-AzureComputeArgumentList - MethodName DeploymentChangeConfigurationBySlot;
432
432
$p2 [0 ].Value = $svcName ;
433
- $p2 [1 ].Value = ' Production' ;
433
+ $p2 [1 ].Value = [ Microsoft.WindowsAzure.Management.Compute.Models.DeploymentSlot ]:: Production;
434
434
$p2 [2 ].Value = New-Object - TypeName Microsoft.WindowsAzure.Management.Compute.Models.DeploymentChangeConfigurationParameters;
435
435
$p2 [2 ].Value.Configuration = $deployment.Configuration ;
436
436
$p2 [2 ].Value.ExtensionConfiguration = New-Object - TypeName Microsoft.WindowsAzure.Management.Compute.Models.ExtensionConfiguration;
437
- $p2 [2 ].Value.ExtensionConfiguration.AllRoles.Add($p1 [1 ].Value.Id);
438
- $st = Invoke-AzureComputeMethod - MethodName DeploymentChangeConfigurationBySlot - ServiceName $p2 [0 ].Value - DeploymentSlot $p2 [1 ].Value - DeploymentChangeConfigurationBySlotParameters $p2 [2 ].Value;
437
+ $p2 [2 ].Value.ExtensionConfiguration.AllRoles.Add(' test' );
438
+ $d2 = ($p2 | select - ExpandProperty Value);
439
+ $st = Invoke-AzureComputeMethod - MethodName DeploymentChangeConfigurationBySlot - ArgumentList $d2 ;
439
440
440
441
# Invoke Hosted Service Delete
441
442
$st = Invoke-AzureComputeMethod - MethodName ' HostedServiceDeleteAll' - ArgumentList $svcName ;
You can’t perform that action at this time.
0 commit comments