Set AllowPartialScopes flag to true (#1900)
* add partial scopes flag * add partial scopes flag * add partial scopes flag --------- Co-authored-by: Asier Isayas <aisayas@microsoft.com>
This commit is contained in:
parent
093ddba2db
commit
e9f83a8efd
|
@ -1,7 +1,8 @@
|
||||||
export interface QueryRequestOptions {
|
export interface QueryRequestOptions {
|
||||||
$skipToken?: string;
|
$skipToken?: string;
|
||||||
$top?: number;
|
$top?: number;
|
||||||
subscriptions: string[];
|
$allowPartialScopes: boolean;
|
||||||
|
subscriptions?: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface QueryResponse {
|
export interface QueryResponse {
|
||||||
|
|
|
@ -51,17 +51,13 @@ export async function fetchSubscriptionsFromGraph(accessToken: string): Promise<
|
||||||
do {
|
do {
|
||||||
const body = {
|
const body = {
|
||||||
query: subscriptionsQuery,
|
query: subscriptionsQuery,
|
||||||
...(skipToken
|
|
||||||
? {
|
|
||||||
options: {
|
|
||||||
$skipToken: skipToken,
|
|
||||||
} as QueryRequestOptions,
|
|
||||||
}
|
|
||||||
: {
|
|
||||||
options: {
|
options: {
|
||||||
|
$allowPartialScopes: true,
|
||||||
$top: 150,
|
$top: 150,
|
||||||
} as QueryRequestOptions,
|
...(skipToken && {
|
||||||
|
$skipToken: skipToken,
|
||||||
}),
|
}),
|
||||||
|
} as QueryRequestOptions,
|
||||||
};
|
};
|
||||||
|
|
||||||
const response = await fetch(managementResourceGraphAPIURL, {
|
const response = await fetch(managementResourceGraphAPIURL, {
|
||||||
|
|
Loading…
Reference in New Issue