Skip to content

Commit 294ae10

Browse files
(AzureCXP) resolves MicrosoftDocs/azure-docs#51593
updated command
1 parent 993e542 commit 294ae10

File tree

1 file changed

+1
-1
lines changed
  • articles/virtual-machines/windows

1 file changed

+1
-1
lines changed

articles/virtual-machines/windows/winrm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Source code for this template can be found on [GitHub](https://github.com/Azure/
136136
$vm = New-AzVMConfig -VMName "<VM name>" -VMSize "<VM Size>"
137137
$credential = Get-Credential
138138
$secretURL = (Get-AzKeyVaultSecret -VaultName "<vault name>" -Name "<secret name>").Id
139-
$vm = Set-AzVMOperatingSystem -VM $vm -Windows -ComputerName "<Computer Name>" -Credential $credential -WinRMHttp -WinRMHttps -WinRMCertificateUrl $secretURL
139+
$vm = Set-AzVMOperatingSystem -VM $vm -Windows -ComputerName "<Computer Name>" -Credential $credential -WinRMHttp -WinRMHttps -ProvisionVMAgent -WinRMCertificateUrl $secretURL
140140
$sourceVaultId = (Get-AzKeyVault -ResourceGroupName "<Resource Group name>" -VaultName "<Vault Name>").ResourceId
141141
$CertificateStore = "My"
142142
$vm = Add-AzVMSecret -VM $vm -SourceVaultId $sourceVaultId -CertificateStore $CertificateStore -CertificateUrl $secretURL

0 commit comments

Comments
 (0)