We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bec8c79 commit ceb1fbfCopy full SHA for ceb1fbf
pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
5
[project]
6
name = "dean_utils"
7
-version="0.0.56"
+version="0.0.57"
8
authors=[
9
{ name="Dean MacGregor", email="powertrading121@gmail.com"}
10
]
src/dean_utils/utils/az_utils.py
@@ -32,7 +32,10 @@
32
try:
33
from azure.identity.aio import DefaultAzureCredential
34
35
- credential = DefaultAzureCredential()
+ kwargs = {}
36
+ if (client_id := os.environ.get("AzureWebJobsStorage__clientId")) is not None:
37
+ kwargs["managed_identity_client_id"] = client_id
38
+ credential = DefaultAzureCredential(**kwargs)
39
AIO_SERVE = QSC(account_url=account_url, credential=credential)
40
except ImportError as err:
41
GLOBAL_ERR = err
0 commit comments