Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SQL.SqlCheckAdminError]: Failed to check AAD admin 'todolista469e7'. maxPageSize is not supported by this operation #595

Open
ge25kev opened this issue Jan 11, 2023 · 2 comments
Assignees

Comments

@ge25kev
Copy link

ge25kev commented Jan 11, 2023

Hi guys,

Trying to build the ToDoList sample app with SQL backend (https://github.com/OfficeDev/TeamsFx-Samples/tree/v1.1.0/todo-list-with-Azure-backend) , I keep getting the error message:

[SQL.SqlCheckAdminError]: Failed to check AAD admin 'todolista469e7'. maxPageSize is not supported by this operation.

I couldn't find anything on Stackoverflow and after asking Chat GPT-3 I only realise that the parameter maxPageSize may not even be needed for such a simple application. It's answer:

This error might occur while trying to connect an SQL instance to an Azure AD tenant.
This feature is typically used to limit the number of items returned in a query to a specific number. If the maxPageSize parameter is set to a value other than 0, the query will return a maximum of that number of items. In this case, it seems that the operation being performed does not support this parameter.

Even so, not sure how to resolve this issue and where to find the maxPageSize parameter. Any help would be much appreciated

@arunkumarperumal
Copy link

@ge25kev
I faced a similar issue. Issue seems to be provisioning azure sql using bicep.

Below is how I was able to overcome the issue.

  1. Set the parameter "provision" for "azure-sql" to false.
  2. Manually create the tables and sql if not created and then add the permissions required for the account. Follow steps in the below article to manually add user with permissions to the sql database

https://github.com/OfficeDev/TeamsFx/blob/dev/docs/fx-core/sql-help.md#step-2-add-database-user-manually

@xzf0587
Copy link
Contributor

xzf0587 commented Jun 14, 2023

Hi @ge25kev,
sorry for late reply.
This error for maxPageSize is caused by the change of @azure/arm-sql interface.
The Teams toolkit 4.2.5 has fix this problem. You can use the version to retry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants