AppConnectionArgs

data class AppConnectionArgs(val authentication: Output<AppConnectionAuthenticationArgs>? = null, val clientType: Output<String>? = null, val functionAppId: Output<String>? = null, val name: Output<String>? = null, val secretStore: Output<AppConnectionSecretStoreArgs>? = null, val targetResourceId: Output<String>? = null, val vnetSolution: Output<String>? = null) : ConvertibleToJava<AppConnectionArgs>

Manages a service connector for function app.

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
exampleAccount2:
type: azure:storage:Account
name: example
properties:
name: examplestorageaccount
resourceGroupName: ${example.name}
location: ${example.location}
accountTier: Standard
accountReplicationType: LRS
exampleServicePlan:
type: azure:appservice:ServicePlan
name: example
properties:
location: ${example.location}
name: example-serviceplan
resourceGroupName: ${example.name}
skuName: P1v2
osType: Linux
test:
type: azure:appservice:FunctionApp
properties:
name: example-function-app
location: ${testAzurermResourceGroup.location}
resourceGroupName: ${testAzurermResourceGroup.name}
appServicePlanId: ${testAzurermAppServicePlan.id}
storageAccountName: ${testAzurermStorageAccount.name}
storageAccountAccessKey: ${testAzurermStorageAccount.primaryAccessKey}
exampleAppConnection:
type: azure:appservice:AppConnection
name: example
properties:
name: example-serviceconnector
functionAppId: ${exampleAzurermFunctionApp.id}
targetResourceId: ${testAzurermCosmosdbAccount.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 app service can be imported using the resource id, e.g.

$ pulumi import azure:appservice/appConnection:AppConnection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Web/sites/webapp/providers/Microsoft.ServiceLinker/linkers/serviceconnector1

Constructors

Link copied to clipboard
constructor(authentication: Output<AppConnectionAuthenticationArgs>? = null, clientType: Output<String>? = null, functionAppId: Output<String>? = null, name: Output<String>? = null, secretStore: Output<AppConnectionSecretStoreArgs>? = null, targetResourceId: Output<String>? = null, vnetSolution: Output<String>? = null)

Properties

Link copied to clipboard

The authentication info. An authentication block as defined below.

Link copied to clipboard
val clientType: Output<String>? = null
Link copied to clipboard
val functionAppId: Output<String>? = null

The ID of the data source function app. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>? = null

The name of the service connection. Changing this forces a new resource to be created.

Link copied to clipboard
Link copied to clipboard
val targetResourceId: Output<String>? = null

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.

Link copied to clipboard
val vnetSolution: Output<String>? = null

Functions

Link copied to clipboard
open override fun toJava(): AppConnectionArgs