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?$name$vm.VM.ProvisionGuestAgent = $trueUpdate-AzureVM -Name Sname -VM $vm.VM -ServiceName $svcAzureVMBGInfoExtension -VM $vm.VMSet-AzureVM Access Extension -VM $vm.VMUpdate-AzureVM -Name Sname -VM $vm.VM -ServiceName $svcYou 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.ProvisionGuestAgentIf ‘False’ –• Install standalone VM Agent• Inform the Azure platform that the VM now has the agent installed$vm = Get-AzureVM -serviceName $svc -Name $name $vm.VM.ProvisionGuestAgent = $TRUE Update-AzureVM -Name $name -VM $vm.VM -ServiceName$svcReferences: https://msdn.microsoft.com/en-us/library/azure/dn832621.aspx
Question:
What should you do?
Options:
Select the Install the VM Agent checkbox while provisioning a VM based on your uploaded VHD.
Select the Enable the VM Extensions checkbox while provisioning a VM based on your uploaded VHD.
Install the VM Agent MSI and execute the following Power Shell commands:$vm = Get-AzureVM -serviceName $svc -Name
Install the VM Agent MSI and execute the following Power Shell commands:$vm = Get-AzureVM -serviceName $svc -Name $nameSet-
Correct Answer
The Correct Answer for this Question is
Install the VM Agent MSI and execute the following Power Shell commands:$vm = Get-AzureVM -serviceName $svc -Name