trigger: none

parameters:
  - name: Services
    type: object
    default:
      - azure-storage-blob
      - azure-storage-file-datalake
      - azure-storage-file-share
      - azure-storage-queue

extends:
    template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml
    parameters:
      Location: 'westus2'
      # All 5 service stages run in parallel, and with no parallel limits the tests may get throttled.
      MaxParallel: 2
      ServiceDirectory: storage
      InjectedPackages: $(InjectedPackages)
      Packages: ${{ parameters.Services }}
      MatrixReplace:
        # Use dedicated storage pool in canadacentral with higher memory capacity
        - Pool=.*LINUXPOOL.*/azsdk-pool-storage
        - Pool=.*WINDOWSPOOL.*/azsdk-pool-storage
        - TestSamples=.*/true
      ${{ if contains(variables['Build.DefinitionName'], 'tests-weekly') }}:
        MatrixConfigs:
          - Name: Storage_all_versions_live_test
            Path: sdk/storage/platform-matrix-all-versions.json
            Selection: sparse
            GenerateVMJobs: true
      EnvVars:
        AZURE_SKIP_LIVE_RECORDING: 'True'
        AZURE_TEST_RUN_LIVE: 'true'
        AZURE_SUBSCRIPTION_ID: $(STORAGE_SUBSCRIPTION_ID)