(ExternalAdministratorPrincipalType) Invalid or missing external administrator principal type. Please select from User, Application or Group.
az feedbackauto-generates most of the information requested below, as of CLI version 2.0.62
Describe the bug On Azure CLI version 2.27.1, trying to update a SQL server is triggering the following error ExternalAdministratorPrincipalType) Invalid or missing external administrator principal type. Please select from User, Application or Group.
The same query worked on AZ CLI version 2.16.0 and prior.
To Reproduce Upgrade AZ CLI to the latest version and try to update a SQL server database using the "az sql server update" command. Example : az sql server update -g test-dbs-rg -n test-dbs --set tags.app=test
Expected behavior "az sql server update" command should update a SQL server without errors.
Environment summary
{
"azure-cli": "2.27.1",
"azure-cli-core": "2.27.1",
"azure-cli-telemetry": "1.0.6",
"extensions": {
"db-up": "0.1.15"
}
}
Additional context
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureSQLGitHub.
Issue Details
az feedbackauto-generates most of the information requested below, as of CLI version 2.0.62
Describe the bug On Azure CLI version 2.27.1, trying to update a SQL server is triggering the following error ExternalAdministratorPrincipalType) Invalid or missing external administrator principal type. Please select from User, Application or Group.
The same query worked on AZ CLI version 2.16.0 and prior.
To Reproduce Upgrade AZ CLI to the latest version and try to update a SQL server database using the "az sql server update" command. Example : az sql server update -g test-dbs-rg -n test-dbs --set tags.app=test
Expected behavior "az sql server update" command should update a SQL server without errors.
Environment summary
{
"azure-cli": "2.27.1",
"azure-cli-core": "2.27.1",
"azure-cli-telemetry": "1.0.6",
"extensions": {
"db-up": "0.1.15"
}
}
Additional context
| Author: | Krishnadas-KP |
|---|---|
| Assignees: | - |
| Labels: |
|
| Milestone: | - |
route to service team
I have the same issue as well, I believe it is because my Azure SQL Server has an Azure Active Directory admin, but I haven't managed to test a az sql server update command logged as that admin user.
I tried an az sql server update command with a previous version of the CLI and it worked. So I believe its just the CLI version that's the problem
I have the same issue as well, I believe it is because my Azure SQL Server has an Azure Active Directory admin, but I haven't managed to test a az sql server update command logged as that admin user.
Removing the AD Admin and running an az sql server update command worked on my side.
This has been reported a couple times earlier already (#19227 , #19228 ). So far no news. I'm curious if someone has started working on it.
sql service team should look into this.