html – Issue piping variables into popen command with Python Azure CLI

html – Issue piping variables into popen command with Python Azure CLI

Format your string like this:

az storage account create -n {name} -g {resourcegroup} --subscription {subscriptionid} -l {location} --sku {sku}.format(name=name, resourcegroup=resourcegroup, subscriptionid=subcription, location=location, sku=sku)

You can also use f-strings:

faz storage account create -n {name} -g {resourcegroup} --subscription {subscription} -l {location} --sku {sku}

html – Issue piping variables into popen command with Python Azure CLI

Leave a Reply

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