-
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
azurerm_system_center_virtual_machine_manager_server
- add StateRefreshFunc
for checking the sync status
#26004
Conversation
…shFunc for checking the sync status
Related: #25429 (comment) |
Hi @neil-yechenwei - just checking in to see if there any updates about the concerns referenced in the above comment? Thanks |
@catriona-m , service team has replied that thread. |
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.
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
Though azurerm_system_center_virtual_machine_manager_server is created successfully. But we can't use azurerm_system_center_virtual_machine_manager_inventory_items to get the list of Inventory Items immediately since Inventory Items are still in sync. Service team confirmed that it's expected since the backend operator creates CRD (Custom Resource Definitions) for all the existing resource from onPrem and create InventoryItem resources which takes some time after PUT VMM Server operation. So it's not a bug but it takes some while to populate the inventory item resource. Service team also confirmed that the sync would definitely be completed within ten minutes. So we just need to set a timeout of 10 minutes and check the inventory quantity continuously every minute for 10 times. If the quantity doesn't change, then we consider the sync to be complete.
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_system_center_virtual_machine_manager_server
- addStateRefreshFunc
for checking the sync statusThis is a (please select all that apply):
Note
If this PR changes meaningfully during the course of review please update the title and description as required.