You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cloud_shell_supported_audiences= [ # Came from https://msazure.visualstudio.com/One/_git/compute-CloudShell?path=/src/images/agent/env/envconfig.PROD.json
21
+
"https://management.core.windows.net/",
22
+
"https://management.azure.com/",
23
+
"https://graph.windows.net/",
24
+
"https://vault.azure.net",
25
+
"https://datalake.azure.net/",
26
+
"https://outlook.office365.com/",
27
+
"https://graph.microsoft.com/",
28
+
"https://batch.core.windows.net/",
29
+
"https://analysis.windows.net/powerbi/api",
30
+
"https://storage.azure.com/",
31
+
"https://rest.media.azure.net",
32
+
"https://api.loganalytics.io",
33
+
"https://ossrdbms-aad.database.windows.net",
34
+
"https://www.yammer.com",
35
+
"https://digitaltwins.azure.net",
36
+
"0b07f429-9f4b-4714-9392-cc5e8e80c8b0",
37
+
"822c8694-ad95-4735-9c55-256f7db2f9b4",
38
+
"https://dev.azuresynapse.net",
39
+
"https://database.windows.net",
40
+
"https://quantum.microsoft.com",
41
+
"https://iothubs.azure.net",
42
+
"2ff814a6-3304-4ab8-85cb-cd0e6f879c1d",
43
+
"https://azuredatabricks.net/",
44
+
"ce34e7e5-485f-4d76-964f-b3d2b16d1e4f",
45
+
"https://azure-devices-provisioning.net"
46
+
]
47
+
foraincloud_shell_supported_audiences:
48
+
ifscope.startswith(a): # This is an experimental approach
49
+
returna
50
+
returnscope# Some scope would work as-is, such as the SSH Cert scope
51
+
52
+
53
+
def_acquire_token(http_client, scopes, **kwargs):
54
+
kwargs.pop("correlation_id", None) # IMDS does not use correlation_id
# Scopes came from https://msazure.visualstudio.com/One/_git/compute-CloudShell?path=/src/images/agent/env/envconfig.PROD.json&version=GBmaster&_a=contents
scope_that_requires_no_managed_device="https://management.core.windows.net/"# Scopes came from https://msazure.visualstudio.com/One/_git/compute-CloudShell?path=/src/images/agent/env/envconfig.PROD.json&version=GBmaster&_a=contents
0 commit comments