You are writing a reusable ARM template that deploys a virtual machine to several environments. The template must meet the following requirements:
- The engineer who runs the deployment can choose the VM size at deployment time.
- Only
Standard_B2s,Standard_D2s_v3orStandard_D4s_v3is accepted as the VM size. - If the engineer does not specify a size,
Standard_B2sis used. - The administrator password is masked in deployment logs.
How should you define vmSize and adminPassword in the template?
Choose one answer.
- vmSize: variable set to Standard_B2s; adminPassword: securestring parameter
- vmSize: string parameter with defaultValue and allowedValues; adminPassword: string parameter
- vmSize: string parameter with defaultValue and allowedValues; adminPassword: securestring parameter
- vmSize: string parameter with allowedValues and no defaultValue; adminPassword: securestring parameter
- vmSize: string parameter with defaultValue and no allowedValues; adminPassword: securestring parameter