ListTenants returns nil for DisplayName & Domains instead of its actual values #22464
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Mgmt
This issue is related to a management-plane library.
needs-team-attention
This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
This issue is responsible by Azure service team.
Subscription
Bug Report
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions"
v1.3.0
(Commit: 651a245)column output by
go list -m <module>
, for examplego list -m github.com/Azure/azure-sdk-for-go/sdk/azcore
.go version
:go version go1.21.4 darwin/amd64
I am trying to get the display names of my Azure tenants and using the Tenant List SDK API is not populating the fields I need.
Here is roughly the code I am using with appropriate values redacted or left out for brevity.
I expected an output similar to shown in the documentation for the ListTenants API with all fields populated: https://learn.microsoft.com/en-us/rest/api/resources/tenants/list?view=rest-resources-2022-12-01&tabs=HTTP
Instead I got a record with only the
ID
,TenantID
andTenantCategory
populated:How can we reproduce it?
Create a new tenants client with a client secret credential and try to go through the results and see if all fields are populated.
Anything we should know about your environment.
Nothing special about my environment.
This issue looks similar to this previous issue: #11574
The text was updated successfully, but these errors were encountered: