You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importradiusasradius
@description('The ID of your Radius environment. Automatically injected by the rad CLI.')
paramenvironmentstring
@description('The ID of your Radius application. Automatically injected by the rad CLI.')
paramapplicationstringresourcefrontend'Applications.Core/containers@2022-03-15-privatepreview' = {
name: 'frontend'properties: {
application: applicationcontainer: {
image: 'radius.azurecr.io/tutorial/webapp:edge'
}
connections: {
// Define a connection to the redis container// Automatically injects conneciton information into the containerredis: {
source: db.id
}
}
}
}
resourcedb'Applications.Link/redisCaches@2022-03-15-privatepreview' = {
name: 'db'properties: {
environment: environmentapplication: application// recipe is not specified, so it uses 'default' if present
}
}
importradiusasradius
@description('The ID of your Radius environment. Automatically injected by the rad CLI.')
paramenvironmentstring
@description('The ID of your Radius application. Automatically injected by the rad CLI.')
paramapplicationstringresourcefrontend'Applications.Core/containers@2022-03-15-privatepreview' = {
name: 'frontend'properties: {
application: applicationcontainer: {
image: 'radius.azurecr.io/tutorial/webapp:edge'
}
connections: {
// Define a connection to the redis container// Automatically injects conneciton information into the containerredis: {
source: db.id
}
}
}
}
resourcedb'Applications.Link/redisCaches@2022-03-15-privatepreview' = {
name: 'db'properties: {
environment: environmentapplication: applicationrecipe: {
// Name a specific recipe to usename: 'azure'
}
}
}
Deploy with rad deploy
Get error
Observed behavior
$ rad deploy .\app.bicep
Building .\app.bicep...
Deploying template '.\app.bicep'for application 'recipes' and environment 'default' from workspace 'default'...
Deployment In Progress...
Failed db Applications.Link/redisCaches
Error: {
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please see the details for the specific operation that failed.",
"details": [
{
"code": "ResourceDeploymentFailure",
"message": "Failed",
"details": [
{
"code": "Internal",
"message": "failed to delete resource \"/planes/kubernetes/local/namespaces/default-recipes/providers/core/Service/redis-ymbjcqyjzwkpg\": resource name may not be empty"
}
]
}
]
}
TraceId: 2d21d7295cbe32be5536d283be1b7569
Expected results
I would expect the Kubernetes service deletion to succeed and the deployment to succeed
Workaround
Run rad resource delete rediscaches db to delete the redis cache (and the resources within the recipe)
Version
RELEASE VERSION BICEP COMMIT
0.21.1 v0.21.1 0.11.51 5e152fe79ad50d179a1339ae10c7d0a6e4e20686
Note that this is something we'll block in the future (recipe stickiness).
However this is a real bug, and a good way for us to test garbage collection for recipes. We should fix this and add a functional test for garbage collection.
Steps to reproduce
rad init --dev
and create a new applicationapp.bicep
with:rad deploy
. It should succeedrad deploy
Observed behavior
Expected results
I would expect the Kubernetes service deletion to succeed and the deployment to succeed
Workaround
Run
rad resource delete rediscaches db
to delete the redis cache (and the resources within the recipe)Version
AB#8135
The text was updated successfully, but these errors were encountered: