An open API service indexing awesome lists of open source software.

https://github.com/polatengin/az_bicep_generate

add `bicep generate` sub-command to azure cli (az) tool
https://github.com/polatengin/az_bicep_generate

arm-templates azure azure-cli bash bicep cli command-line extend

Last synced: 4 months ago
JSON representation

add `bicep generate` sub-command to azure cli (az) tool

Awesome Lists containing this project

README

          

# az_bicep_generate

add bicep generate sub-command to azure cli (az) tool

## usage

Source the bash script file `.az_bicep_generate.sh` in your current shell.

```bash
. .az_bicep_generate.sh
```

It can be automatically sourced by adding the following to your `.bashrc` file:

```bash
. .az_bicep_generate.sh
```

To generate a `bicep` file from the existing Azure Resource Group, run the following command:

```bash
az bicep generate --resource-group-name --output-file
```

If `--output-file` argument is not specified, the `bicep` file will be generated with the Resource Group name, for example:

```bash
az bicep generate --resource-group-name rg-test
```

Will generate _rg-test.bicep_ file in the current directory.

If `--resource-group-name` argument is not specified, usage message will be displayed on the terminal.