cli-sedHow can I use cli sed to deploy an ARM template?
Using the command line interface sed
to deploy an ARM template is relatively straightforward.
First, create the ARM template. This can be done in either a text editor or in Azure Portal. Once the template is ready, save it to a file.
Next, use sed
to modify the ARM template file. For example, the following command would replace the <location>
placeholder with eastus
:
sed -i 's/<location>/eastus/g' armtemplate.json
The output of this command would be:
Finally, deploy the ARM template file using the az
command line tool. This can be done using the az group deployment create
command, as shown below:
az group deployment create --name MyDeployment --resource-group MyResourceGroup --template-file armtemplate.json
The output of this command would be the deployment details, such as the provisioning state, the template link, and the timestamp.
Helpful links
More of Cli Sed
- How do I use CLI sed to uninstall a module?
- How do I use the command line to edit text using sed?
- How can I use the sed command in the Ubuntu command line interface?
- How can I use the command line to compress and edit files with sed and zip?
- How do I use the commandline sed tool to edit a file?
- How can I set up the Xcode command line interface?
- How can I use sed in the command line on a Mac?
- How can I use SED in a Windows command line interface?
- How can I use the command line to print the output of a sed command?
- How can I use the CLI sed command to generate output?
See more codes...