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

ERROR: Service principal 'http://bie3i8adx-reader' doesn't exist #118

Open
p31415926 opened this issue Jul 28, 2021 · 3 comments
Open

ERROR: Service principal 'http://bie3i8adx-reader' doesn't exist #118

p31415926 opened this issue Jul 28, 2021 · 3 comments

Comments

@p31415926
Copy link

Streaming at Scale with Azure Data Explorer

Steps to be executed: CIDTM

Configuration:
. Resource Group => bie3i8
. Region => eastus
. EventHubs => TU: 2, Partitions: 2
. Data Explorer => SKU: Standard_D11_v2
. Simulators => 1

Deployment started...

***** [C] Setting up COMMON resources
creating resource group
. name: bie3i8
. location: eastus
creating storage account
. name: bie3i8storage

***** [I] Setting up INGESTION
creating eventhubs namespace
. name: bie3i8eventhubs
. capacity: 2
. capture: False
. auto-inflate: false
creating eventhub instance
. name: bie3i8in-2
. partitions: 2
creating consumer group
. name: dataexplorer

***** [D] Setting up DATABASE
checking Key Vault exists
creating KeyVault bie3i8spkv
checking service principal exists
creating service principal
WARNING: The output includes credentials that you must protect. Be sure that you do not include these credentials in your code or check the credentials into your source control. For more information, see https://aka.ms/azadsp-cli
WARNING: 'name' property in the output is deprecated and will be removed in the future. Use 'appId' instead.
getting service principal
ERROR: Service principal 'http://bie3i8adx-reader' doesn't exist

What does that mean "Service principal 'http://bie3i8adx-reader' doesn't exist "?

@p31415926
Copy link
Author

@p31415926
Copy link
Author

Anybody can give me a suggestion on this?

@p31415926
Copy link
Author

I found that some mistake in create-service-principal.sh

should change below
appId=$(az ad sp list --display-name http://$SERVICE_PRINCIPAL_KV_NAME --query appId --output tsv)
to
appId=$(az ad sp list --display-name http://$SERVICE_PRINCIPAL_KV_NAME --query "[].appId" --output tsv)

otherwise appId is blank.

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

1 participant