File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
articles/virtual-machines/windows Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ Source code for this template can be found on [GitHub](https://github.com/Azure/
136
136
$vm = New-AzVMConfig -VMName "<VM name>" -VMSize "<VM Size>"
137
137
$credential = Get-Credential
138
138
$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
140
140
$sourceVaultId = (Get-AzKeyVault -ResourceGroupName "<Resource Group name>" -VaultName "<Vault Name>").ResourceId
141
141
$CertificateStore = "My"
142
142
$vm = Add-AzVMSecret -VM $vm -SourceVaultId $sourceVaultId -CertificateStore $CertificateStore -CertificateUrl $secretURL
You can’t perform that action at this time.
0 commit comments