azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

(ExternalAdministratorPrincipalType) Invalid or missing external administrator principal type. Please select from User, Application or Group.

Open Krishnadas-KP opened this issue 5 years ago • 7 comments

az feedback auto-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

Krishnadas-KP avatar Aug 17 '21 08:08 Krishnadas-KP

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureSQLGitHub.

Issue Details

az feedback auto-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:

SQL, Service Attention, customer-reported

Milestone: -

ghost avatar Aug 17 '21 09:08 ghost

route to service team

yonzhan avatar Aug 17 '21 09:08 yonzhan

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.

mikarapace avatar Aug 19 '21 07:08 mikarapace

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

Krishnadas-KP avatar Aug 19 '21 07:08 Krishnadas-KP

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.

mikarapace avatar Aug 19 '21 07:08 mikarapace

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.

christianfosli avatar Aug 19 '21 16:08 christianfosli

sql service team should look into this.

yonzhan avatar Aug 19 '21 23:08 yonzhan