You plan to deploy several Azure virtual machines that will run Windows Server 2019 in a virtual machine scale set by using an Azure Resource Manager template.
You need to ensure that NGINX is available on all the virtual machines after they are deployed.
What should you use?
A . Azure Active Directory (Azure AD) Application Proxy
B . Azure Custom Script Extension
C . Azure Application Insights
D . the New-AzConfigurationAssignement cmdlet
Answer: B
Explanation:
Create a VM with NGINX
This script creates an Azure Virtual Machine and uses the Azure Virtual Machine Custom Script Extension to install NGINX.
#!/bin/bash
# Create a resource group.
az group create –name myResourceGroup –location westeurope
# Create a new virtual machine, this creates SSH keys if not present.
az vm create –resource-group myResourceGroup –name myVM –image UbuntuLTS –generate-ssh-keys
# Open port 80 to allow web traffic to host.
az vm open-port –port 80 –resource-group myResourceGroup –name myVM
# Use CustomScript extension to install NGINX.
az vm extension set
–publisher Microsoft.Azure.Extensions
–version 2.0
–name CustomScript
–vm-name myVM
–resource-group myResourceGroup
–settings ‘{"commandToExecute":"apt-get -y update && apt-get -y install nginx"}’
Reference: https://docs.microsoft.com/en-us/azure/virtual-machines/scripts/virtual-machines-linux-cli-sample-create-vmnginx
Latest AZ-104 Dumps Valid Version with 416 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund