Skip to content

Commit c30012f

Browse files
committed
Update config
1 parent cbd4919 commit c30012f

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

apps/functions-subscription/local.settings.json.example

+4-5
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,20 @@
2323

2424
"SUBSCRIPTION_REQUEST_CONSUMER": "on",
2525
"SUBSCRIPTION_REQUEST_EVENTHUB_NAME": "<put-here-the-name-of-the-event-hub>",
26+
"SubscriptionRequestEventHubConnection__fullyQualifiedNamespace": "<put-here-the-the-event-hub-fully-qualified-namespace>",
2627

2728
"EVENTS_PRODUCER": "on",
2829
"EVENTS_SERVICEBUS_TOPIC_NAME": "<put-here-the-the-service-bus-topic-name>",
29-
"EventProducerCosmosConnection__accountEndpoint": "<put-here-the-the-cosmos-database-account-endpoint>",
30-
"EventProducerCosmosConnection": "<put-here-the-the-cosmos-database-connection-string>",
3130

3231
"ACTIVATION_CONSUMER": "on",
3332
"ACTIVATIONS_COSMOSDB_CONTAINER_NAME": "activations",
3433
"ACTIVATION_MAX_FETCH_SIZE": "50",
35-
"ActivationConsumerCosmosDBConnection__accountEndpoint": "<put-here-the-the-cosmos-database-account-endpoint>",
3634
"ActivationConsumerCosmosDBConnection": "<put-here-the-the-cosmos-database-connection-string>",
35+
"ActivationConsumerCosmosDBConnection__accountEndpoint": "<put-here-the-the-cosmos-database-account-endpoint>",
3736

3837
"TRIAL_CONSUMER": "off",
3938
"TRIALS_COSMOSDB_CONTAINER_NAME": "trials",
40-
"TrialsCosmosConnection__accountEndpoint": "<put-here-the-the-cosmos-database-account-endpoint>",
41-
"TrialsCosmosConnection": "<put-here-the-the-cosmos-database-connection-string>"
39+
"TrialsCosmosConnection": "<put-here-the-the-cosmos-database-connection-string>",
40+
"TrialsCosmosConnection__accountEndpoint": "<put-here-the-the-cosmos-database-account-endpoint>"
4241
}
4342
}

apps/functions-subscription/src/config.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,11 @@ const EnvsCodec = t.type({
8383
SUBSCRIPTION_ID: NonEmptyString,
8484
SERVICE_BUS_RESOURCE_GROUP_NAME: NonEmptyString,
8585
SERVICE_BUS_LOCATION: NonEmptyString,
86-
SubscriptionHistoryCosmosConnection: t.union([NonEmptyString, t.undefined]),
87-
SubscriptionHistoryCosmosConnection__accountName: NonEmptyString,
88-
ActivationConsumerCosmosDBConnection: t.union([NonEmptyString, t.undefined]),
8986
ActivationConsumerCosmosDBConnection__accountEndpoint: NonEmptyString,
90-
SubscriptionRequestEventHubConnection: t.union([NonEmptyString, t.undefined]),
91-
SubscriptionRequestEventHubConnection__accountName: NonEmptyString,
92-
TrialsCosmosConnection: t.union([NonEmptyString, t.undefined]),
87+
SubscriptionHistoryCosmosConnection__accountEndpoint: NonEmptyString,
9388
TrialsCosmosConnection__accountEndpoint: NonEmptyString,
89+
SubscriptionRequestEventHubConnection__fullyQualifiedNamespace:
90+
NonEmptyString,
9491
});
9592

9693
export const parseConfig = (

0 commit comments

Comments
 (0)