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

Compute: update to package-2019-12 and support simulate eviction #1199

Merged
merged 13 commits into from
Jun 11, 2020

Conversation

xseeseesee
Copy link
Contributor

No description provided.

SdkContext.sleep(30 * 60 * 1000);

virtualMachine = computeManager.virtualMachines().getById(virtualMachine.id());
Assert.assertNotNull(virtualMachine);

Choose a reason for hiding this comment

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

Assert if the vm state is deallocated. When it is deallocated, vm entity will still be there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we need to get such state via InstanceView?

SdkContext.sleep(30 * 60 * 1000);

for (VirtualMachineScaleSetVM instance: vmInstances) {
instance.refresh();

Choose a reason for hiding this comment

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

Same as Single VM. Check the vm state of each VM.

@xseeseesee xseeseesee merged commit e786bea into master Jun 11, 2020
@xseeseesee xseeseesee deleted the compute-simulate branch June 11, 2020 06:29
xseeseesee added a commit to Azure/azure-sdk-for-java that referenced this pull request Jun 29, 2020
* Compute: upgrade api version

* Compute: generate package-2019-12

* fix compile errors

* update record sessions

* sync Azure/azure-libraries-for-java#1049

* sync Azure/azure-libraries-for-java#1177

* sync Azure/azure-libraries-for-java#1199

* fix spotbugs error

* sync specialized image changes and rename generalized methods

* update session records

* fix checkstyle

* update session record
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants