Open dnaeon opened 6 days ago
@dnaeon, could you turn on logging by setting environment variable AZURE_SDK_GO_LOGGING to all and configure policy.LogOption to print the body of this call? Please help to check whether you could receive subnet info in the raw response.
https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/new-version-guideline.md#logging
Hey @lirenhe ,
I've just enabled logging and printed the body of the response. I can see the subnet
being part of the body, so this seems like an issue related to the SDK itself.
Thanks!
Bug Report
I'm using sdk/resourcemanager/network/armnetwork/v6 SDK in order to get the existing Network Interfaces.
Go version:
go version go1.23.2 darwin/arm64
SDK version:
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v6 v6.1.0
When getting the Network Interfaces via the SDK the
Subnet
field is alwaysnil
.The following example program prints the network interfaces from a given subscription and resource group.
Sample result.
Getting the Network Interfaces using the CLI (
az network nic list
) works as expected, however when using the SDK I always getnil
values for theSubnet
.