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
-
] # TODO: Cloud Shell IMDS will remove that list soon. What shall we do then?
23
+
def_scope_to_resource(scope): # This is an experimental reasonable-effort approach
24
+
cloud_shell_supported_audiences= [
25
+
"https://analysis.windows.net/powerbi/api", # Came from https://msazure.visualstudio.com/One/_git/compute-CloudShell?path=/src/images/agent/env/envconfig.PROD.json
26
+
"https://pas.windows.net/CheckMyAccess/Linux/.default", # Cloud Shell accepts it as-is
27
+
]
47
28
foraincloud_shell_supported_audiences:
48
-
ifscope.startswith(a):# This is an experimental approach
29
+
ifscope.startswith(a):
49
30
returna
50
-
returnscope# Some scope would work as-is, such as the SSH Cert scope
0 commit comments