Skip to content

New Resource: azurerm_system_center_virtual_machine_manager_virtual_machine_instance#27622

Merged
catriona-m merged 59 commits intohashicorp:mainfrom
neil-yechenwei:systemcentervirtualmachinemanagervirtualmachineinstance
Mar 3, 2025
Merged

New Resource: azurerm_system_center_virtual_machine_manager_virtual_machine_instance#27622
catriona-m merged 59 commits intohashicorp:mainfrom
neil-yechenwei:systemcentervirtualmachinemanagervirtualmachineinstance

Conversation

@neil-yechenwei
Copy link
Contributor

@neil-yechenwei neil-yechenwei commented Oct 11, 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 comments along the lines of "+1", "me too" or "any updates", they generate extra noise for PR followers and do not help prioritize for review

Description

This PR is to support System Center Virtual Machine Manager Virtual Machine Instance. It is a virtual machine instance management tool primarily used for managing virtual resources in private and hybrid cloud environments.

Note: SCVMM is part of Microsoft System Center and is specifically designed to centrally manage data center virtualization infrastructure.

API reference: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/scvmm.json

Overview: https://learn.microsoft.com/en-us/azure/azure-arc/system-center-virtual-machine-manager/overview

PR Checklist

  • I have followed the guidelines in our Contributing Documentation.
  • I have checked to ensure there aren't other open Pull Requests for the same update/change.
  • I have checked if my changes close any open issues. If so please include appropriate closing keywords below.
  • I have updated/added Documentation as required written in a helpful and kind way to assist users that may be unfamiliar with the resource / data source.
  • I have used a meaningful PR title to help maintainers and other users understand this change and help prevent duplicate work.
    For example: “resource_name_here - description of change e.g. adding property new_property_name_here

Changes to existing Resource / Data Source

  • I have added an explanation of what my changes do and why I'd like you to include them (This may be covered by linking to an issue above, but may benefit from additional explanation).
  • I have written new tests for my resource or datasource changes & updated any relevent documentation.
  • I have successfully run tests with my changes locally. If not, please provide details on testing challenges that prevented you running the tests.
  • (For changes that include a state migration only). I have manually tested the migration path between relevant versions of the provider.

Testing

  • My submission includes Test coverage as described in the Contribution Guide and the tests pass. (if this is not possible for any reason, please include details of why you did or could not add test coverage)
--- PASS: TestAccSystemCenterVirtualMachineManagerVirtualMachineInstanceSequential/scvmmVirtualMachineInstance/basic (764.98s)
--- PASS: TestAccSystemCenterVirtualMachineManagerVirtualMachineInstanceSequential/scvmmVirtualMachineInstance/requiresImport (840.68s)
--- PASS: TestAccSystemCenterVirtualMachineManagerVirtualMachineInstanceSequential/scvmmVirtualMachineInstance/complete (825.70s)
--- PASS: TestAccSystemCenterVirtualMachineManagerVirtualMachineInstanceSequential/scvmmVirtualMachineInstance/update (934.30s)
--- PASS: TestAccSystemCenterVirtualMachineManagerVirtualMachineInstanceSequential/scvmmVirtualMachineInstance/inventoryItemId (330.69s)

Change Log

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

  • New Resource: azurerm_system_center_virtual_machine_manager_virtual_machine_instance

This is a (please select all that apply):

  • Bug Fix
  • New Feature (ie adding a service, resource, or data source)
  • Enhancement
  • Breaking Change

Note

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

@neil-yechenwei
Copy link
Contributor Author

neil-yechenwei commented Dec 5, 2024

@catriona-m , thanks for the comments. I updated PR. Please take another look. Below is the latest test result that I just now triggered.

--- PASS: TestAccSystemCenterVirtualMachineManagerVirtualMachineInstanceSequential/scvmmVirtualMachineInstance/basic (850.75s)
--- PASS: TestAccSystemCenterVirtualMachineManagerVirtualMachineInstanceSequential/scvmmVirtualMachineInstance/requiresImport (943.84s)
--- PASS: TestAccSystemCenterVirtualMachineManagerVirtualMachineInstanceSequential/scvmmVirtualMachineInstance/complete (1119.72s)
--- PASS: TestAccSystemCenterVirtualMachineManagerVirtualMachineInstanceSequential/scvmmVirtualMachineInstance/update (2363.51s)
--- PASS: TestAccSystemCenterVirtualMachineManagerVirtualMachineInstanceSequential/scvmmVirtualMachineInstance/inventoryItemId (878.34s)

Copy link
Member

@catriona-m catriona-m left a comment

Choose a reason for hiding this comment

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

Thanks @neil-yechenwei - I just noticed one more item in the tests but if you could fix that up and re-run them, I can take another look. Thanks!

Comment on lines +182 to +196
operating_system {
computer_name = "testComputer"
}

hardware {
cpu_count = 1
memory_in_mb = 1024
}

network_interface {
name = "testNIC"
ipv4_address_type = "Dynamic"
ipv6_address_type = "Dynamic"
mac_address_type = "Dynamic"
}
Copy link
Member

Choose a reason for hiding this comment

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

these blocks are optional so we should omit them from the basic test

Copy link
Contributor Author

@neil-yechenwei neil-yechenwei Jan 16, 2025

Choose a reason for hiding this comment

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

Updated.

),
},
data.ImportStep(),
data.ImportStep("operating_system", "hardware", "network_interface"),
Copy link
Member

Choose a reason for hiding this comment

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

we shouldn't need to ignore these fields?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. I removed them.

@neil-yechenwei
Copy link
Contributor Author

neil-yechenwei commented Jan 21, 2025

@catriona-m , thanks for the comments. I updated PR. Please take another look. Below is the test result that I just now triggered.

--- PASS: TestAccSystemCenterVirtualMachineManagerVirtualMachineInstanceSequential/scvmmVirtualMachineInstance/basic (780.81s)
--- PASS: TestAccSystemCenterVirtualMachineManagerVirtualMachineInstanceSequential/scvmmVirtualMachineInstance/requiresImport (841.72s)
--- PASS: TestAccSystemCenterVirtualMachineManagerVirtualMachineInstanceSequential/scvmmVirtualMachineInstance/complete (892.91s)
--- PASS: TestAccSystemCenterVirtualMachineManagerVirtualMachineInstanceSequential/scvmmVirtualMachineInstance/update (1136.20s)
--- PASS: TestAccSystemCenterVirtualMachineManagerVirtualMachineInstanceSequential/scvmmVirtualMachineInstance/inventoryItemId (321.41s)

@neil-yechenwei
Copy link
Contributor Author

neil-yechenwei commented Feb 17, 2025

@catriona-m , thanks for the comments. Please take another look for this PR. Thanks.

Copy link
Member

@catriona-m catriona-m left a comment

Choose a reason for hiding this comment

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

Thanks @neil-yechenwei LGTM!

@catriona-m catriona-m merged commit 2422e63 into hashicorp:main Mar 3, 2025
35 checks passed
@github-actions github-actions bot added this to the v4.22.0 milestone Mar 3, 2025
catriona-m added a commit that referenced this pull request Mar 3, 2025
jackofallops added a commit that referenced this pull request Mar 7, 2025
* Update CHANGELOG.md #28843

* Update CHANGELOG.md for #28748

* Update CHANGELOG.md for #28881

* Update CHANGELOG.md for #28909

* Update CHANGELOG.md fold in patch release and expand starred entry correctly

* Update CHANGELOG.md remove duplicate entry for 28843

* Update CHANGELOG.md #28066

* Update CHANGELOG.md for #28902 and fix ordering

* Update CHANGELOG.md for #28848

* Update CHANGELOG.md #27622

* Update CHANGELOG.md for #28271

* Update CHANGELOG.md update format

* Update CHANGELOG.md #28934

* Update for #28619 #28598

* Update CHANGELOG.md #28940

* Update CHANGELOG.md for #28880

* Update CHANGELOG.md for #28617

* Update CHANGELOG.md #28721

* Update CHANGELOG.md #28949

* Update previous entry for 4.16.0

* Update CHANGELOG.md for #28834

* prep for release

---------

Co-authored-by: Matthew Frahry <mbfrahry@gmail.com>
Co-authored-by: jackofallops <11830746+jackofallops@users.noreply.github.com>
Co-authored-by: catriona-m <86247157+catriona-m@users.noreply.github.com>
Co-authored-by: stephybun <steph@hashicorp.com>
Co-authored-by: Wodans Son <20408400+WodansSon@users.noreply.github.com>
Co-authored-by: jackofallops <ste@hashicorp.com>
@github-actions
Copy link
Contributor

github-actions bot commented Apr 3, 2025

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants