Open erezrokah opened 1 year ago
Hi @erezrokah. Thank you for your feedback and we will look into it soon. Meanwhile, feel free to share your experience using the Azure SDK in this survey.
@erezrokah thank you for your feedback. I could reproduce the problem and it seems a service issue. I'll let service team to take a look.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @TravisCragg-MSFT, @nikhilpatel909, @sandeepraichura, @hilaryw29, @GabstaMSFT, @ramankumarlive, @ushnaarshadkhan.
Author: | erezrokah |
---|---|
Assignees: | tadelesh |
Labels: | `question`, `Compute`, `Compute - VM`, `Service Attention`, `Mgmt`, `customer-reported`, `needs-team-attention` |
Milestone: | - |
Hi đź‘‹ When are we expected to receive an update on the issue?
Any updates on this ticket?
I see 2 problems:
https://management.azure.com/subscriptions/{{subscriptionId}}/providers/Microsoft.Compute/availabilitySets?$expand=instanceView&api-version=2024-03-01
I am following up to get clarity on how this is supposed to be done and update the documentation.
The valid parameter is listed as instanceView, but it should be "virtualMachines/$ref"
Below is a valid expand call.
https://management.azure.com/subscriptions/{{subscriptionId}}/providers/Microsoft.Compute/availabilitySets?$expand=virtualMachines/$ref&api-version=2024-03-01
We will be updating the doc to include the information.
Bug Report
import path of package in question -
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v4
SDK version -
v4.1.0
output of
go version
-go version go1.20.2 darwin/arm64
What happened?
Trying to use the
AvailabilitySetsClient
NewListBySubscriptionPager
with the expand parameter returns an error:No error returned
Use the code from https://github.com/Azure/azure-sdk-for-go/blob/cf448612bb22e9b72b05f9a52e226d04a0afc53b/sdk/resourcemanager/compute/armcompute/availabilitysets_client_example_test.go#L279 but with a real subscription.
I also tried with expand set to
instanceView
,instanceView\$ref
,virtualMachines
.instanceView
because of https://learn.microsoft.com/en-us/rest/api/compute/availability-sets/list-by-subscription?tabs=Go#uri-parameters: also see https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v4#AvailabilitySetsClientListBySubscriptionOptions andvirtualMachines
because of the code above and: https://learn.microsoft.com/en-us/rest/api/compute/availability-sets/list-by-subscription?tabs=Go#list-availability-sets-in-a-subscription.Anything we should know about your environment.
Nope
Maybe I holding it wrong? What is the correct value to pass for the expand parameter?