-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py
25 lines (19 loc) · 887 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import os
# Tenant ID & Subscription ID for your Azure Subscription
tenant_id = os.environ['TENANT_ID']
subscription_id = os.environ['SUBSCRIPTION_ID']
# Your Service Principal App ID
client_id = os.environ['CLIENT_ID']
# Your Service Principal Password
client_password = os.environ['CLIENT_PASSWORD']
# Service Bus Details
sb_region = os.environ['SERVICEBUS_REGION']
sb_resource_group = os.environ['SERVICEBUS_RESOURCE_GROUP']
sb_namespace_name = os.environ['SERVICEBUS_NAMESPACE_NAME']
sb_topic_name = os.environ['SERVICEBUS_TOPIC_NAME']
sb_subscription_name = os.environ['SERVICEBUS_SUBSCRIPTION_NAME']
# Azure Monitor "Metric Namespace" with customnamespace as default value
metric_namespace = (os.getenv('METRIC_NAMESPACE', 'customnamespace') or 'customnamespace')
# SAS Key
shared_access_key_name=os.environ['SAS_KEY_NAME']
shared_access_key_value=os.environ['SAS_KEY_VALUE']