Skip to content

Commit

Permalink
update testcase
Browse files Browse the repository at this point in the history
Signed-off-by: ziyeqf <[email protected]>
  • Loading branch information
ziyeqf committed Jun 21, 2023
1 parent fc5ea04 commit 3922d97
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,14 @@ resource "azurerm_subnet" "tfo" {
address_prefixes = ["192.168.2.0/24"]
}
resource "azurerm_public_ip" "tfo" {
name = "pubip%[1]d-tfo"
allocation_method = "Static"
location = azurerm_resource_group.test2.location
resource_group_name = azurerm_resource_group.test2.name
sku = "Basic"
}
resource "azurerm_site_recovery_replicated_vm" "test" {
name = "repl-%[2]d"
resource_group_name = azurerm_resource_group.test2.name
Expand All @@ -470,7 +478,7 @@ resource "azurerm_site_recovery_replicated_vm" "test" {
target_resource_group_id = azurerm_resource_group.test2.id
target_recovery_fabric_id = azurerm_site_recovery_fabric.test2.id
target_recovery_protection_container_id = azurerm_site_recovery_protection_container.test2.id
test_network_id = azurerm_virtual_network.test2.id
test_network_id = azurerm_virtual_network.tfo.id
managed_disk {
disk_id = azurerm_virtual_machine.test.storage_os_disk[0].managed_disk_id
Expand All @@ -484,8 +492,8 @@ resource "azurerm_site_recovery_replicated_vm" "test" {
source_network_interface_id = azurerm_network_interface.test.id
target_subnet_name = azurerm_subnet.test2.name
recovery_public_ip_address_id = azurerm_public_ip.test-recovery.id
failover_test_subnet_name = azurerm_subnet.test2.name
failover_test_public_ip_address_id = azurerm_public_ip.test-recovery.id
failover_test_subnet_name = azurerm_subnet.tfo.name
failover_test_public_ip_address_id = azurerm_public_ip.tfo.id
}
depends_on = [
Expand Down

0 comments on commit 3922d97

Please sign in to comment.