Skip to content

Commit

Permalink
Update API version
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayada1 committed Sep 20, 2023
1 parent 5b9a560 commit 57c85cb
Show file tree
Hide file tree
Showing 45 changed files with 305 additions and 263 deletions.
4 changes: 2 additions & 2 deletions demo/app.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import radius as radius
param application string
param environment string

resource demo 'Applications.Core/containers@2022-03-15-privatepreview' = {
resource demo 'Applications.Core/containers@2023-10-01-preview' = {
name: 'demo'
properties: {
application: application
Expand All @@ -29,7 +29,7 @@ resource demo 'Applications.Core/containers@2022-03-15-privatepreview' = {
}
}

resource db 'Applications.Datastores/redisCaches@2022-03-15-privatepreview' = {
resource db 'Applications.Datastores/redisCaches@2023-10-01-preview' = {
name: 'db'
properties: {
application: application
Expand Down
12 changes: 6 additions & 6 deletions quickstarts/dapr/dapr-azure.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import radius as radius
param location string = resourceGroup().location
param environment string

resource app 'Applications.Core/applications@2022-03-15-privatepreview' = {
resource app 'Applications.Core/applications@2023-10-01-preview' = {
name: 'dapr-quickstart'
properties: {
environment: environment
}
}

resource backend 'Applications.Core/containers@2022-03-15-privatepreview' = {
resource backend 'Applications.Core/containers@2023-10-01-preview' = {
name: 'backend'
properties: {
application: app.id
Expand All @@ -37,7 +37,7 @@ resource backend 'Applications.Core/containers@2022-03-15-privatepreview' = {
}
}

resource frontend 'Applications.Core/containers@2022-03-15-privatepreview' = {
resource frontend 'Applications.Core/containers@2023-10-01-preview' = {
name: 'frontend'
properties: {
application: app.id
Expand All @@ -62,14 +62,14 @@ resource frontend 'Applications.Core/containers@2022-03-15-privatepreview' = {
}
}

resource frontendRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = {
resource frontendRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = {
name: 'frontend-route'
properties: {
application: app.id
}
}

resource gateway 'Applications.Core/gateways@2022-03-15-privatepreview' = {
resource gateway 'Applications.Core/gateways@2023-10-01-preview' = {
name: 'gateway'
properties: {
application: app.id
Expand Down Expand Up @@ -102,7 +102,7 @@ resource account 'Microsoft.Storage/storageAccounts@2019-06-01' = {
}
}

resource stateStore 'Applications.Dapr/stateStores@2022-03-15-privatepreview' = {
resource stateStore 'Applications.Dapr/stateStores@2023-10-01-preview' = {
name: 'orders'
properties: {
environment: environment
Expand Down
12 changes: 6 additions & 6 deletions quickstarts/dapr/dapr.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ param environment string
@description('Specifies Kubernetes namespace for redis.')
param namespace string = 'default'

resource app 'Applications.Core/applications@2022-03-15-privatepreview' = {
resource app 'Applications.Core/applications@2023-10-01-preview' = {
name: 'dapr-quickstart'
properties: {
environment: environment
}
}

resource backend 'Applications.Core/containers@2022-03-15-privatepreview' = {
resource backend 'Applications.Core/containers@2023-10-01-preview' = {
name: 'backend'
properties: {
application: app.id
Expand All @@ -40,7 +40,7 @@ resource backend 'Applications.Core/containers@2022-03-15-privatepreview' = {
}
}

resource frontend 'Applications.Core/containers@2022-03-15-privatepreview' = {
resource frontend 'Applications.Core/containers@2023-10-01-preview' = {
name: 'frontend'
properties: {
application: app.id
Expand All @@ -65,14 +65,14 @@ resource frontend 'Applications.Core/containers@2022-03-15-privatepreview' = {
}
}

resource frontendRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = {
resource frontendRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = {
name: 'frontend-route'
properties: {
application: app.id
}
}

resource gateway 'Applications.Core/gateways@2022-03-15-privatepreview' = {
resource gateway 'Applications.Core/gateways@2023-10-01-preview' = {
name: 'gateway'
properties: {
application: app.id
Expand All @@ -85,7 +85,7 @@ resource gateway 'Applications.Core/gateways@2022-03-15-privatepreview' = {
}
}

resource stateStore 'Applications.Dapr/stateStores@2022-03-15-privatepreview' = {
resource stateStore 'Applications.Dapr/stateStores@2023-10-01-preview' = {
name: 'statestore'
properties: {
environment: environment
Expand Down
6 changes: 3 additions & 3 deletions quickstarts/environment-variables/app.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import radius as rad

param environment string

resource app 'Applications.Core/applications@2022-03-15-privatepreview' = {
resource app 'Applications.Core/applications@2023-10-01-preview' = {
name: 'myapp'
properties: {
environment: environment
}
}

resource container 'Applications.Core/containers@2022-03-15-privatepreview' = {
resource container 'Applications.Core/containers@2023-10-01-preview' = {
name: 'mycontainer'
properties: {
application: app.id
Expand All @@ -28,7 +28,7 @@ resource container 'Applications.Core/containers@2022-03-15-privatepreview' = {
}
}

resource mongoLink 'Applications.Datastores/mongoDatabases@2022-03-15-privatepreview' = {
resource mongoLink 'Applications.Datastores/mongoDatabases@2023-10-01-preview' = {
name: 'mongo-link'
properties: {
environment: environment
Expand Down
6 changes: 3 additions & 3 deletions quickstarts/recipes/app.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import radius as radius
// The environment used by your resources for deployment.
param environment string

resource app 'Applications.Core/applications@2022-03-15-privatepreview' = {
resource app 'Applications.Core/applications@2023-10-01-preview' = {
name: 'webapp'
properties: {
environment: environment
}
}

resource frontend 'Applications.Core/containers@2022-03-15-privatepreview' = {
resource frontend 'Applications.Core/containers@2023-10-01-preview' = {
name: 'frontend'
properties: {
application: app.id
Expand All @@ -27,7 +27,7 @@ resource frontend 'Applications.Core/containers@2022-03-15-privatepreview' = {
}

// Redis Cache portable resource
resource db 'Applications.Datastores/redisCaches@2022-03-15-privatepreview' = {
resource db 'Applications.Datastores/redisCaches@2023-10-01-preview' = {
name: 'db'
properties: {
environment: environment
Expand Down
4 changes: 2 additions & 2 deletions quickstarts/volumes/app.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import radius as rad

param environment string

resource app 'Applications.Core/applications@2022-03-15-privatepreview' = {
resource app 'Applications.Core/applications@2023-10-01-preview' = {
name: 'myapp'
properties: {
environment: environment
}
}

resource container 'Applications.Core/containers@2022-03-15-privatepreview' = {
resource container 'Applications.Core/containers@2023-10-01-preview' = {
name: 'mycontainer'
properties: {
application: app.id
Expand Down
6 changes: 3 additions & 3 deletions reference-apps/aws-sqs/sqs.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var aws_credential = {
}

var app_name = 'sqs-sample-app'
resource app 'Applications.Core/applications@2022-03-15-privatepreview' = {
resource app 'Applications.Core/applications@2023-10-01-preview' = {
name: app_name
properties: {
environment: environment
Expand All @@ -32,7 +32,7 @@ resource queue 'AWS.SQS/Queue@default' = {
}
}

resource producer 'Applications.Core/containers@2022-03-15-privatepreview' = {
resource producer 'Applications.Core/containers@2023-10-01-preview' = {
name: 'producer'
properties: {
application: app.id
Expand All @@ -49,7 +49,7 @@ resource producer 'Applications.Core/containers@2022-03-15-privatepreview' = {
}
}

resource consumer 'Applications.Core/containers@2022-03-15-privatepreview' = {
resource consumer 'Applications.Core/containers@2023-10-01-preview' = {
name: 'consumer'
properties: {
application: app.id
Expand Down
4 changes: 2 additions & 2 deletions reference-apps/aws/awss3.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ resource s3 'AWS.S3/Bucket@default' = {
}

// get a radius container which uses the s3 bucket
resource app 'Applications.Core/applications@2022-03-15-privatepreview' = {
resource app 'Applications.Core/applications@2023-10-01-preview' = {
name: 'webapp'
properties: {
environment: environment
}
}

resource frontend 'Applications.Core/containers@2022-03-15-privatepreview' = {
resource frontend 'Applications.Core/containers@2023-10-01-preview' = {
name: 'frontend'
properties: {
application: app.id
Expand Down
12 changes: 6 additions & 6 deletions reference-apps/container-app-store/iac/app.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import radius as radius

param environment string

resource app 'Applications.Core/applications@2022-03-15-privatepreview' = {
resource app 'Applications.Core/applications@2023-10-01-preview' = {
name: 'store'
properties: {
environment: environment
}
}

resource go_app 'Applications.Core/containers@2022-03-15-privatepreview' = {
resource go_app 'Applications.Core/containers@2023-10-01-preview' = {
name: 'goapp'
properties: {
application: app.id
Expand All @@ -31,14 +31,14 @@ resource go_app 'Applications.Core/containers@2022-03-15-privatepreview' = {
}
}

resource node_app_route 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = {
resource node_app_route 'Applications.Core/httpRoutes@2023-10-01-preview' = {
name: 'node-app-route'
properties: {
application: app.id
}
}

resource node_app_gateway 'Applications.Core/gateways@2022-03-15-privatepreview' = {
resource node_app_gateway 'Applications.Core/gateways@2023-10-01-preview' = {
name: 'node-app-gateway'
properties: {
application: app.id
Expand All @@ -50,7 +50,7 @@ resource node_app_gateway 'Applications.Core/gateways@2022-03-15-privatepreview'
]
}
}
resource node_app 'Applications.Core/containers@2022-03-15-privatepreview' = {
resource node_app 'Applications.Core/containers@2023-10-01-preview' = {
name: 'nodeapp'
properties: {
application: app.id
Expand All @@ -76,7 +76,7 @@ resource node_app 'Applications.Core/containers@2022-03-15-privatepreview' = {
}
}

resource python_app 'Applications.Core/containers@2022-03-15-privatepreview' = {
resource python_app 'Applications.Core/containers@2023-10-01-preview' = {
name: 'pythonapp'
properties: {
application: app.id
Expand Down
2 changes: 1 addition & 1 deletion reference-apps/container-app-store/iac/infra-azure.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ resource account 'Microsoft.Storage/storageAccounts@2021-09-01' = {
}
}

resource statestore 'Applications.Dapr/stateStores@2022-03-15-privatepreview' = {
resource statestore 'Applications.Dapr/stateStores@2023-10-01-preview' = {
name: 'orders'
properties: {
application: applicationId
Expand Down
6 changes: 3 additions & 3 deletions reference-apps/container-app-store/iac/infra-selfhosted.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ param applicationId string

param environment string

resource redisContainer 'Applications.Core/containers@2022-03-15-privatepreview' = {
resource redisContainer 'Applications.Core/containers@2023-10-01-preview' = {
name: 'redis'
properties: {
application: applicationId
Expand All @@ -20,15 +20,15 @@ resource redisContainer 'Applications.Core/containers@2022-03-15-privatepreview'
}
}

resource redisRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' = {
resource redisRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = {
name: 'redis-route'
properties: {
application: applicationId
port: 6379
}
}

resource statestore 'Applications.Dapr/stateStores@2022-03-15-privatepreview' = {
resource statestore 'Applications.Dapr/stateStores@2023-10-01-preview' = {
name: 'orders'
properties: {
resourceProvisioning: 'manual'
Expand Down
2 changes: 1 addition & 1 deletion reference-apps/eshop-dapr/infra/dapr-pub-sub.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ resource serviceBus 'Microsoft.ServiceBus/namespaces@2021-06-01-preview' = {
// Create the Dapr pub sub component
//-----------------------------------------------------------------------------

resource daprPubSubBroker 'Applications.Dapr/pubSubBrokers@2022-03-15-privatepreview' = {
resource daprPubSubBroker 'Applications.Dapr/pubSubBrokers@2023-10-01-preview' = {
name: 'eshopondapr-pubsub'
location: 'global'
properties: {
Expand Down
2 changes: 1 addition & 1 deletion reference-apps/eshop-dapr/infra/dapr-secret-store.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ resource keyVault 'Microsoft.KeyVault/vaults@2021-11-01-preview' = {
// Create the Dapr secret store component
//-----------------------------------------------------------------------------

resource daprSecretStore 'Applications.Dapr/secretStores@2022-03-15-privatepreview' = {
resource daprSecretStore 'Applications.Dapr/secretStores@2023-10-01-preview' = {
name: 'eshopondapr-secretstore'
location: 'global'
properties: {
Expand Down
2 changes: 1 addition & 1 deletion reference-apps/eshop-dapr/infra/dapr-state-store.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ resource cosmosCollection 'Microsoft.DocumentDB/databaseAccounts/sqlDatabases/co
// Create the Dapr state store component
//-----------------------------------------------------------------------------

resource daprStateStore 'Applications.Dapr/stateStores@2022-03-15-privatepreview' = {
resource daprStateStore 'Applications.Dapr/stateStores@2023-10-01-preview' = {
name: 'eshopondapr-statestore'
location: 'global'
dependsOn: [
Expand Down
12 changes: 6 additions & 6 deletions reference-apps/eshop-dapr/infra/gateway.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,31 @@ param webstatusRouteName string
// Get references to existing resources
//-----------------------------------------------------------------------------

resource blazorClientRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' existing = {
resource blazorClientRoute 'Applications.Core/httpRoutes@2023-10-01-preview' existing = {
name: blazorClientRouteName
}

resource identityApiRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' existing = {
resource identityApiRoute 'Applications.Core/httpRoutes@2023-10-01-preview' existing = {
name: identityApiRouteName
}

resource seqRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' existing = {
resource seqRoute 'Applications.Core/httpRoutes@2023-10-01-preview' existing = {
name: seqRouteName
}

resource webshoppingGwRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' existing = {
resource webshoppingGwRoute 'Applications.Core/httpRoutes@2023-10-01-preview' existing = {
name: webshoppingGwRouteName
}

resource webstatusRoute 'Applications.Core/httpRoutes@2022-03-15-privatepreview' existing = {
resource webstatusRoute 'Applications.Core/httpRoutes@2023-10-01-preview' existing = {
name: webstatusRouteName
}

//-----------------------------------------------------------------------------
// Create the Radius gateway
//-----------------------------------------------------------------------------

resource gateway 'Applications.Core/gateways@2022-03-15-privatepreview' = {
resource gateway 'Applications.Core/gateways@2023-10-01-preview' = {
name: 'gateway'
properties: {
application: appId
Expand Down
Loading

0 comments on commit 57c85cb

Please sign in to comment.