PrepAway - Latest Free Exam Questions & Answers

You need to ensure that you are able to deploy the BGIn…

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?

PrepAway - Latest Free Exam Questions & Answers

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 $name Set-AzureVMBGInfoExtension -VM $vm.VMSet-AzureVM
Access Extension -VM $vm.VM
Update-AzureVM -Name Sname -VM $vm.VM -ServiceName $svc

Explanation:
The VM Agent can be enabled by manually downloading and installing the VM Agent (either the
Windows or Linux version) on an existing VM instance and then setting the ProvisionGuestAgent
value to true using Powershell or a REST call. (If you do not set this value after manually installing
the VM Agent, the addition of the VM Agent is not detected properly.) The following code example
shows how to do this using PowerShell where the $svc and $name arguments have already been
determined:
$vm = Get-AzureVM -serviceName $svc -Name $name
$vm.VM.ProvisionGuestAgent = $TRUE
Update-AzureVM -Name $name -VM $vm.VM -ServiceName $svc

2 Comments on “You need to ensure that you are able to deploy the BGIn…

  1. Andrew says:

    For install bginfo this is the command:

    Get-AzureVM –ServiceName –Name | Set-AzureVMBGInfoExtension | Update-AzureVM

    so the correct answer is D, why C?




    0



    0

Leave a Reply