Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to fetch VM software inventories using armsecurity package #23442

Open
blesniewski opened this issue Sep 16, 2024 · 1 comment
Open
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 Workflow: 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 Security Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@blesniewski
Copy link

Bug Report

  • import path of package in question: /sdk/resourcemanager/security/armsecurity
  • SDK version: latest (v0.14.0)
    go list -m "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity"
    github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity v0.14.0
    
  • output of go version
go version
go version go1.22.4 darwin/arm64
  • What happened?
 // Created New client 
  svc, err := armsecurity.NewSoftwareInventoriesClient(cl.SubscriptionId, cl.Creds, cl.Options)
 // got the pager
  pager := svc.NewListByExtendedResourcePager(rgName, rNamespace, rType, rName, &armsecurity.SoftwareInventoriesClientListByExtendedResourceOptions{})
  // tried using the pager

I keep getting errors such as this:

"{
  "error":{
     "code":"NoRegisteredProviderFound",
     "message":"No registered resource provider found for location 'westeurope' and API version '2021-05-01-preview' for type 'virtualMachines'. The supported api-versions are '2015-05-01-preview, 2015-06-15, 2016-03-30, 2016-04-30-preview, 2016-08-30, 2017-03-30, 2017-12-01, 2018-04-01, 2018-06-01, 2018-10-01, 2019-03-01, 2019-07-01, 2019-12-01, 2020-06-01, 2020-12-01, 2021-03-01, 2021-04-01, 2021-07-01, 2021-11-01, 2022-03-01, 2022-08-01, 2022-11-01, 2023-03-01, 202...+631 more"

The output is truncated but I think the core of the problem is visible, when I look into the actual package on github I can see this line which sets the API version

  • What did you expect or want to happen?
    Expected the pager to work
  • How can we reproduce it?
    Try using the pager to fetch software inventories for a Compute VM
  • Anything we should know about your environment.
    Not sure, macOS Sonoma 14.4

Thanks

@github-actions github-actions bot added 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 Workflow: 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 Security Service Attention Workflow: This issue is responsible by Azure service team. labels Sep 16, 2024
Copy link

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @chlahav.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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 Workflow: 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 Security Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

1 participant