Open ParthaI opened 2 months ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @avirishuv @Drewm3.
What is the failure you are receiving and on which call does it fail. Can you share the exception message? Please ensure you don't share on this thread any sensitive information such as tokens.
Hi @ParthaI. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.
Your comment states you're using v68 which is the old mgmt libraries, however the code you shared is using the latest library versions. Please confirm which package of armcompute you are using.
Hello, @RickWinter. Thank you for your quick response.
In our project, we're using the v68.0.0+incompatible
package. I've created two separate standalone codes with the resourcemanager
package, each using different authentication modules, to verify whether the latest version of resourcemanager
provides the necessary details.
However, I'm unable to retrieve the VM statuses when using client/secret authentication with any of the packages. In contrast, when using CLI authentication, I'm getting the expected results for all the packages.
What is the failure you are receiving and on which call does it fail. Can you share the exception message? Please ensure you don't share on this thread any sensitive information such as tokens.
I’m not encountering any errors, but I'm receiving an empty response for the statuses property.
Note: Additionally, with client/secret authentication, I'm only receiving an EMPTY statuses value for a specific subscription, not for all subscriptions.
Thanks!
The v68.0.0+incompatible package you are using is deprecated.
The current library you should use is: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute We strongly encourage you to upgrade to continue receiving updates.
Thank you for the suggestion. We'll give it a try and let you know if the package helps us.
Hey there,
Having the same issues with latest github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v6
version of the module.
The VirtualMachineInstanceView is nil
for all VMs.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @avirishuv @Drewm3.
Dear team,
I am currently using the Azure Compute Go SDK package, version
v68.0.0+incompatible
.With this package, I am making the VirtualMachinesClient.InstanceView API call to retrieve the instance power state.
When I use Azure CLI for authentication, the results are as expected. However, when using Client/Secret authentication, I do not receive any status information for the instances.
I would greatly appreciate any insights or suggestions you might have on this matter.
Here is the standalone Go code I am using.
With Azure CLI authentication(Working fine and returning the result as expected):
With Client/Secret authentication(Didn't work as expected):
Note: The App has the appropriate permission to make the API call.
Could you please assist with what is going wrong with client/secret authentication?
@halit-c4c, Please include the details if I missed anything.
Thanks!