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
- Host: GitHub
- URL: https://github.com/polatengin/az_bicep_generate
- Owner: polatengin
- License: mit
- Created: 2022-04-06T22:03:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-07T20:35:17.000Z (over 3 years ago)
- Last Synced: 2025-02-11T13:47:46.288Z (8 months ago)
- Topics: arm-templates, azure, azure-cli, bash, bicep, cli, command-line, extend
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.