-
Notifications
You must be signed in to change notification settings - Fork 17
Radius.Core: 404 error when using PersistentVolume without Applications.Core resource #109
Description
Steps to reproduce
- Default environment registered under: Applications.Core/environments
- Radius.Core/applications is registered in rad resource-type list
Pre-checks:
a) Confirm Radius.Core/applications is registered:
rad resource-type list
# Shows: Radius.Core/applications Radius.Core ["2025-08-01-preview"]
b) Confirm default environment is under Applications.Core:
rad env show default
# Shows: default Applications.Core/environments default Succeeded
Repro Steps:
- Create a Bicep file with Radius.Compute/persistentVolumes.
```
resource app 'Radius.Core/applications@2025-08-01-preview' = {
name: 'containers-testapp'
location: 'global'
properties: {
environment: environment
}
}
resource myPersistentVolume 'Radius.Compute/persistentVolumes@2025-08-01-preview' = {
name: 'mypersistentvolume'
properties: {
environment: environment
application: app.id
sizeInGib: 1
accessMode: 'ReadWriteOnce'
}
}
```
4) Deploy: rad deploy Compute/containers/test/app.bicep
Expected behavior
The runtime should resolve Radius.Core/applications/containers-testapp correctly since the type is registered.
Actual behavior
The app resource deploys successfully as Radius.Core/applications/containers-testapp, but persistentVolumes deployment fails with:
GET .../providers/Applications.Core/applications/containers-testapp
RESPONSE 404: Not Found
"the resource with id '/planes/radius/local/resourcegroups/default/providers/Applications.Core/applications/containers-testapp' was not found"
Observed behavior
When a resource (e.g. Radius.Compute/persistentVolumes) has application: app.id pointing to a Radius.Core/applications resource, the runtime looks it up under Applications.Core/applications, resulting in a 404.
Deploying template 'Compute/containers/test/app.bicep' into environment '/planes/radius/local/resourceGroups/default/providers/Applications.Core/environments/default' from workspace 'default'...
Deployment In Progress...
Completed containers-testapp3 Radius.Core/applications
. mypersistentvolume Radius.Compute/persistentVolumes
Error: {
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
"target": "/planes/radius/local/resourceGroups/default/providers/Microsoft.Resources/deployments/rad-deploy-192f6f39-426a-4a54-9520-802ab8cc912e",
"details": [
{
"code": "OK",
"message": "",
"target": "/planes/radius/local/resourceGroups/default/providers/Radius.Core/applications/containers-testapp3"
},
{
"code": "ResourceDeploymentFailure",
"message": "Failed",
"target": "/planes/radius/local/resourceGroups/default/providers/Radius.Compute/persistentVolumes/mypersistentvolume",
"details": [
{
"code": "Internal",
"message": "GET https://10.0.0.1:443/apis/api.ucp.dev/v1alpha3/planes/radius/local/resourcegroups/default/providers/Applications.Core/applications/containers-testapp3\n--------------------------------------------------------------------------------\nRESPONSE 404: 404 Not Found\nERROR CODE: NotFound\n--------------------------------------------------------------------------------\n{\n "error": {\n "code": "NotFound",\n "message": "the resource with id '/planes/radius/local/resourcegroups/default/providers/**Applications.Core/**applications/containers-testapp3' was not found",\n "target": "/planes/radius/local/resourcegroups/default/providers/Applications.Core/applications/containers-testapp3"\n }\n}\n--------------------------------------------------------------------------------\n"
}
]
}
]
}
TraceId: 5250ba94d6b7c175e208367a65d8b3ed
Desired behavior
The runtime should resolve Radius.Core/applications/containers-testapp correctly since the type is registered.
Workaround
Use Applciations.Core instead of Radius.Core
resource app 'Applications.Core/applications@2023-10-01-preview'
rad Version
CLI Version Information:
RELEASE VERSION BICEP COMMIT
0.54.0 v0.54.0 0.40.2 f06410904c8b92bcc3aaa1f1ed6450981e510107
Control Plane Information:
STATUS VERSION
Installed 0.54.0
Operating system
Windows 11 Enterprise OS Build: 26200.8037
Additional context
No response
Would you like to support us?
- Yes, I would like to support you