trigger: none

stages:
  - template: ../../eng/pipelines/templates/stages/archetype-sdk-tests.yml
    parameters:
      BuildTargetingString: azure-ai-metricsadvisor
      ServiceDirectory: metricsadvisor
      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)
        METRICS_ADVISOR_ENDPOINT: $(metricsadvisor-test-service-endpoint)
        METRICS_ADVISOR_SUBSCRIPTION_KEY: $(metricsadvisor-test-subscription-key)
        METRICS_ADVISOR_API_KEY: $(python-metricsadvisor-test-api-key)
        METRICS_ADVISOR_SQL_SERVER_CONNECTION_STRING: $(metricsadvisor-test-sql-server-connection-string)
        METRICS_ADVISOR_ANOMALY_DETECTION_CONFIGURATION_ID: $(python-metricsadvisor-test-anomaly-detection-config-id)
        METRICS_ADVISOR_DATA_FEED_ID: $(python-metricsadvisor-test-data-feed-id)
        METRICS_ADVISOR_METRIC_ID: $(python-metricsadvisor-test-metric-id)
        METRICS_ADVISOR_ANOMALY_ALERT_CONFIGURATION_ID: $(python-metricsadvisor-test-anomaly-alert-config-id)
        METRICS_ADVISOR_INCIDENT_ID: $(python-metricsadvisor-test-incident-id)
        METRICS_ADVISOR_FEEDBACK_ID: $(python-metricsadvisor-test-feedback-id)
        METRICS_ADVISOR_ALERT_ID: $(python-metricsadvisor-test-alert-id)
        TEST_MODE: 'RunLiveNoRecord'
        AZURE_SKIP_LIVE_RECORDING: 'True'
        AZURE_TEST_RUN_LIVE: 'true'
