[BUG] Incorrect PrincipalID data type in C# Kusto Management Library
See original GitHub issueLibrary 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:
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:
- Created a year ago
- Comments:7 (5 by maintainers)
Top GitHub Comments
Awesome, thanks!
Thank you for your feedback. Tagging and routing to the team member best able to assist.