question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Incorrect PrincipalID data type in C# Kusto Management Library

See original GitHub issue

Library name and version

Azure.ResourceManager.Kusto 1.0.0

Describe the bug

In the Kusto management library Track 1 SDK, when creating a database principal assignment, the “PrincipalID” parameter was a string type, and according to the documentation, could be a user email, application ID, or security group name. On the REST API documentation page, it says the same thing.

However, in the new Track 2 C# SDK, a guid is required for that parameter, which obviously won’t work for an email address, which is our scenario: image

Note that the description of that parameter says that an email address is an accepted type.

Expected behavior

We’re able to create a database principal assignment using an email address.

Actual behavior

Cannot pass in an email address in the “principalId” parameter.

Reproduction Steps

Create the following object while using the “Azure.ResourceManager.Kusto” 1.0.0 nuget package:

string emailAddress = "a@example.com";
new KustoDatabasePrincipalAssignmentData()
{
    PrincipalId = emailAddress
};

It will throw an error at the line where it’s assigning the email address to the PrincipalId parameter.

Environment

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
NateB2commented, Oct 10, 2022

Awesome, thanks!

1reaction
jsquirecommented, Oct 6, 2022

Thank you for your feedback. Tagging and routing to the team member best able to assist.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kusto.Data exceptions - Azure Data Explorer
Indicates a failure to locate an entity in weak consistency mode. Generic exception that carries error information inside a Kusto Data Stream. ...
Read more >
AzureKusto: Interface to 'Kusto'/'Azure Data Explorer'
Description. Functions to connect to a Kusto cluster. Usage. AzureKusto(). ## S4 method for signature AzureKustoDriver. dbConnect(drv, ..., bigint = c(" ...
Read more >
Use Kusto Query Language to solve a data problem
This article will show Kusto Query Language, an Azure product that handles petabyte-size data masses.
Read more >
Installing a cluster on Azure using ARM templates
In OpenShift Container Platform version 4.9, you can install a cluster on Microsoft Azure by using infrastructure that you provide. Several Azure Resource ......
Read more >
Azure Resource Manager Overview | Microsoft Docs
Azure Resource Manager is the deployment and management service for Azure. It provides a consistent management layer that enables you to create, update, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found