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"
Bug Report
/sdk/resourcemanager/security/armsecurity
latest
(v0.14.0
)go version
I keep getting errors such as this:
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 https://github.com/Azure/azure-sdk-for-go/blob/500650cf709907ff0dc0a11180547467407f1a06/sdk/resourcemanager/security/armsecurity/softwareinventories_client.go#L185
Thanks