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

Use last PowerState instance in Statuses for power status #15941

Merged
merged 2 commits into from Sep 24, 2021
Merged

Use last PowerState instance in Statuses for power status #15941

merged 2 commits into from Sep 24, 2021

Conversation

DSakura207
Copy link
Contributor

Description

This is for #15566. Now code will scan Statuses property and find last InstanceViewStatus, whose Code starts with PowerState.

Nuget package Microsoft.Azure.Management.Compute.Fluent has the class for the purpose, but it is being phased out so I didn't use that package.

Checklist

  • I have read the Submitting Changes section of CONTRIBUTING.md
  • The title of the PR is clear and informative
  • The appropriate ChangeLog.md file(s) has been updated:
    • For any service, the ChangeLog.md file can be found at src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
    • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header -- no new version header should be added
  • The PR does not introduce breaking changes
  • If applicable, the changes made in the PR have proper test coverage
  • For public API changes to cmdlets:
    • a cmdlet design review was approved for the changes in this repository (Microsoft internal only)
      • {Please put the link here}
    • the markdown help files have been regenerated using the commands listed here

@ghost
Copy link

ghost commented Sep 23, 2021

Thank you for your contribution DSakura207! We will review the pull request and get back to you soon.

@wyunchi-ms
Copy link
Contributor

/azp run azure-powershell - security-tools

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

@wyunchi-ms wyunchi-ms merged commit b47f246 into Azure:main Sep 24, 2021
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