-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Fix missing power_state
attribute value for azurerm_virtual_machine
and azurerm_virtual_machine_scale_set
data sources
#26991
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR @ned1313. Could you take a look at the suggestions left in-line? Once those are resolved I can kick off the tests.
internal/services/compute/virtual_machine_scale_set_data_source.go
Outdated
Show resolved
Hide resolved
internal/services/compute/virtual_machine_scale_set_data_source.go
Outdated
Show resolved
Hide resolved
internal/services/compute/virtual_machine_scale_set_data_source.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests looks good, thanks @ned1313 LGTM 👍
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Community Note
Description
This PR fixes the problems identified in Issue #26990.
Currently, both the
azurerm_virtual_machine
andazurerm_virtual_machine_scale_set
do not correctly report back thepower_state
attribute. The value shows up asnull
.Additionally, the
azurerm_virtual_machine_scale_set
doesn't populate thecomputer_name
attribute for scale sets running in Flexible orchestration mode.PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_virtual_machine
data source -power_state
attribute no longernull
[Power State not reported in azurerm_virtual_machine and azurerm_virtual_machine_scale_set data sources #26990]azurerm_virtual_machine_scale_set
data source -power_state
andcomputer_name
attribute no longernull
[Power State not reported in azurerm_virtual_machine and azurerm_virtual_machine_scale_set data sources #26990]This is a (please select all that apply):
Related Issue(s)
Fixes #26990
Note
If this PR changes meaningfully during the course of review please update the title and description as required.