rad recipe register CLI reference
Details on the rad recipe register Radius CLI command
rad recipe register
Add a recipe to an environment.
Synopsis
Add a recipe to an environment. You can specify parameters using the ‘–parameter’ flag (’-p’ for short). Parameters can be passed as:
- A file containing a single value in JSON format
- A key-value-pair passed in the command line
rad recipe register [recipe-name] [flags]
Examples
# Add a recipe to an environment
rad recipe register cosmosdb -e env_name -w workspace --template-kind bicep --template-path template_path --resource-type Applications.Datastores/mongoDatabases
# Specify a parameter
rad recipe register cosmosdb -e env_name -w workspace --template-kind bicep --template-path template_path --resource-type Applications.Datastores/mongoDatabases --parameters throughput=400
# specify multiple parameters using a JSON parameter file
rad recipe register cosmosdb -e env_name -w workspace --template-kind bicep --template-path template_path --resource-type Applications.Datastores/mongoDatabases --parameters @myfile.json
Options
-e, --environment string The environment name
-g, --group string The resource group name
-h, --help help for register
-o, --output string output format (supported formats are json, table) (default "table")
-p, --parameters stringArray Specify parameters for the deployment
--plain-http Connect to the Bicep registry using HTTP (not-HTTPS). This should be used when the registry is known not to support HTTPS, for example in a locally-hosted registry. Defaults to false (use HTTPS/TLS).
--resource-type string specify the type of the portable resource this recipe can be consumed by
--template-kind string specify the kind for the template provided by the recipe.
--template-path string specify the path to the template provided by the recipe.
--template-version string specify the version for the terraform module.
-w, --workspace string The workspace name
Options inherited from parent commands
--config string config file (default "$HOME/.rad/config.yaml")
SEE ALSO
- rad recipe - Manage recipes
Feedback
Was this page helpful?
Glad to hear it! Please feel free to star our repo and join our Discord server to stay up to date with the project.
Sorry to hear that. If you would like to also contribute a suggestion visit and tell us how we can improve.