RegistrationState results on Null #3464
Unanswered
franciscosuca
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context
Application's .NET Target Framework : .NET 8.0
Microsoft.Azure.Devices.Provisioning.Service: 1.18.4
Description of the issue
When I debug enrollments (see sample below), I can observe all the default initialized values from IndividualEnrollments class, however, the value RegistrationState is always null.
When I check the individual enrollment from the AZ website, I can see (through Inspect) that the API populates the RegistrationState.
Code sample
I am using using Azure Identity to get the individual enrollments on the code below, which means, I should be able to see the same results that I can see when I use the Azure website.
Update
I just checked that by using the method
provisioningServiceClient.GetIndividualEnrollmentAsync(registrationId)
I was able to obtain the value for ResigrationState.Then, I am left with the question: why cannot the parameter RegistrationState be populated for the method
provisioningServiceClient.CreateIndividualEnrollmentQuery(querySpecification);
?Not even when I specify the values that I want from the query (i.e.,
new QuerySpecification("SELECT DeviceId, RegistrationState FROM enrollments");
), I am not able to get the specific parameters that I asked for.Beta Was this translation helpful? Give feedback.
All reactions