Custom Script Extension is the way to install something like NGINX during VMSS deployment, so C fits. The others don't actually do the app install piece. Pretty sure that's what Microsoft recommends for post-provisioning config, but let me know if anyone's seen a different method used in scale set ARM templates.
Q: 7
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?
Options
Discussion
Option C
Not A, it should be C. Custom Script Extension actually handles script execution during deployment, so you can install NGINX right after provisioning. Publish-AzVMDscConfiguration is more for DSC configs, not quick software installs. Think this lines up with most Azure practice labs, but open to discussion.
B tbh
C for sure. Azure Custom Script Extension lets you run scripts during deployment, which is perfect for automatically installing NGINX on scale set VMs. D commonly trips people up, but that's more for client endpoints, not Windows Server in this context. Pretty sure about this, but open to correction if I'm missing something.
You need to watch for OS type here. D only fits if they're client devices or Endpoint Manager is specified, which it isn't-these are Windows Server VMs. So C.
C , nothing else here actually installs apps on VMSS at deploy.
B is wrong, C. . Application Insights is just for monitoring, not installing software. Pretty sure Custom Script Extension is what you use for post-deployment setups like this. Think D throws people off here.
C for sure. Custom Script Extension handles the app install right at deployment. B and D don't provision software like that.
These Microsoft questions are so picky with wording, tbh C fits here since Custom Script Extension directly installs stuff like NGINX during VMSS deployment. D only makes sense if Endpoint Manager was mentioned. Anyone disagree?
Be respectful. No spam.
Question 7 of 35