rad environment update CLI reference
Details on the rad environment update Radius CLI command
❗️ Preview Release: This documentation covers a preview of Radius which uses different Resource Types from the current release. Enable it by passing the --preview to the Radius CLI or settingRADIUS_PREVIEW=true.
rad environment update
Update environment configuration
Synopsis
Update environment configuration
This command updates the configuration of an environment for properties that are able to be changed.
Properties that can be updated include:
- providers (Azure, AWS)
All other properties require the environment to be deleted and recreated.
rad environment update [environment] [flags]
Examples
## Add Azure cloud provider for deploying Azure resources
rad env update myenv --azure-subscription-id **** --azure-resource-group myrg
## Add AWS cloud provider for deploying AWS resources
rad env update myenv --aws-region us-west-2 --aws-account-id *****
## Remove Azure cloud provider
rad env update myenv --clear-azure
## Remove AWS cloud provider
rad env update myenv --clear-aws
## Add Kubernetes cloud provider (preview)
## The namespace can only be set on an environment that does not already have one; it is
## immutable afterwards.
rad env update myenv --kubernetes-namespace mynamespace
## Set recipe packs to environment (--preview)
rad env update myenv --recipe-packs pack1,pack2
## Set recipe packs from a different resource group to environment (--preview)
rad env update myenv --recipe-packs pack1 --recipe-pack-group other-group
Options
--aws-account-id string The account ID where AWS resources will be deployed
--aws-region string The region where AWS resources will be deployed
--azure-resource-group string The resource group where Azure resources will be deployed
--azure-subscription-id string The subscription ID where Azure resources will be deployed
--clear-aws Specify if aws provider needs to be cleared on env
--clear-azure Specify if azure provider needs to be cleared on env
-e, --environment string The environment name
-g, --group string The resource group name
-h, --help help for update
--kubernetes-namespace string The namespace where Kubernetes resources will be deployed
--preview Use the Radius.Core preview implementation for environment update (can also be set via RADIUS_PREVIEW=true)
--recipe-pack-group string Specify the resource group containing the recipe packs named in --recipe-packs, if different from the environment's resource group (--preview).
--recipe-packs strings Specify recipe packs to replace the environment's recipe pack list (--preview). Accepts comma-separated values.
-w, --workspace string The workspace name
Options inherited from parent commands
--config string config file (default "$HOME/.rad/config.yaml")
-o, --output string output format (supported formats are json, table) (default "table")
SEE ALSO
- rad environment - Manage Radius Environments
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.