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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

compute - migrate legacy compute resources to hashicorp/go-azure-sdk #25723

Merged
merged 4 commits into from Apr 29, 2024

Conversation

stephybun
Copy link
Member

@stephybun stephybun commented Apr 23, 2024

Community Note

  • Please vote on this PR by adding a 馃憤 reaction to the original PR to help the community and maintainers prioritize for review
  • Please do not leave "+1" or "me too" comments, they generate extra noise for PR followers and do not help prioritize for review

Description

This updates the legacy compute resources to use hashicorp/go-azure-sdk and removes the last references to the legacy Azure Track1 SDK.

Testing

Failing deprecated usage check can be ignored since the existing behaviour of the resource should be preserved

image

Change Log

Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.

  • compute - update legacy compute resources to use hashicorp/go-azure-sdk [GH-00000]

Note

If this PR changes meaningfully during the course of review please update the title and description as required.

@stephybun stephybun marked this pull request as ready for review April 24, 2024 15:41
@stephybun stephybun requested a review from a team April 25, 2024 09:51
Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @stephybun - Just one (possibly over paranoid) thing to check below, otherwise LGTM 馃

return fmt.Errorf("Failed long polling for the stop of virtual machine %q: %+v", resourceGroup, err)
ctx2, cancel := context.WithTimeout(ctx, 10*time.Minute)
defer cancel()
if err := client.Compute.VirtualMachinesClient.DeallocateThenPoll(ctx2, *id, virtualmachines.DefaultDeallocateOperationOptions()); err != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to be completely sure, is the default option value (nil bool) treated the same as false here? We sent an explicit false previously, so need to be careful the behaviour is the same after this change.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated to send a false like we were previously doing

@stephybun stephybun merged commit 02d635a into main Apr 29, 2024
29 of 30 checks passed
@stephybun stephybun deleted the r/migrate-legacy-compute branch April 29, 2024 11:31
@github-actions github-actions bot added this to the v3.102.0 milestone Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants