azurerm_workloads_sap_discovery_virtual_instance

Manages an SAP Discovery Virtual Instance.

Example Usage

resource "azurerm_resource_group" "example" {
  name     = "example-sapvis"
  location = "West Europe"
}

resource "azurerm_workloads_sap_discovery_virtual_instance" "example" {
  name                              = "X01"
  resource_group_name               = azurerm_resource_group.example.name
  location                          = azurerm_resource_group.example.location
  environment                       = "NonProd"
  sap_product                       = "S4HANA"
  central_server_virtual_machine_id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/csvm1"
  managed_storage_account_name      = "managedsa"

  identity {
    type = "UserAssigned"

    identity_ids = [
      "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/exampleRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai1"
    ]
  }

  lifecycle {
    ignore_changes = [managed_resource_group_name]
  }
}

Arguments Reference

The following arguments are supported:


An identity block supports the following:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

SAP Discovery Virtual Instances can be imported using the resource id, e.g.

terraform import azurerm_workloads_sap_discovery_virtual_instance.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Workloads/sapVirtualInstances/vis1