Skip to content

Commit

Permalink
Update API version (#792)
Browse files Browse the repository at this point in the history
* Update API version

* Add file back
  • Loading branch information
vinayada1 authored Sep 25, 2023
1 parent 1d8a8de commit fdb948d
Show file tree
Hide file tree
Showing 84 changed files with 182 additions and 182 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ param environment string
param databaseId string

// Define application
resource app 'Applications.Core/applications@2022-03-15-privatepreview' = {
resource app 'Applications.Core/applications@2023-10-01-preview' = {
name: 'myapp'
//PROPERTIES
properties: {
Expand All @@ -17,7 +17,7 @@ resource app 'Applications.Core/applications@2022-03-15-privatepreview' = {
}

// Define container resource to run app code
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import radius as radius
param application string

//CONNECTION
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 @@ -30,7 +30,7 @@ resource demo 'Applications.Core/containers@2022-03-15-privatepreview' = {
@description('The environment ID of your Radius application. Set automatically by the rad CLI.')
param environment string

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
4 changes: 2 additions & 2 deletions docs/content/getting-started/snippets/app-with-redis.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import radius as radius
@description('The app ID of your Radius application. Set automatically by the rad CLI.')
param application 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 @@ -25,7 +25,7 @@ resource demo 'Applications.Core/containers@2022-03-15-privatepreview' = {
}

param environment string
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
2 changes: 1 addition & 1 deletion docs/content/getting-started/snippets/app.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import radius as radius
@description('The app ID of your Radius application. Set automatically by the rad CLI.')
param application 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 Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import radius as radius
@description('The environment ID of your Radius application. Set automatically by the rad CLI.')
param environment string

resource myapp 'Applications.Core/applications@2022-03-15-privatepreview' = {
resource myapp 'Applications.Core/applications@2023-10-01-preview' = {
name: 'my-application'
properties: {
environment: environment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ resource s3 'AWS.S3/Bucket@default' = {
@description('The environment ID of your Radius application. Set automatically by the rad CLI.')
param environment string

resource app 'Applications.Core/applications@2022-03-15-privatepreview' = {
resource app 'Applications.Core/applications@2023-10-01-preview' = {
name: 's3app'
properties: {
environment: environment
Expand All @@ -34,7 +34,7 @@ param aws_secret_access_key string
param aws_region string = 'us-west-2'

// get a radius container which uses the s3 bucket
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resource s3 'AWS.S3/Bucket@default' = {
@description('The environment ID of your Radius application. Set automatically by the rad CLI.')
param environment string

resource app 'Applications.Core/applications@2022-03-15-privatepreview' = {
resource app 'Applications.Core/applications@2023-10-01-preview' = {
name: 's3app'
properties: {
environment: environment
Expand All @@ -35,7 +35,7 @@ param aws_secret_access_key string
param aws_region string = 'us-west-2'

// get a radius container which uses the s3 bucket
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
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,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: 's3app'
properties: {
environment: environment
}
}

resource frontend 'Applications.Core/containers@2022-03-15-privatepreview' = {
resource frontend 'Applications.Core/containers@2023-10-01-preview' = {
name: 's3container'
properties: {
application: app.id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ param azLocation string = resourceGroup().location
@description('Specifies the OIDC issuer URL')
param oidcIssuer string

resource env 'Applications.Core/environments@2022-03-15-privatepreview' = {
resource env 'Applications.Core/environments@2023-10-01-preview' = {
name: 'iam-quickstart'
properties: {
compute: {
Expand All @@ -29,14 +29,14 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = {
//ENVIRONMENT

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

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
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ resource cache 'Microsoft.Cache/Redis@2019-07-01' = {
}
}

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
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ 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
}
}

//CONTAINER
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ 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
}
}

//CONTAINER
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 @@ -31,7 +31,7 @@ resource container 'Applications.Core/containers@2022-03-15-privatepreview' = {
//CONTAINER

//LINK
resource mongoDatabase 'Applications.Datastores/mongoDatabases@2022-03-15-privatepreview' = {
resource mongoDatabase 'Applications.Datastores/mongoDatabases@2023-10-01-preview' = {
name: 'mongo-db'
properties: {
environment: environment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ param azLocation string = resourceGroup().location
@description('Specifies the environment for resources.')
param oidcIssuer string

resource env 'Applications.Core/environments@2022-03-15-privatepreview' = {
resource env 'Applications.Core/environments@2023-10-01-preview' = {
name: 'kv-volume-quickstart'
properties: {
compute: {
Expand All @@ -29,14 +29,14 @@ resource env 'Applications.Core/environments@2022-03-15-privatepreview' = {
//ENVIRONMENT

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

resource volume 'Applications.Core/volumes@2022-03-15-privatepreview' = {
resource volume 'Applications.Core/volumes@2023-10-01-preview' = {
name: 'myvolume'
properties: {
application: app.id
Expand Down Expand Up @@ -72,7 +72,7 @@ resource keyvault 'Microsoft.KeyVault/vaults@2021-10-01' = {
//APP

//CONTAINER
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
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ 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
}
}

//CONTAINER
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ 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: 'myapp'
properties: {
environment: environment
}
}

//CONTAINER
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 @@ -26,7 +26,7 @@ resource container 'Applications.Core/containers@2022-03-15-privatepreview' = {
}

//CONTAINER
resource statestore 'Applications.Dapr/stateStores@2022-03-15-privatepreview' = {
resource statestore 'Applications.Dapr/stateStores@2023-10-01-preview' = {
name: 'inventory'
properties: {
environment: environment
Expand Down
2 changes: 1 addition & 1 deletion docs/content/guides/author-apps/dapr/overview/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ For example, if you have a `Applications.Dapr/stateStores` resource named `mysta

You can connect to a Dapr building block by manually referencing the resource name or by adding a connection. Connections automatically inject environment variables into your container with the resource name prefixed.

{{< rad file="snippets/dapr-componentname.bicep" embed=true marker="//MARKER" replace-key-ss="//STATESTORE" replace-value-ss="resource statestore 'Applications.Dapr/stateStores@2022-03-15-privatepreview' = {...}" >}}
{{< rad file="snippets/dapr-componentname.bicep" embed=true marker="//MARKER" replace-key-ss="//STATESTORE" replace-value-ss="resource statestore 'Applications.Dapr/stateStores@2023-10-01-preview' = {...}" >}}

### Service invocation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ resource account 'Microsoft.Storage/storageAccounts@2019-06-01' existing = {
}
}

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

//MARKER
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 @@ -43,7 +43,7 @@ resource container 'Applications.Core/containers@2022-03-15-privatepreview' = {
}

//STATESTORE
resource statestore 'Applications.Dapr/stateStores@2022-03-15-privatepreview' = {
resource statestore 'Applications.Dapr/stateStores@2023-10-01-preview' = {
name: 'mystatestore'
properties: {
environment: environment
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import radius as rad


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

// Backend is being invoked through service invocation
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 @@ -24,7 +24,7 @@ resource backend 'Applications.Core/containers@2022-03-15-privatepreview' = {


// Frontend invokes backend
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
Loading

0 comments on commit fdb948d

Please sign in to comment.