Skip to content

document and command samples for Mac/Linux users #1235

Description

@ozbillwang

Description

ref : https://github.com/Azure/ResourceModules/blob/main/docs/wiki/The%20library%20-%20Module%20usage.md

Currently both sample for PowerUser and Azure CLI are for Windows Users

I'd like to change the sample part of Azure CLI to pure Mac/Linux usage:

From

az group create --name 'ExampleGroup' --location "Central US"
$inputObject = @(
    '--name',           'ExampleDeployment',
    '--resource-group', 'ExampleGroup',
    '--template-file',  "$home\ResourceModules\arm\Microsoft.KeyVault\vault\deploy.bicep",
    '--parameters',     'storageAccountType=Standard_GRS',
)
az deployment group create @inputObject

to

az group create --name 'ExampleGroup' --location "Central US"
inputObject=(
    '--name'           'ExampleDeployment'
    '--resource-group' 'ExampleGroup'
    '--template-file'  "$home/ResourceModules/arm/Microsoft.KeyVault/vault/deploy.bicep"
    '--parameters'     'storageAccountType=Standard_GRS'
)
az deployment group create ${inputObject[@]}

if you agree this idea, I can raise PR to update it

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Type

No type

Projects

  • Status
    In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions