I have a json arm template (file.json as an example):
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"parameter1": {
"value": "test"
},
"patameter2": {
"value": "test"
},
"parameter3": {
"value": "test". (should be "defaultValue: "")
}
}
}
I have to replace all values to str"" by python script. Could someone advise me on that?
Thank you in advance.
So what I think you're saying is you want to set all "value":""
You can use the json
python library and iterate over all parameters
and set the value
to ""
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.