You need to ensure that password parameters are passed …

You are the administrator for your company’s Azure subscription.
Company policy dictates that you must deploy new Azure Resource Manager (ARM) templates using Azure
Command-Line Interface (CLI). Parameters are included in a file called azuredeploy.parameters.json and do
not contain any password information. All JSON files are located in the root of drive E.
You need to ensure that password parameters are passed to the command.Which two commands are possible ways to achieve this goal? Each correct answer presents a complete
solution.

You are the administrator for your company’s Azure subscription.
Company policy dictates that you must deploy new Azure Resource Manager (ARM) templates using Azure
Command-Line Interface (CLI). Parameters are included in a file called azuredeploy.parameters.json and do
not contain any password information. All JSON files are located in the root of drive E.
You need to ensure that password parameters are passed to the command.Which two commands are possible ways to achieve this goal? Each correct answer presents a complete
solution.

A.
Add the appropriate password parameters to the azuredeploy.parameters.json file and then run the
following CLI command:azure group create –n “ARMBasic” –l “West US” –f “e:\\azuredeploy.json” –e “e:
\\azuredeploy.parameters.json”

B.
Run the following CLI command. Do not add additional switches:azure group create –n “ARMBasic” –l
“West US” –f “e:\\azuredeploy.json” –e “e:\\azuredeploy.parameters.json”

C.
Run the following CLI command. Add a switch to include password parameters:azure group create –n
“ARMBasic” –l “West US” –f “e:\\azuredeploy.json”

D.
Run the following CLI command. Add switches to include all parameters:azure group create –n “ARMBasic”
–l “West US” –f “e:\\azuredeploy.json”



Leave a Reply 4

Your email address will not be published. Required fields are marked *


ExamsRfun

ExamsRfun

I swear to the IT Gods.. This question confuses the shIT out of me.. Can someone please explain the logic behind this one?

Would the CLI command not be azure group DEPLOYMENT create xxxxx ?

checking

checking

I’m saying A and D –
Reasoning :

-n (or –name). Name of the resource group to be created.
-l (or –location). Azure region where the resource group will be created.
-f (or –template-file). Path to your ARM template file.
-e (or –parameters-file). Path to your ARM parameters file.
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-create-nsg-arm-template ( I know this is for NSG but the switches are what is important)

And for D you can add custom parameter switches for the password

mslover

mslover

Agree A and D are correct. A the password params are added to the parameters file; D you can use -e and -p to pass the params in the file and add the password params to the command line.

Template parameters overview.
https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-authoring-templates#parameters

There doesn’t seems to be an online resource for CLI 1.0 commands, but the options are in the source here.
https://github.com/Azure/azure-xplat-cli/blob/dev/lib/commands/arm/group/group._js#L40

-f –template-file the path to the template file in the file system
-e –parameters-file a file containing parameters
-p –parameters a JSON-formatted string containing parameters

Nyanta

Nyanta

Answer is correct.
With the CLI 1.0(command starts with ‘azure’), when you deploy from template and there are parameters values you need to provide, the CLI will prompt for those if you don’t specify them. With the CLI 2.0(command starts with ‘az’), you have to load the json template, see what parameters are being requested, and then pass a big long json string in under –parameters or take the additional step to create a parameters file and then pass that in.