trigger: none

jobs:
  - template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml
    parameters:
      BuildTargetingString: azure-ai-metricsadvisor
      ServiceDirectory: metricsadvisor
      MaxParallel: 1
      EnvVars:
        AZURE_SUBSCRIPTION_ID: $(provisioner-subscription)
        AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id)
        AZURE_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret)
        AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id)
        AZURE_METRICS_ADVISOR_ENDPOINT: $(metricsadvisor-test-service-endpoint)
        AZURE_METRICS_ADVISOR_SUBSCRIPTION_KEY: $(metricsadvisor-test-subscription-key)
        AZURE_METRICS_ADVISOR_API_KEY: $(python-metricsadvisor-test-api-key)
        AZURE_METRICS_ADVISOR_SQL_SERVER_CONNECTION_STRING: $(metricsadvisor-test-sql-server-connection-string)
        AZURE_METRICS_ADVISOR_AZURE_TABLE_CONNECTION_STRING: $(metricsadvisor-test-azure-table-connection-string)
        AZURE_METRICS_ADVISOR_AZURE_BLOB_CONNECTION_STRING: $(metricsadvisor-test-azure-blob-connection-string)
        AZURE_METRICS_ADVISOR_COSMOS_DB_CONNECTION_STRING: $(metricsadvisor-test-cosmos-db-connection-string)
        AZURE_METRICS_ADVISOR_HTTP_GET_URL: $(metricsadvisor-test-http-get-url)
        AZURE_METRICS_ADVISOR_HTTP_POST_URL: $(metricsadvisor-test-http-post-url)
        AZURE_METRICS_ADVISOR_APPLICATION_INSIGHTS_API_KEY: $(metricsadvisor-test-application-insights-api-key)
        AZURE_METRICS_ADVISOR_AZURE_DATA_EXPLORER_CONNECTION_STRING: $(metricsadvisor-test-azure-data-explorer-connection-string)
        AZURE_METRICS_ADVISOR_INFLUX_DB_CONNECTION_STRING: $(metricsadvisor-test-influx-db-connection-string)
        AZURE_METRICS_ADVISOR_INFLUX_DB_PASSWORD: $(metricsadvisor-test-influx-db-password)
        AZURE_METRICS_ADVISOR_AZURE_DATALAKE_ACCOUNT_KEY: $(metricsadvisor-test-azure-datalake-account-key)
        AZURE_METRICS_ADVISOR_AZURE_MONGO_DB_CONNECTION_STRING: $(metricsadvisor-test-azure-mongo-db-connection-string)
        AZURE_METRICS_ADVISOR_MYSQL_CONNECTION_STRING: $(metricsadvisor-test-mysql-connection-string)
        AZURE_METRICS_ADVISOR_POSTGRESQL_CONNECTION_STRING: $(metricsadvisor-test-postgresql-connection-string)
        AZURE_METRICS_ADVISOR_ELASTICSEARCH_AUTH_HEADER: $(metricsadvisor-test-elasticsearch-auth-header)
        AZURE_METRICS_ADVISOR_ANOMALY_DETECTION_CONFIGURATION_ID: $(python-metricsadvisor-test-anomaly-detection-config-id)
        AZURE_METRICS_ADVISOR_DATA_FEED_ID: $(python-metricsadvisor-test-data-feed-id)
        AZURE_METRICS_ADVISOR_METRIC_ID: $(python-metricsadvisor-test-metric-id)
        AZURE_METRICS_ADVISOR_ANOMALY_ALERT_CONFIGURATION_ID: $(python-metricsadvisor-test-anomaly-alert-config-id)
        AZURE_METRICS_ADVISOR_INCIDENT_ID: $(python-metricsadvisor-test-incident-id)
        AZURE_METRICS_ADVISOR_DIMENSION_NAME: $(python-metricsadvisor-test-dimension-name)
        AZURE_METRICS_ADVISOR_FEEDBACK_ID: $(python-metricsadvisor-test-feedback-id)
        AZURE_METRICS_ADVISOR_ALERT_ID: $(python-metricsadvisor-test-alert-id)
        TEST_MODE: 'RunLiveNoRecord'
        AZURE_SKIP_LIVE_RECORDING: 'True'
        AZURE_TEST_RUN_LIVE: 'true'
