# Installation via az cli

The following snippet installs lag-metrics via az cli.

az managedapp create \
  --name eh-lag-metrics \
  --location westeurope \
  --kind marketplace \
  --resource-group YOUR_RG \
  --managed-rg-id /subscriptions/YOUR_SUBSCRIPTION/resourceGroups/eh-lag-metrics-managed-resource-group \
  --plan-product lag-metrics \
  --plan-name standard \
  --plan-version 1.0.0 \
  --plan-publisher 'huditechughaftungsbeschrnkt1673457598758' \
  --parameters '{"eventHubConnectionString": {"value": "CONNECTION_STRING"}, "storageAccountConnectionString": {"value": "CONNECTION_STRING"}, "applicationInsightsConnectionString": {"value": "CONNECTION_STRING"}, "offsetContainerName": {"value": "event-hub-offsets"}}'

Note that you have to customize this by specifying your subscription, resource group and the various connection strings.