Merge pull request #279 from mumian/master
add a cli sample for accessing environment variable
This commit is contained in:
Коммит
f988e9d5ec
|
@ -29,7 +29,17 @@
|
||||||
"AzCliVersion": "2.15.0",
|
"AzCliVersion": "2.15.0",
|
||||||
"timeout": "PT30M",
|
"timeout": "PT30M",
|
||||||
"arguments": "'foo' 'bar'",
|
"arguments": "'foo' 'bar'",
|
||||||
"scriptContent": "result=$(az keyvault list); echo \"arg1 is: $1\"; echo \"arg2 is: $2\"; echo $result | jq -c '{Result: map({id: .id})}' > $AZ_SCRIPTS_OUTPUT_PATH",
|
"environmentVariables": [
|
||||||
|
{
|
||||||
|
"name": "UserName",
|
||||||
|
"value": "jdole"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Password",
|
||||||
|
"secureValue": "jDolePassword"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"scriptContent": "result=$(az keyvault list); echo \"arg1 is: $1\"; echo \"arg2 is: $2\"; echo \"Username is: $UserName\"; echo \"password is: $Password\"; echo $result | jq -c '{Result: map({id: .id})}' > $AZ_SCRIPTS_OUTPUT_PATH",
|
||||||
"cleanupPreference": "OnSuccess",
|
"cleanupPreference": "OnSuccess",
|
||||||
"retentionInterval": "P1D"
|
"retentionInterval": "P1D"
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче