azurerm_healthcare_medtech_service

Manages a Healthcare Med Tech Service.

Example Usage

resource "azurerm_resource_group" "example" {
  name     = "example-rg"
  location = "east us"
}

resource "azurerm_healthcare_workspace" "example" {
  name                = "examplewkspace"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
}

resource "azurerm_healthcare_medtech_service" "example" {
  name         = "examplemed"
  workspace_id = azurerm_healthcare_workspace.example.id
  location     = "east us"

  identity {
    type = "SystemAssigned"
  }

  eventhub_namespace_name      = "example-eventhub-namespace"
  eventhub_name                = "example-eventhub"
  eventhub_consumer_group_name = "$Default"

  device_mapping_json = jsonencode({
    "templateType" : "CollectionContent",
    "template" : [
      {
        "templateType" : "JsonPathContent",
        "template" : {
          "typeName" : "heartrate",
          "typeMatchExpression" : "$..[?(@heartrate)]",
          "deviceIdExpression" : "$.deviceid",
          "timestampExpression" : "$.measurementdatetime",
          "values" : [
            {
              "required" : "true",
              "valueExpression" : "$.heartrate",
              "valueName" : "hr"
            }
          ]
        }
      }
    ]
  })
}

Argument Reference

The following arguments are supported:


A identity block supports the following:

Attributes Reference

The following arguments are supported:

*identity - An identity block as defined below.


An identity block exports the following:

Timeouts

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

Import

Healthcare Med Tech Service can be imported using the resourceid, e.g.

terraform import azurerm_healthcare_medtech_service.example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.HealthcareApis/workspaces/workspace1/iotConnectors/iotconnector1