Spring Cloud Connection
Manages a service connector for spring cloud app. !>Note: Azure Spring Apps is now deprecated and will be retired on 2028-05-31 - as such the azure.appplatform.SpringCloudConnection
resource is deprecated and will be removed in a future major version of the AzureRM Provider. See https://aka.ms/asaretirement for more information.
Example Usage
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleAccount:
type: azure:cosmosdb:Account
name: example
properties:
name: example-cosmosdb-account
location: ${example.location}
resourceGroupName: ${example.name}
offerType: Standard
kind: GlobalDocumentDB
consistencyPolicy:
consistencyLevel: BoundedStaleness
maxIntervalInSeconds: 10
maxStalenessPrefix: 200
geoLocations:
- location: ${example.location}
failoverPriority: 0
exampleSqlDatabase:
type: azure:cosmosdb:SqlDatabase
name: example
properties:
name: cosmos-sql-db
resourceGroupName: ${exampleAccount.resourceGroupName}
accountName: ${exampleAccount.name}
throughput: 400
exampleSqlContainer:
type: azure:cosmosdb:SqlContainer
name: example
properties:
name: example-container
resourceGroupName: ${exampleAccount.resourceGroupName}
accountName: ${exampleAccount.name}
databaseName: ${exampleSqlDatabase.name}
partitionKeyPath: /definition
exampleSpringCloudService:
type: azure:appplatform:SpringCloudService
name: example
properties:
name: examplespringcloud
resourceGroupName: ${example.name}
location: ${example.location}
exampleSpringCloudApp:
type: azure:appplatform:SpringCloudApp
name: example
properties:
name: examplespringcloudapp
resourceGroupName: ${example.name}
serviceName: ${exampleSpringCloudService.name}
identity:
type: SystemAssigned
exampleSpringCloudJavaDeployment:
type: azure:appplatform:SpringCloudJavaDeployment
name: example
properties:
name: exampledeployment
springCloudAppId: ${exampleSpringCloudApp.id}
exampleSpringCloudConnection:
type: azure:appplatform:SpringCloudConnection
name: example
properties:
name: example-serviceconnector
springCloudId: ${exampleSpringCloudJavaDeployment.id}
targetResourceId: ${exampleSqlDatabase.id}
authentication:
type: systemAssignedIdentity
API Providers
This resource uses the following Azure API Providers:
Microsoft.ServiceLinker
: 2024-04-01, 2022-05-01
Import
Service Connector for spring cloud can be imported using the resource id
, e.g.
$ pulumi import azure:appplatform/springCloudConnection:SpringCloudConnection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AppPlatform/Spring/springcloud/apps/springcloudapp/deployments/deployment/providers/Microsoft.ServiceLinker/linkers/serviceconnector1
Properties
The authentication info. An authentication
block as defined below.
The ID of the data source spring cloud. Changing this forces a new resource to be created.
The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are Postgres
, PostgresFlexible
, Mysql
, Sql
, Redis
, RedisEnterprise
, CosmosCassandra
, CosmosGremlin
, CosmosMongo
, CosmosSql
, CosmosTable
, StorageBlob
, StorageQueue
, StorageFile
, StorageTable
, AppConfig
, EventHub
, ServiceBus
, SignalR
, WebPubSub
, ConfluentKafka
. The integration guide can be found here.