You administer a Windows Server virtual machine (VM).
You upload the VM to Azure.
You need to ensure that you are able to deploy the BGInfo and VMAccess extensions.
What should you do?
A.
Select the Install the VM Agent checkbox while provisioning a VM based on your uploaded VHD.
B.
Select the Enable the VM Extensions checkbox while provisioning a VM based on your uploaded VHD.
C.
Install the VM Agent MSI and execute the following Power Shell commands:$vm = Get-AzureVM –
serviceName $svc -Name $name$vm.VM.ProvisionGuestAgent = $trueUpdate-AzureVM -Name Sname –
VM $vm.VM -ServiceName $svc
D.
Install the VM Agent MSI and execute the following Power Shell commands:$vm = Get-AzureVM –
serviceName $svc -Name $nameSet-AzureVMBGInfoExtension -VM $vm.VMSet-AzureVM Access
Extension -VM $vm.VMUpdate-AzureVM -Name Sname -VM $vm.VM -ServiceName $svc
Explanation:
You are uploading a VM to Azure (not provisioning a VM from Azure – so therefore needs the VM Agent MSI)
Is VM Agent installed?
$x = Get-AzureVM -ServiceName $vmName
$x.vm.ProvisionGuestAgent
If ‘False’ –
1. Install standalone VM Agent
2. Inform the Azure platform that the VM now has the agent installed
$vm = Get-AzureVM –serviceName $svc –Name $name $vm.VM.ProvisionGuestAgent = $TRUE UpdateAzureVM –Name $name -VM $vm.VM -ServiceName $svc
https://msdn.microsoft.com/en-us/library/azure/dn832621.aspx
D?
Think it’s D too