Skip to content

Commit 87e0174

Browse files
committed
Merge pull request Azure#150 from hyonholee/crp2
Change parameter name, WinRMCertUrl to WinRMCertificateUrl
2 parents 1325d1f + 199830a commit 87e0174

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineProfileTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function Test-VirtualMachineProfile
8080
$custom = "echo 'Hello World'";
8181
$encodedCustom = "ZWNobyAnSGVsbG8gV29ybGQn";
8282

83-
$p = Set-AzureVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -CustomData $custom -WinRMHttp -WinRMHttps -WinRMCertUrl $winRMCertUrl -ProvisionVMAgent -EnableAutoUpdate -TimeZone $timeZone;
83+
$p = Set-AzureVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -CustomData $custom -WinRMHttp -WinRMHttps -WinRMCertificateUrl $winRMCertUrl -ProvisionVMAgent -EnableAutoUpdate -TimeZone $timeZone;
8484
$p = Set-AzureVMSourceImage -VM $p -Name $img;
8585
$subid = (Get-AzureSubscription -Current).SubscriptionId;
8686

src/ResourceManager/Compute/Commands.Compute/VirtualMachine/Config/SetAzureVMOperatingSystemCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public class SetAzureVMOperatingSystemCommand : AzurePSCmdlet
135135
ValueFromPipelineByPropertyName = true,
136136
HelpMessage = "Url for WinRM certificate")]
137137
[ValidateNotNullOrEmpty]
138-
public Uri WinRMCertUrl { get; set; }
138+
public Uri WinRMCertificateUrl { get; set; }
139139

140140
// Linux Parameter Sets
141141
[Parameter(
@@ -201,7 +201,7 @@ public override void ExecuteCmdlet()
201201
listenerList.Add(new WinRMListener
202202
{
203203
Protocol = ProtocolTypes.Https,
204-
CertificateUrl = this.WinRMCertUrl,
204+
CertificateUrl = this.WinRMCertificateUrl,
205205
});
206206
}
207207

0 commit comments

Comments
 (0)