Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/devcenter/azext_devcenter/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def get_project_arg(cli_ctx, dev_center_name, project_name=None):
| take 1
| extend devCenterUri = properties.devCenterUri
| project name,devCenterUri """
options ={ "allowPartialScopes": True } # maximum of 5000 subs for cross tenant query
options = {
"allowPartialScopes": True} # maximum of 5000 subs for cross tenant query

content = {"query": query, "options": options}
request_url = f"{management_hostname}/providers/Microsoft.ResourceGraph/resources?api-version={api_version}"
Expand All @@ -53,7 +54,8 @@ def get_project_data(cli_ctx, dev_center_name, project_name=None):
profile = Profile()
tenant_id = profile.get_subscription()["tenantId"]

resource_graph_data = get_project_arg(cli_ctx, dev_center_name, project_name)
resource_graph_data = get_project_arg(
cli_ctx, dev_center_name, project_name)

error_help = f"""under the current tenant '{tenant_id}'. \
Please contact your admin to gain access to specific projects or \
Expand Down