ResourceModules
ResourceModules copied to clipboard
document and command samples for Mac/Linux users
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
Ok, raised the PR, let's see
https://github.com/Azure/ResourceModules/pull/1236
I also start a dicussion for Mac/Linux users on how to use these modules in this repo
https://github.com/Azure/ResourceModules/discussions/1237
join the dicussion, if you have similar requirement
@ozbillwang will you create a new PR regarding the new WIKI page?
snippets will be tested on Mac/Linux with PS core to check if the current code works
Happy to support and test snippets on MacOS under pwsh
if needed.