I am running a function in Jupyter notebook to test my connection to a Database
Here is the code:
from azure.identity import DefaultAzureCredential
from azure.appconfiguration import AzureAppConfigurationClient
from azure.keyvault.secrets import SecretClient
import requests
config_url = '#####'
credential = DefaultAzureCredential()
app_slug = 'XXXXX'
key = '*******'
label=None
key = '{}:{}'.format(app_slug, key)
config_client = AzureAppConfigurationClient(base_url=config_url, credential=credential)
fetched_config = config_client.get_configuration_setting(key=key, label=label)
fetched_config.value
It will connect for a coworker but not mine. I am wondering if anyone has run into this problem before and could help
The error seems to be in this line:
fetched_config = config_client.get_configuration_setting(key=key, label=label)
but I cannot understand why