Overview of feature request
Add support for using a remote Bicep template URL with rad deploy, specifically allowing commands such as rad deploy https://github.com/radius-project/resource-types-contrib/files/recipe-packs/azure/aks-recipepack.bicep to resolve and deploy the referenced file. The command should retrieve or otherwise resolve the remote file before compiling and deploying it, while preserving the existing behavior for local .bicep and .json files. kubectl already supports deploying resources from remote URLs today, so rad deploy should provide similar behavior for remote Bicep templates.
Acceptance criteria
- The example HTTPS URL resolves and proceeds through Bicep compilation and deployment.
- Remote template resolution reports clear errors for invalid URLs, unavailable files, and download or access failures.
- Existing local
.bicep and .json deployment workflows continue to work unchanged.
- Relative imports or other file dependencies used by the retrieved Bicep template are handled correctly, or are explicitly rejected with a clear error message.
- URL handling follows behavior users already expect from tools such as
kubectl.
Additional context
The current rad deploy implementation treats its positional template argument as a local filesystem path. The requested behavior is to accept a HTTPS URL directly. Example: rad deploy https://github.com/radius-project/resource-types-contrib/files/recipe-packs/azure/aks-recipepack.bicep.
Overview of feature request
Add support for using a remote Bicep template URL with
rad deploy, specifically allowing commands such asrad deploy https://github.com/radius-project/resource-types-contrib/files/recipe-packs/azure/aks-recipepack.bicepto resolve and deploy the referenced file. The command should retrieve or otherwise resolve the remote file before compiling and deploying it, while preserving the existing behavior for local.bicepand.jsonfiles.kubectlalready supports deploying resources from remote URLs today, sorad deployshould provide similar behavior for remote Bicep templates.Acceptance criteria
.bicepand.jsondeployment workflows continue to work unchanged.kubectl.Additional context
The current
rad deployimplementation treats its positional template argument as a local filesystem path. The requested behavior is to accept a HTTPS URL directly. Example:rad deploy https://github.com/radius-project/resource-types-contrib/files/recipe-packs/azure/aks-recipepack.bicep.