diff --git a/eng/Directory.Build.Common.targets b/eng/Directory.Build.Common.targets
index ab302b4e9bd34..a44030a901833 100644
--- a/eng/Directory.Build.Common.targets
+++ b/eng/Directory.Build.Common.targets
@@ -1,4 +1,4 @@
-
+
@@ -330,5 +330,33 @@
+
+
+ ProjectDependsOnInner
+
+
+
+
+
+
+
+
+
+
+
+
+ <_LibrariesReferenced Include="@(ReferencePath -> '%(Filename)')"/>
+ <_DependsOnGiven Include="@(_LibrariesReferenced)" Condition="'%(Identity)' == '$(TestDependsOnDependency)'" />
+
+
+
+
+
+
+
-
+
\ No newline at end of file
diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props
index d719db358cd7b..1bc7f59579de2 100644
--- a/eng/Packages.Data.props
+++ b/eng/Packages.Data.props
@@ -160,7 +160,7 @@
All should have PrivateAssets="All" set so they don't become package dependencies
-->
-
+
diff --git a/eng/common/testproxy/target_version.txt b/eng/common/testproxy/target_version.txt
index c390d38a46525..0ea1143fba37b 100644
--- a/eng/common/testproxy/target_version.txt
+++ b/eng/common/testproxy/target_version.txt
@@ -1 +1 @@
-1.0.0-dev.20220805.3
+1.0.0-dev.20220810.2
diff --git a/eng/pipelines/templates/jobs/ci.tests.yml b/eng/pipelines/templates/jobs/ci.tests.yml
index dc525c77544a9..5d4f394bf3eb4 100644
--- a/eng/pipelines/templates/jobs/ci.tests.yml
+++ b/eng/pipelines/templates/jobs/ci.tests.yml
@@ -2,12 +2,6 @@ parameters:
- name: SDKType
type: string
default: all
-- name: ServiceDirectory
- type: string
- default: not-specified
-- name: ServiceToTest
- type: string
- default: ''
- name: TestSetupSteps
type: stepList
default: []
@@ -24,6 +18,12 @@ parameters:
- name: CloudConfig
type: object
default: {}
+- name: ProjectListOverrideFilePropertyName
+ type: string
+ default: ''
+- name: ServiceDirectory
+ type: string
+ default: ''
jobs:
- job:
@@ -43,10 +43,23 @@ jobs:
- ${{ if not(contains(variables['Build.DefinitionName'], '-pr - ')) }}:
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
parameters:
+ ${{ if eq(parameters.ProjectListOverrideFilePropertyName, '') }}:
+ Paths:
+ - "/*"
+ - "!SessionRecords"
+ - "/sdk/${{ parameters.ServiceDirectory }}/**/SessionRecords"
+ ${{ else }}:
Paths:
- "/*"
- "!SessionRecords"
- - "/sdk/${{ parameters.ServiceToTest }}/**/SessionRecords"
+ - "/sdk/*/**/SessionRecords"
+ - ${{ if ne(parameters.ProjectListOverrideFilePropertyName, '') }}:
+ - task: DownloadPipelineArtifact@2
+ inputs:
+ artifact: DependencyTestProjectReferences
+ patterns: "**/$(${{ parameters.ProjectListOverrideFilePropertyName }})"
+ path: $(Build.SourcesDirectory)
+
- pwsh: |
$(Build.SourcesDirectory)/eng/common/scripts/trust-proxy-certificate.ps1
displayName: 'Language Specific Certificate Trust'
@@ -63,6 +76,17 @@ jobs:
- template: /eng/pipelines/templates/steps/install-dotnet.yml
parameters:
NuGetCacheKey: Test
+ - pwsh: |
+ if ("${{ parameters.ProjectListOverrideFilePropertyName }}" -ne '') {
+ Write-Host "##vso[task.setvariable variable=ProjectListOverrideFileName]$(${{ parameters.ProjectListOverrideFilePropertyName }})"
+ Write-Host "##vso[task.setvariable variable=CodeCoverageFilePattern]$(Build.SourcesDirectory)\sdk\**\coverage.cobertura.xml"
+ }
+ else
+ {
+ Write-Host "##vso[task.setvariable variable=ProjectListOverrideFileName]"
+ Write-Host "##vso[task.setvariable variable=CodeCoverageFilePattern]$(Build.SourcesDirectory)\sdk\${{parameters.ServiceDirectory}}\**\coverage.cobertura.xml"
+ }
+ displayName: Set variable for the project list file and coverage directory
- pwsh: >-
dotnet test eng/service.proj
--filter '(TestCategory!=Manually) & (TestCategory!=Live) & ($(AdditionalTestFilters))'
@@ -70,12 +94,13 @@ jobs:
--logger 'trx;LogFileName=$(TestTargetFramework).trx' --logger:'console;verbosity=normal'
--blame-crash-dump-type full --blame-hang-dump-type full --blame-hang-timeout ${{parameters.TestTimeoutInMinutes}}minutes
/p:SDKType=${{ parameters.SDKType }}
- /p:ServiceDirectory=${{ parameters.ServiceToTest }}
+ /p:ServiceDirectory=${{ parameters.ServiceDirectory }}
/p:IncludeSrc=false /p:IncludeSamples=false /p:IncludePerf=false /p:IncludeStress=false
/p:RunApiCompat=false /p:InheritDocEnabled=false
/p:Configuration=$(BuildConfiguration)
- /p:CollectCoverage=$(CollectCoverage) /p:CodeCoverageDirectory=$(Build.SourcesDirectory)\sdk\${{parameters.ServiceDirectory}}
- /p:EnableSourceLink=false
+ /p:CollectCoverage=$(CollectCoverage)
+ /p:EnableSourceLink=false
+ /p:ProjectListOverrideFile=$(ProjectListOverrideFileName)
$(AdditionalTestArguments)
displayName: "Build & Test ($(TestTargetFramework))"
- task: PublishTestResults@2
@@ -91,7 +116,7 @@ jobs:
condition: and(succeededOrFailed(), eq(variables['CollectCoverage'], 'true'), eq(variables['coverage.collected'], 'true'))
displayName: Generate Code Coverage Reports
inputs:
- reports: $(Build.SourcesDirectory)\sdk\${{parameters.ServiceDirectory}}\**\coverage.cobertura.xml
+ reports: $(CodeCoverageFilePattern)
targetdir: $(Build.ArtifactStagingDirectory)\coverage
reporttypes: Cobertura
filefilters: +$(Build.SourcesDirectory)\sdk\${{parameters.ServiceDirectory}}\**
diff --git a/eng/pipelines/templates/jobs/ci.yml b/eng/pipelines/templates/jobs/ci.yml
index 8885f2cac8380..ca31f25af582e 100644
--- a/eng/pipelines/templates/jobs/ci.yml
+++ b/eng/pipelines/templates/jobs/ci.yml
@@ -36,7 +36,9 @@ parameters:
- name: MatrixReplace
type: object
default: []
-
+- name: TestDependsOnDependency
+ type: string
+ default: not-specified
jobs:
- job: Build
pool:
@@ -226,18 +228,48 @@ jobs:
parameters:
BaselineFilePath: $(Build.sourcesdirectory)/eng/dotnet.gdnbaselines
ServiceDirectory: ${{ parameters.ServiceDirectory }}
-
- template: /eng/common/pipelines/templates/jobs/archetype-sdk-tests-generate.yml
parameters:
+ GenerateJobName: generate_target_service_test_matrix
JobTemplatePath: /eng/pipelines/templates/jobs/ci.tests.yml
MatrixConfigs: ${{ parameters.MatrixConfigs }}
MatrixFilters: ${{ parameters.MatrixFilters }}
MatrixReplace: ${{ parameters.MatrixReplace }}
CloudConfig:
- Cloud: Public
+ Cloud: public
AdditionalParameters:
SDKType: ${{ parameters.SDKType }}
- ServiceToTest: ${{ coalesce(parameters.ServiceToTest, parameters.ServiceDirectory) }}
ServiceDirectory: ${{ parameters.ServiceDirectory }}
TestSetupSteps: ${{ parameters.TestSetupSteps }}
- TestTimeoutInMinutes: ${{ parameters.TestTimeoutInMinutes }}
+ TestTimeoutInMinutes: ${{ parameters.TestTimeoutInMinutes }}
+ - ${{ if ne(parameters.TestDependsOnDependency, 'not-specified') }}:
+ - template: /eng/common/pipelines/templates/jobs/archetype-sdk-tests-generate.yml
+ parameters:
+ GenerateJobName: generate_target_dependencies_test_matrix
+ JobTemplatePath: /eng/pipelines/templates/jobs/ci.tests.yml
+ MatrixConfigs: ${{ parameters.MatrixConfigs }}
+ MatrixFilters: ${{ parameters.MatrixFilters }}
+ MatrixReplace: ${{ parameters.MatrixReplace }}
+ CloudConfig:
+ Cloud: public
+ SparseCheckoutPaths:
+ - "/*"
+ - "!/sdk/*/**/SessionRecords"
+ PreGenerationSteps:
+ - ${{ each config in parameters.MatrixConfigs }}:
+ - template: /eng/pipelines/templates/steps/dependency.tests.yml
+ parameters:
+ TestDependsOnDependency: ${{ parameters.TestDependsOnDependency }}
+ # The value for ProjectListOverrideFilePropertyName should be the same as AdditionalParameters ProjectListOverrideFilePropertyName below
+ ProjectListOverrideFilePropertyName: 'ProjectListOverrideFile'
+ ProjectFilesOutputFolder: $(Build.ArtifactStagingDirectory)
+ ExcludeTargetTestProjects: true
+ ServiceDirectory: ${{ parameters.ServiceDirectory }}
+ MatrixConfigsFile: ${{ config.Path }}
+ AdditionalParameters:
+ SDKType: ${{ parameters.SDKType }}
+ ServiceDirectory: ${{ parameters.ServiceDirectory }}
+ TestSetupSteps: ${{ parameters.TestSetupSteps }}
+ TestTimeoutInMinutes: ${{ parameters.TestTimeoutInMinutes }}
+ # The value for ProjectListOverrideFilePropertyName should be the same as dependency.tests.yml parameter ProjectListOverrideFilePropertyName
+ ProjectListOverrideFilePropertyName: 'ProjectListOverrideFile'
diff --git a/eng/pipelines/templates/stages/archetype-sdk-client.yml b/eng/pipelines/templates/stages/archetype-sdk-client.yml
index 91361b04f352a..12bac8a82edd3 100644
--- a/eng/pipelines/templates/stages/archetype-sdk-client.yml
+++ b/eng/pipelines/templates/stages/archetype-sdk-client.yml
@@ -55,6 +55,9 @@ parameters:
- name: MatrixReplace
type: object
default: []
+- name: TestDependsOnDependency
+ type: string
+ default: not-specified
variables:
- template: ../variables/globals.yml
@@ -85,6 +88,7 @@ stages:
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
- BuildConfiguration=Debug/Release
- ${{ parameters.MatrixReplace }}
+ TestDependsOnDependency: ${{ parameters.TestDependsOnDependency }}
# The Prerelease and Release stages are conditioned on whether we are building a pull request and the branch.
- ${{if and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.TeamProject'], 'internal'))}}:
diff --git a/eng/pipelines/templates/steps/dependency.tests.yml b/eng/pipelines/templates/steps/dependency.tests.yml
new file mode 100644
index 0000000000000..1ddc18f3f4444
--- /dev/null
+++ b/eng/pipelines/templates/steps/dependency.tests.yml
@@ -0,0 +1,56 @@
+parameters:
+- name: ProjectFilesOutputFolder
+ type: string
+ default: "$(Build.ArtifactStagingDirectory)"
+- name: NumOfTestProjectsPerJob
+ type: number
+ default: 20
+- name: OutputProjectFilePath
+ type: string
+ default: "$(System.DefaultWorkingDirectory)/projects.txt"
+- name: TestDependsOnDependency
+ type: string
+ default: "not-specific"
+- name: ProjectListOverrideFilePropertyName
+ type: string
+ default: ''
+- name: MatrixConfigsFile
+ type: string
+ default: './eng/pipelines/templates/stages/platform-matrix.json'
+- name: ExcludeTargetTestProjects
+ type: boolean
+ default: false
+- name: ServiceDirectory
+ type: string
+ default: 'not-specific'
+steps:
+ - template: /eng/pipelines/templates/steps/install-dotnet.yml
+ - pwsh: |
+ dotnet build /t:ProjectDependsOn ./eng/service.proj `
+ /p:TestDependsOnDependency="${{parameters.TestDependsOnDependency}}" `
+ /p:IncludeSrc=false /p:IncludeStress=false /p:IncludeSamples=false `
+ /p:IncludePerf=false /p:RunApiCompat=false `
+ /p:InheritDocEnabled=false /p:BuildProjectReferences=false `
+ /p:OutputProjectFilePath="${{parameters.OutputProjectFilePath}}"
+ displayName: Find all test dependencies
+
+ - task: PowerShell@2
+ inputs:
+ targetType: filePath
+ filePath: eng/scripts/splittestdependencies/Generate-Dependency-Test-References.ps1
+ arguments: >-
+ -ProjectListFilePath ${{ parameters.OutputProjectFilePath }}
+ -ProjectFilesOutputFolder ${{ parameters.ProjectFilesOutputFolder }}
+ -NumOfTestProjectsPerJob ${{ parameters.NumOfTestProjectsPerJob }}
+ -MatrixConfigsFile ${{parameters.MatrixConfigsFile}}
+ -ProjectFileConfigName ${{parameters.ProjectListOverrideFilePropertyName}}
+ -ExcludeTargetTestProjects: $${{parameters.ExcludeTargetTestProjects}}
+ -ServiceDirectoryToExclude ${{parameters.ServiceDirectory}}
+ ignoreLASTEXITCODE: true
+ pwsh: true
+ displayName: Split testing packages into different files
+
+ - task: PublishBuildArtifacts@1
+ inputs:
+ pathToPublish: $(Build.ArtifactStagingDirectory)
+ artifactName: DependencyTestProjectReferences
diff --git a/eng/scripts/splittestdependencies/Generate-Dependency-Test-References.ps1 b/eng/scripts/splittestdependencies/Generate-Dependency-Test-References.ps1
new file mode 100644
index 0000000000000..6cdd470a19c00
--- /dev/null
+++ b/eng/scripts/splittestdependencies/Generate-Dependency-Test-References.ps1
@@ -0,0 +1,73 @@
+<#
+.SYNOPSIS
+Split the test dependencies into different project files.
+
+.DESCRIPTION
+.NET pipelines will run centain number of test dependencies in each entry of job matrix.
+The Script is to split all test dependencies into difference sets for later use.
+The script is able to test locally using Pester. Please run tests as following every time you made changes to the script:
+
+```
+Invoke-Pester -Output Detailed $PSScriptRoot\tests\Generate-Dependency-Test-References-Tests.ps1
+```
+
+.PARAMETER ProjectListFilePath
+The file path contains all test dependencies. E.g. The file generated by 'eng/service.proj' in dependecny.tests.yml `Find all test dependencies` step
+
+.PARAMETER ProjectFilesOutputFolder
+The folder for all test dependency split files e.g. `Project_1.props` which are ready to publish. E.g. $(Build.ArtifactStagingDirectory)
+
+.PARAMETER NumOfTestProjectsPerJob
+The number of test run on each job.
+
+.PARAMETER MatrixConfigsFile
+The file path of the matrix job configuration. E.g. "/eng/pipelines/templates/stages/platform-matrix.json"
+
+.PARAMETER ProjectFileConfigName
+The config name of the project file name. Hardcoded in "\eng\pipelines\templates\jobs\ci.yml" `PreGenerationSteps` for matix generation. E.g. 'ProjectListOverrideFile'
+
+.PARAMETER ExcludeTargetTestProjects
+The flag to indicate whether exclude target test package or not.
+
+.PARAMETER ServiceDirectoryToExclude
+The service directory which needs to exclude. E.g. "core"
+
+.EXAMPLE
+Run script with default parameters.
+
+Generate-Dependency-Test-References.ps1 -ProjectFilesOutputFolder "$(Build.ArtifactStagingDirectory)/projects" -ProjectListFilePath "eng/projects.txt" `
+-MatrixConfigsFile "eng/pipelines/templates/stages/platform-matrix.json" -ProjectFileConfigName "ProjectListOverrideFile" -ExcludeTargetTestProjects $true `
+-ServiceDirectoryToExclude "core"
+
+#>
+Param (
+ [ValidateNotNullOrEmpty()]
+ [string] $ProjectListFilePath,
+ [string] $ProjectFilesOutputFolder="./",
+ [int] $NumOfTestProjectsPerJob = 20,
+ [ValidateNotNullOrEmpty()]
+ [string] $MatrixConfigsFile,
+ [ValidateNotNullOrEmpty()]
+ [string] $ProjectFileConfigName,
+ [boolean] $ExcludeTargetTestProjects=$false,
+ [string] $ServiceDirectoryToExclude
+)
+
+. (Join-Path $PSScriptRoot generate-dependency-functions.ps1)
+Set-StrictMode -Version 3
+
+$projGroups = Split-Project-File-To-Groups `
+ -ProjectFile $ProjectListFilePath `
+ -NumberOfTestsPerJob $NumOfTestProjectsPerJob `
+ -ExcludeService $ExcludeTargetTestProjects `
+ -ServiceDirToExclude $ServiceDirectoryToExclude
+
+$projFiles = Write-Test-Dependency-Group-To-Files `
+ -ProjectGroups $projGroups `
+ -MatrixOutputFolder $ProjectFilesOutputFolder
+
+Write-Project-Files-To-Matrix `
+ -ProjectFiles $projFiles `
+ -MatrixJsonPath $MatrixConfigsFile `
+ -MatrixOutputFolder $ProjectFilesOutputFolder `
+ -ProjectFileConfigName $ProjectFileConfigName
\ No newline at end of file
diff --git a/eng/scripts/splittestdependencies/README.md b/eng/scripts/splittestdependencies/README.md
new file mode 100644
index 0000000000000..153f6c7e7a109
--- /dev/null
+++ b/eng/scripts/splittestdependencies/README.md
@@ -0,0 +1,43 @@
+# Test dependency Splitting Strategy
+## Problems
+Today, most of the Azure SDKs implemented in our repo have a dependency on the core library. In order to guarantee the changes on core do not break the SDKs depend on it, our core PR validation pipeline currently runs all tests under `sdk` folder. As the onboarding packages keep growing, the test steps of pipeline usually take nearly an hour to finish. To achieve the purpose of speeding up the PR validation, we decided to move on to the test splitting task.
+
+## Existing workflow
+Before we run the tests, we have a step to determine the testing matrix (OS image, pool, .NET framework etc.). For each of the testing environment, we check which is the service triggers the pipeline. If it is service other that core, then we run the tests under the service only. If it is core library, then we will run all tests under `sdk` folder. There are more than 400 packages in total as of today, so even we execute them in parallel, it still takes long while to get them done.
+
+## New workflow
+In order to speed up the pipeline, we have to answer two questions here:
+
+1. Is it necessary to run all tests under `sdk`? Can we fetch the tests which have a dependency on core?
+1. Can we split the tests depend on core into different test jobs?
+
+To optimize the existing process, we first use the `MSBuild` to find all test `.csproj` files depend on target service. Then, we split these test projects (exclude the target service) into certain number of chunks (according to the input of how many tests we expect to run on each test job) and write them into separate project files. We will dynamically write the project files back as a new property to the matrix json which will use to determine the test job settings later on. By having the mutate matrix json, the test steps can execute their tests on small number of tests defined in project files respectively. We also have another set of test jobs which run the target service tests only. Though we double the size of test matrix, it saves nearly 80% of the time we spend on test jobs.
+
+Here is the workflow for better understanding:
+![Workflow](assets/test-split-workflow.png)
+
+## Enable/Disable the split work
+We currently have this support in public PR validation pipeline and internal release pipeline.
+We have enabled the core pipeline.
+
+To enable the split on your service, you can add the line below in `ci.yml` under service folder. E.g. [ci.yml](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/ci.yml)
+```
+TestDependsOnDependency: ${service-name}
+```
+To disable, just remove the above line, and the corresponding pipeline will run the tests on target service only.
+
+## Performance
+Here is the comparison:
+| | Old | New |
+| --- | --- | --- |
+| Num of tests on each job | ~400 | ~20 |
+| Time spent on core | ~ 1 hour as maximum | ~ 13 min as maximum |
+
+## Downside of the feature
+
+1. The job matrix is determined once generate-job-matrix is done. Rerun any failed step will still run on the same testing environment (OSImage, Pool, Test framework, Test dependency project etc).
+This is by design. So if a new project is added/deleted, we are not able to pick up the latest test projects in the same build. The case is rare, so it should not be a concern for our current usage.
+
+## Future work
+1. Onboard to live test pipeline
+1. Leverage the work on other time consuming job.
\ No newline at end of file
diff --git a/eng/scripts/splittestdependencies/assets/test-split-workflow.png b/eng/scripts/splittestdependencies/assets/test-split-workflow.png
new file mode 100644
index 0000000000000..7e681617b23eb
Binary files /dev/null and b/eng/scripts/splittestdependencies/assets/test-split-workflow.png differ
diff --git a/eng/scripts/splittestdependencies/generate-dependency-functions.ps1 b/eng/scripts/splittestdependencies/generate-dependency-functions.ps1
new file mode 100644
index 0000000000000..74594f7bb78c7
--- /dev/null
+++ b/eng/scripts/splittestdependencies/generate-dependency-functions.ps1
@@ -0,0 +1,86 @@
+# Take the input of the project list file. Read all files out and split them into groups, and return the group array.
+# Give the option of whether exclude the target service project files or not.
+
+function Split-Project-File-To-Groups($ProjectFile, $NumberOfTestsPerJob, $ExcludeService, $ServiceDirToExclude) {
+ $projects = Get-Content $ProjectFile
+ if ($ExcludeService) {
+ $projects = $projects.Where({ $_ -notmatch "sdk[\\/]+${ServiceDirToExclude}[\\/]+" })
+ }
+ if (!$projects) {
+ throw "The project file is empty. Please check the input file: $ProjectFile"
+ }
+ $numOfGroups = [Math]::Ceiling([decimal]($projects.Count / $NumberOfTestsPerJob ))
+ $projGroup = [System.Object[]]::New($numOfGroups)
+ $i = 0
+ while ($i -lt $projects.Count) {
+ $groupNum = [Math]::Floor([decimal]($i / $NumberOfTestsPerJob ))
+ if(!$projGroup[$groupNum]) {
+ $projGroup[$groupNum] = [System.Collections.ArrayList]::new()
+ }
+ $projGroup[$groupNum].Add($projects[$i]) > $null
+ $i += 1
+ }
+ return ,$projGroup
+}
+
+
+# Take the group contains the project list. Write each group into a project file which can be used by dotnet test command.
+# Return the array of project files
+function Write-Test-Dependency-Group-To-Files($ProjectGroups, $MatrixOutputFolder) {
+ if (!$ProjectGroups -or !$ProjectGroups[0]) {
+ Throw "There should be some project files in the group. Please check the given project list."
+ }
+ $null = New-Item -Path $MatrixOutputFolder -ItemType "directory" -Force
+ $numOfGroups = $ProjectGroups.Count
+ $allOutputFiles = @()
+ for ($i = 0; $i -lt $numOfGroups; $i++) {
+ $projectFilePath = "Project_$i.props"
+ $null = New-Item -Path "$MatrixOutputFolder/$projectFilePath" -ItemType "file" -Force
+ # Retain the structure without ProjectReference.
+ $templateXml=[xml]''
+ $projectNode = $templateXml.SelectNodes("/Project")
+ $itemGroupNode=$templateXml.CreateNode("element", "ItemGroup", "")
+ $projectNode.AppendChild($itemGroupNode) > $null
+ foreach($pkg in $ProjectGroups[$i]) {
+ $newElem = $templateXml.CreateNode("element", "ProjectReference", "")
+ $newElemAttr = $templateXml.CreateAttribute("Include")
+ $newElemAttr.InnerText = $pkg
+ $newElem.Attributes.Append($newElemAttr) > $null
+ $itemGroupNode.AppendChild($newElem) > $null
+ }
+ $null = $templateXml.Save("$MatrixOutputFolder/$projectFilePath")
+ $allOutputFiles += $projectFilePath
+ }
+ return ,$allOutputFiles
+}
+
+# Add new property in the platform-matrix json and assign the values of the project file paths.
+function Write-Project-Files-To-Matrix($ProjectFiles, $MatrixJsonPath, $MatrixOutputFolder, $ProjectFileConfigName) {
+ if (!(Test-Path $MatrixOutputFolder)) {
+ New-Item -Path $MatrixOutputFolder -ItemType "directory" -Force > $null
+ }
+ $platformJson = Get-Content $MatrixJsonPath | ConvertFrom-Json
+ $overrideFiles = New-Object PSObject
+ foreach ($projectFile in $ProjectFiles) {
+ $n = $projectFile -replace "Project_(\d+).props", '$1'
+ $PropertyOverride = New-Object -Typename PSCustomObject -Property @{
+ $($ProjectFileConfigName) = $ProjectFile
+ }
+ $overrideFiles | Add-Member -Name "DependencyGroup$n" -value $PropertyOverride -MemberType NoteProperty
+ }
+ # Add one project files into the "include" session for short-term solution.
+ foreach ($include in $platformJson.include) {
+ if (!$overrideFiles) {
+ Throw "Need at least one project file for include property. Please adjust the NumberOfTestsPerJob for better split."
+ }
+ $lastElem = $overrideFiles.PSObject.Properties | Select-Object -Last 1
+ $overrideFiles.PSObject.properties.remove($lastElem.Name)
+ $include | Add-Member -Name "OverrideFiles" -value $lastElem.Value -MemberType NoteProperty
+ }
+ if (!$($overrideFiles.PSObject.properties)) {
+ Throw "Need at least one project file for test matrix. Please adjust the NumberOfTestsPerJob for better split."
+ }
+ $platformJson.matrix | Add-Member -Name "OverrideFiles" -value $overrideFiles -MemberType NoteProperty
+ $platformJson | ConvertTo-Json -Depth 100 | Out-File $MatrixJsonPath
+ Copy-Item $MatrixJsonPath -Destination $MatrixOutputFolder
+}
\ No newline at end of file
diff --git a/eng/scripts/splittestdependencies/tests/Generate-Dependency-Test-References-Tests.ps1 b/eng/scripts/splittestdependencies/tests/Generate-Dependency-Test-References-Tests.ps1
new file mode 100644
index 0000000000000..c93e3d85076cd
--- /dev/null
+++ b/eng/scripts/splittestdependencies/tests/Generate-Dependency-Test-References-Tests.ps1
@@ -0,0 +1,122 @@
+<#
+```
+Invoke-Pester -Output Detailed $PSScriptRoot\tests\Generate-Dependency-Test-References-Tests.ps1
+```
+#>
+
+Import-Module Pester
+
+BeforeAll {
+ . $PSScriptRoot/../generate-dependency-functions.ps1
+ function Backup-File($targetPath, $backupFolder) {
+ $fileName = (Split-Path $targetPath -leaf)
+ $backupFile = "$backupFolder/temp-$fileName"
+ $null = New-Item $backupFile -ItemType "file" -Force
+ $null = Copy-Item $targetPath -Destination $backupFile
+ }
+ function Reset-File($targetPath, $backupFolder) {
+ $fileName = (Split-Path $targetPath -leaf)
+ $null = Copy-Item "$backupFolder/temp-$fileName" -Destination $targetPath
+ }
+}
+
+AfterAll {
+ Remove-Item "$PSScriptRoot/testFolder*" -Recurse
+}
+# Test plan:
+# 1. Tests on Split-Project-File-To-Groups. Expect the right num of groups.
+# 2. Tests on Write-Test-Dependency-Group-To-Files. Expect the right xml of the output, right number of output files.
+# 3. Tests on Write-Project-Files-To-Matrix. Expect the right property addition on both include and matrix
+# 4. Integration test on calling the entire script. Expect on right property on platform-matrix.json
+Describe "Split-Project-File-To-Groups" -Tag "UnitTest" {
+ # Passed cases
+ It "Split project list into groups" -TestCases @(
+ @{ projectFile = "$PSScriptRoot/inputs/projects.txt"; excludeTargetService=$true ; NumOfTestProjectsPerJob = 20; length = 9 }
+ @{ projectFile = "$PSScriptRoot/inputs/projects.txt"; excludeTargetService=$false ; NumOfTestProjectsPerJob = 20; length = 10 }
+ @{ projectFile = "$PSScriptRoot/inputs/projects.txt"; excludeTargetService=$true ; NumOfTestProjectsPerJob = 180; length = 1 }
+ @{ projectFile = "$PSScriptRoot/inputs/projects.txt"; excludeTargetService=$true ; NumOfTestProjectsPerJob = 178; length = 1 }
+ ) {
+ $projGroups = Split-Project-File-To-Groups -ProjectFile $projectFile -NumberOfTestsPerJob $NumOfTestProjectsPerJob `
+ -ExcludeService $excludeTargetService -ServiceDirToExclude "core"
+ $projGroups.Length | Should -Be $length
+ }
+ # Failed cases
+ It "Zero test projects per job" -TestCases @(
+ @{ projectFile = "$PSScriptRoot/inputs/projects.txt"; NumOfTestProjectsPerJob = 0}
+ @{ projectFile = "$PSScriptRoot/inputs/empty_projects.txt"}
+ ) {
+ {Split-Project-File-To-Groups -ProjectFile $projectFile -NumberOfTestsPerJob $NumOfTestProjectsPerJob `
+ -ExcludeService $true -ServiceDirToExclude "core"} | Should -Throw -ExceptionType ([System.Management.Automation.RuntimeException])
+ }
+}
+
+Describe "Write-Test-Dependency-Group-To-Files" -Tag "UnitTest" {
+ # passed cases
+ It "Split project group array to prop xml files " -TestCases @(
+ @{ projGroupArray = @(@("1", "2"), @("3", "4")); length = 2; expectOutput = @("$PSScriptRoot/expectOutputs/1-1.xml", "$PSScriptRoot/expectOutputs/1-2.xml")}
+ @{ projGroupArray = ,@("1", "2"); length = 1; expectOutput = @("$PSScriptRoot/expectOutputs/2-1.xml")}
+ ) {
+ $outputFiles = Write-Test-Dependency-Group-To-Files -ProjectGroups $projGroupArray -MatrixOutputFolder "$PSScriptRoot/testFolder"
+ $outputFiles.Length | Should -Be $length
+ for ($i = 0; $i -lt $length; $i++) {
+ Get-Content "$PSScriptRoot\testFolder\$($outputFiles[$i])" | Should -Be (Get-Content $expectOutput[$i])
+ }
+ }
+ # Failed cases
+ It "Empty project array" -TestCases @(
+ @{ projGroupArray = ,@(); }
+ @{ projGroupArray = @(); }
+ ) {
+ { Write-Test-Dependency-Group-To-Files -ProjectGroups $projGroupArray -MatrixOutputFolder "$PSScriptRoot/testFolder" }
+ | Should -Throw -ExceptionType ([System.Management.Automation.RuntimeException])
+ }
+}
+
+Describe "Write-Project-Files-To-Matrix" -Tag "UnitTest" {
+ # Passed cases
+ It "Write project files into matrix property" -TestCases @(
+ @{ TestFolderName = "$PSScriptRoot/testFolder1"; ProjectFiles = "1.txt", "2.txt"; MatrixJsonPath = "$PSScriptRoot/inputs/platform-matrix1.json"; expectOutput="$PSScriptRoot/expectOutputs/expect-matrix1.json" }
+ @{ TestFolderName = "$PSScriptRoot/testFolder2"; ProjectFiles = "1.txt", "2.txt", "3.txt"; MatrixJsonPath = "$PSScriptRoot/inputs/platform-matrix1.json"; expectOutput="$PSScriptRoot/expectOutputs/expect-matrix2.json" }
+ ) {
+ Backup-File -targetPath $MatrixJsonPath -backupFolder $TestFolderName
+ Write-Project-Files-To-Matrix -ProjectFiles $ProjectFiles -MatrixJsonPath $MatrixJsonPath -MatrixOutputFolder $TestFolderName -ProjectFileConfigName "OverrideFiles"
+ Get-Content "$TestFolderName\platform-matrix1.json" | Should -Be (Get-Content $expectOutput)
+ Reset-File -targetPath $MatrixJsonPath -backupFolder $TestFolderName
+ }
+ # Failed cases
+ It "More include agents than project files" -TestCases @(
+ @{ MatrixJsonPath = "$PSScriptRoot/inputs/platform_2_include_agents.json"; ProjectFiles = "1.txt", "2.txt"; }
+ @{ MatrixJsonPath = "$PSScriptRoot/inputs/platform_2_include_agents.json"; ProjectFiles = "1.txt"; }
+ ) {
+ { Write-Project-Files-To-Matrix -ProjectFiles $ProjectFiles -MatrixJsonPath $MatrixJsonPath -MatrixOutputFolder "$PSScriptRoot/testFolder3" -ProjectFileConfigName "OverrideFiles"}
+ | Should -Throw -ExceptionType ([System.Management.Automation.RuntimeException])
+ }
+}
+
+Describe "Generate-Dependency-Test-References" -Tag "IntegrationTest" {
+ # Passed cases
+ It "Populate the project file properties into matrix json" -TestCases @(
+ @{ projectFile = "$PSScriptRoot/inputs/projects.txt"; TestFolderName = "$PSScriptRoot/testFolder4"; MatrixInputJsonFile = "$PSScriptRoot/inputs/sync-platform-matrix.json"; NumOfTestProjectsPerJob = 20; ExpectMatrixPropertyLength = 8}
+ @{ projectFile = "$PSScriptRoot/inputs/projects.txt"; TestFolderName = "$PSScriptRoot/testFolder5"; MatrixInputJsonFile = "$PSScriptRoot/inputs/sync-platform-matrix.json"; NumOfTestProjectsPerJob = 89; ExpectMatrixPropertyLength = 1}
+ ) {
+ Backup-File -targetPath $MatrixInputJsonFile -backupFolder $TestFolderName
+ & "$PSScriptRoot/../Generate-Dependency-Test-References.ps1" -ProjectListFilePath $projectFile -NumOfTestProjectsPerJob $NumOfTestProjectsPerJob `
+ -ExcludeTargetTestProjects $true -ServiceDirectoryToExclude "core" -ProjectFilesOutputFolder $TestFolderName `
+ -MatrixConfigsFile $MatrixInputJsonFile -ProjectFileConfigName "ProjectListOverrideFile"
+ $outputFileJson = Get-Content "$TestFolderName/sync-platform-matrix.json" | ConvertFrom-Json
+ ($outputFileJson.matrix.OverrideFiles.PSObject.Properties | Measure-Object).Count | Should -Be $ExpectMatrixPropertyLength
+ ($outputFileJson.include.OverrideFiles.PSObject.Properties | Measure-Object).Count | Should -Be 1
+ Reset-File -targetPath $MatrixInputJsonFile -backupFolder $TestFolderName
+ }
+ # Failed cases
+ It "Validate on invalid parameters" -TestCases @(
+ @{ projectFile = "$PSScriptRoot/projects.txt"; MatrixInputJsonFile = "$PSScriptRoot/inputs/sync-platform-matrix.json"; projectFileConfigName = ""}
+ @{ projectFile = ""; MatrixInputJsonFile = "$PSScriptRoot/inputs/sync-platform-matrix.json"; projectFileConfigName = "test"}
+ @{ projectFile = "$PSScriptRoot/projects.txt"; MatrixInputJsonFile = ""; projectFileConfigName = "test"}
+ ) {
+ { & "$PSScriptRoot/../Generate-Dependency-Test-References.ps1" -ProjectListFilePath $projectFile -NumOfTestProjectsPerJob 20 `
+ -ExcludeTargetTestProjects $true -ServiceDirectoryToExclude "core" -ProjectFilesOutputFolder "$PSScriptRoot/testFolder4" `
+ -MatrixConfigsFile $MatrixInputJsonFile -ProjectFileConfigName $projectFileConfigName }
+ | Should -Throw -ExceptionType ([System.Management.Automation.RuntimeException])
+ }
+}
\ No newline at end of file
diff --git a/eng/scripts/splittestdependencies/tests/expectOutputs/1-1.xml b/eng/scripts/splittestdependencies/tests/expectOutputs/1-1.xml
new file mode 100644
index 0000000000000..a51f3dd66ead7
--- /dev/null
+++ b/eng/scripts/splittestdependencies/tests/expectOutputs/1-1.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/eng/scripts/splittestdependencies/tests/expectOutputs/1-2.xml b/eng/scripts/splittestdependencies/tests/expectOutputs/1-2.xml
new file mode 100644
index 0000000000000..151bc19be755d
--- /dev/null
+++ b/eng/scripts/splittestdependencies/tests/expectOutputs/1-2.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/eng/scripts/splittestdependencies/tests/expectOutputs/2-1.xml b/eng/scripts/splittestdependencies/tests/expectOutputs/2-1.xml
new file mode 100644
index 0000000000000..a51f3dd66ead7
--- /dev/null
+++ b/eng/scripts/splittestdependencies/tests/expectOutputs/2-1.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/eng/scripts/splittestdependencies/tests/expectOutputs/expect-matrix-integration.json b/eng/scripts/splittestdependencies/tests/expectOutputs/expect-matrix-integration.json
new file mode 100644
index 0000000000000..2852973c7f952
--- /dev/null
+++ b/eng/scripts/splittestdependencies/tests/expectOutputs/expect-matrix-integration.json
@@ -0,0 +1,95 @@
+{
+ "displayNames": {
+ "/p:UseProjectReferenceToAzureClients=false": "PackageRef",
+ "/p:UseProjectReferenceToAzureClients=true": "ProjectRef"
+ },
+ "matrix": {
+ "Agent": {
+ "Ubuntu-20.04_NETCore3.1": {
+ "OSVmImage": "MMSUbuntu20.04",
+ "Pool": "azsdk-pool-mms-ubuntu-2004-general",
+ "TestTargetFramework": "netcoreapp3.1"
+ },
+ "Ubuntu-20.04_NET6.0": {
+ "OSVmImage": "MMSUbuntu20.04",
+ "Pool": "azsdk-pool-mms-ubuntu-2004-general",
+ "TestTargetFramework": "net6.0"
+ },
+ "Windows2019_NET6.0": {
+ "OSVmImage": "MMS2019",
+ "Pool": "azsdk-pool-mms-win-2019-general",
+ "TestTargetFramework": "net6.0"
+ },
+ "Windows2019_NET461": {
+ "OSVmImage": "MMS2019",
+ "Pool": "azsdk-pool-mms-win-2019-general",
+ "TestTargetFramework": "net461"
+ },
+ "macos-11_NETCore3.1": {
+ "OSVmImage": "macos-11",
+ "Pool": "Azure Pipelines",
+ "TestTargetFramework": "netcoreapp3.1"
+ },
+ "macos-11_NET6.0": {
+ "OSVmImage": "macos-11",
+ "Pool": "Azure Pipelines",
+ "TestTargetFramework": "net6.0"
+ }
+ },
+ "AdditionalTestArguments": [
+ "/p:UseProjectReferenceToAzureClients=false",
+ "/p:UseProjectReferenceToAzureClients=true"
+ ],
+ "BuildConfiguration": [
+ "Debug",
+ "Release"
+ ],
+ "OverrideFiles": {
+ "DependencyGroup1": {
+ "ProjectListOverrideFile": "Project_1.props"
+ },
+ "DependencyGroup2": {
+ "ProjectListOverrideFile": "Project_2.props"
+ },
+ "DependencyGroup3": {
+ "ProjectListOverrideFile": "Project_3.props"
+ },
+ "DependencyGroup4": {
+ "ProjectListOverrideFile": "Project_4.props"
+ },
+ "DependencyGroup5": {
+ "ProjectListOverrideFile": "Project_5.props"
+ },
+ "DependencyGroup6": {
+ "ProjectListOverrideFile": "Project_6.props"
+ },
+ "DependencyGroup7": {
+ "ProjectListOverrideFile": "Project_7.props"
+ },
+ "DependencyGroup8": {
+ "ProjectListOverrideFile": "Project_8.props"
+ }
+ }
+ },
+ "include": [
+ {
+ "Agent": {
+ "Windows2019": {
+ "OSVmImage": "MMS2019",
+ "Pool": "azsdk-pool-mms-win-2019-general",
+ "TestTargetFramework": "netcoreapp3.1"
+ }
+ },
+ "TestMode": {
+ "netcoreapp31_Coverage_Record": {
+ "SupportsRecording": true,
+ "CollectCoverage": true
+ }
+ },
+ "OverrideFiles": {
+ "ProjectListOverrideFile": "Project_0.props"
+ }
+ }
+ ]
+}
+
\ No newline at end of file
diff --git a/eng/scripts/splittestdependencies/tests/expectOutputs/expect-matrix1.json b/eng/scripts/splittestdependencies/tests/expectOutputs/expect-matrix1.json
new file mode 100644
index 0000000000000..007dc24402fee
--- /dev/null
+++ b/eng/scripts/splittestdependencies/tests/expectOutputs/expect-matrix1.json
@@ -0,0 +1,48 @@
+{
+ "displayNames": {
+ "/p:UseProjectReferenceToAzureClients=false": "PackageRef",
+ "/p:UseProjectReferenceToAzureClients=true": "ProjectRef"
+ },
+ "matrix": {
+ "Agent": {
+ "Ubuntu-20.04_NETCore3.1": {
+ "OSVmImage": "MMSUbuntu20.04",
+ "Pool": "azsdk-pool-mms-ubuntu-2004-general",
+ "TestTargetFramework": "netcoreapp3.1"
+ }
+ },
+ "AdditionalTestArguments": [
+ "/p:UseProjectReferenceToAzureClients=false",
+ "/p:UseProjectReferenceToAzureClients=true"
+ ],
+ "BuildConfiguration": [
+ "Debug",
+ "Release"
+ ],
+ "OverrideFiles": {
+ "DependencyGroup1.txt": {
+ "OverrideFiles": "1.txt"
+ }
+ }
+ },
+ "include": [
+ {
+ "Agent": {
+ "Windows2019": {
+ "OSVmImage": "MMS2019",
+ "Pool": "azsdk-pool-mms-win-2019-general",
+ "TestTargetFramework": "netcoreapp3.1"
+ }
+ },
+ "TestMode": {
+ "netcoreapp31_Coverage_Record": {
+ "SupportsRecording": true,
+ "CollectCoverage": true
+ }
+ },
+ "OverrideFiles": {
+ "OverrideFiles": "2.txt"
+ }
+ }
+ ]
+}
diff --git a/eng/scripts/splittestdependencies/tests/expectOutputs/expect-matrix2.json b/eng/scripts/splittestdependencies/tests/expectOutputs/expect-matrix2.json
new file mode 100644
index 0000000000000..f2ff2f6b7cc1d
--- /dev/null
+++ b/eng/scripts/splittestdependencies/tests/expectOutputs/expect-matrix2.json
@@ -0,0 +1,51 @@
+{
+ "displayNames": {
+ "/p:UseProjectReferenceToAzureClients=false": "PackageRef",
+ "/p:UseProjectReferenceToAzureClients=true": "ProjectRef"
+ },
+ "matrix": {
+ "Agent": {
+ "Ubuntu-20.04_NETCore3.1": {
+ "OSVmImage": "MMSUbuntu20.04",
+ "Pool": "azsdk-pool-mms-ubuntu-2004-general",
+ "TestTargetFramework": "netcoreapp3.1"
+ }
+ },
+ "AdditionalTestArguments": [
+ "/p:UseProjectReferenceToAzureClients=false",
+ "/p:UseProjectReferenceToAzureClients=true"
+ ],
+ "BuildConfiguration": [
+ "Debug",
+ "Release"
+ ],
+ "OverrideFiles": {
+ "DependencyGroup1.txt": {
+ "OverrideFiles": "1.txt"
+ },
+ "DependencyGroup2.txt": {
+ "OverrideFiles": "2.txt"
+ }
+ }
+ },
+ "include": [
+ {
+ "Agent": {
+ "Windows2019": {
+ "OSVmImage": "MMS2019",
+ "Pool": "azsdk-pool-mms-win-2019-general",
+ "TestTargetFramework": "netcoreapp3.1"
+ }
+ },
+ "TestMode": {
+ "netcoreapp31_Coverage_Record": {
+ "SupportsRecording": true,
+ "CollectCoverage": true
+ }
+ },
+ "OverrideFiles": {
+ "OverrideFiles": "3.txt"
+ }
+ }
+ ]
+}
diff --git a/eng/scripts/splittestdependencies/tests/inputs/empty_projects.txt b/eng/scripts/splittestdependencies/tests/inputs/empty_projects.txt
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/eng/scripts/splittestdependencies/tests/inputs/platform-matrix1.json b/eng/scripts/splittestdependencies/tests/inputs/platform-matrix1.json
new file mode 100644
index 0000000000000..5231f4dc1fb7e
--- /dev/null
+++ b/eng/scripts/splittestdependencies/tests/inputs/platform-matrix1.json
@@ -0,0 +1,40 @@
+{
+ "displayNames": {
+ "/p:UseProjectReferenceToAzureClients=false": "PackageRef",
+ "/p:UseProjectReferenceToAzureClients=true": "ProjectRef"
+ },
+ "matrix": {
+ "Agent": {
+ "Ubuntu-20.04_NETCore3.1": {
+ "OSVmImage": "MMSUbuntu20.04",
+ "Pool": "azsdk-pool-mms-ubuntu-2004-general",
+ "TestTargetFramework": "netcoreapp3.1"
+ }
+ },
+ "AdditionalTestArguments": [
+ "/p:UseProjectReferenceToAzureClients=false",
+ "/p:UseProjectReferenceToAzureClients=true"
+ ],
+ "BuildConfiguration": [
+ "Debug",
+ "Release"
+ ]
+ },
+ "include": [
+ {
+ "Agent": {
+ "Windows2019": {
+ "OSVmImage": "MMS2019",
+ "Pool": "azsdk-pool-mms-win-2019-general",
+ "TestTargetFramework": "netcoreapp3.1"
+ }
+ },
+ "TestMode": {
+ "netcoreapp31_Coverage_Record": {
+ "SupportsRecording": true,
+ "CollectCoverage": true
+ }
+ }
+ }
+ ]
+}
diff --git a/eng/scripts/splittestdependencies/tests/inputs/platform_2_include_agents.json b/eng/scripts/splittestdependencies/tests/inputs/platform_2_include_agents.json
new file mode 100644
index 0000000000000..56544ab54a6b0
--- /dev/null
+++ b/eng/scripts/splittestdependencies/tests/inputs/platform_2_include_agents.json
@@ -0,0 +1,55 @@
+{
+ "displayNames": {
+ "/p:UseProjectReferenceToAzureClients=false": "PackageRef",
+ "/p:UseProjectReferenceToAzureClients=true": "ProjectRef"
+ },
+ "matrix": {
+ "Agent": {
+ "Ubuntu-20.04_NETCore3.1": {
+ "OSVmImage": "MMSUbuntu20.04",
+ "Pool": "azsdk-pool-mms-ubuntu-2004-general",
+ "TestTargetFramework": "netcoreapp3.1"
+ }
+ },
+ "AdditionalTestArguments": [
+ "/p:UseProjectReferenceToAzureClients=false",
+ "/p:UseProjectReferenceToAzureClients=true"
+ ],
+ "BuildConfiguration": [
+ "Debug",
+ "Release"
+ ]
+ },
+ "include": [
+ {
+ "Agent": {
+ "Windows2019": {
+ "OSVmImage": "MMS2019",
+ "Pool": "azsdk-pool-mms-win-2019-general",
+ "TestTargetFramework": "netcoreapp3.1"
+ }
+ },
+ "TestMode": {
+ "netcoreapp31_Coverage_Record": {
+ "SupportsRecording": true,
+ "CollectCoverage": true
+ }
+ }
+ },
+ {
+ "Agent": {
+ "Ubuntu-20.04_NETCore3.1": {
+ "OSVmImage": "MMSUbuntu20.04",
+ "Pool": "azsdk-pool-mms-ubuntu-2004-general",
+ "TestTargetFramework": "netcoreapp3.1"
+ }
+ },
+ "TestMode": {
+ "netcoreapp31_Coverage_Record": {
+ "SupportsRecording": true,
+ "CollectCoverage": true
+ }
+ }
+ }
+ ]
+ }
\ No newline at end of file
diff --git a/eng/scripts/splittestdependencies/tests/inputs/projects.txt b/eng/scripts/splittestdependencies/tests/inputs/projects.txt
new file mode 100644
index 0000000000000..9d65151977413
--- /dev/null
+++ b/eng/scripts/splittestdependencies/tests/inputs/projects.txt
@@ -0,0 +1,186 @@
+$(RepoRoot)sdk\agrifood\Azure.Verticals.AgriFood.Farming\tests\Azure.Verticals.AgriFood.Farming.Tests.csproj
+$(RepoRoot)sdk\alertsmanagement\Azure.ResourceManager.AlertsManagement\tests\Azure.ResourceManager.AlertsManagement.Tests.csproj
+$(RepoRoot)sdk\anomalydetector\Azure.AI.AnomalyDetector\tests\Azure.AI.AnomalyDetector.Tests.csproj
+$(RepoRoot)sdk\apimanagement\Azure.ResourceManager.ApiManagement\tests\Azure.ResourceManager.ApiManagement.Tests.csproj
+$(RepoRoot)sdk\appconfiguration\Azure.Data.AppConfiguration\tests\Azure.Data.AppConfiguration.Tests.csproj
+$(RepoRoot)sdk\appconfiguration\Azure.Data.AppConfiguration\tests\Performance\Azure.Data.AppConfiguration.Performance.csproj
+$(RepoRoot)sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\tests\Azure.ResourceManager.AppConfiguration.Tests.csproj
+$(RepoRoot)sdk\appplatform\Azure.ResourceManager.AppPlatform\tests\Azure.ResourceManager.AppPlatform.Tests.csproj
+$(RepoRoot)sdk\arc-scvmm\Azure.ResourceManager.ArcScVmm\tests\Azure.ResourceManager.ArcScVmm.Tests.csproj
+$(RepoRoot)sdk\attestation\Azure.Security.Attestation\tests\Azure.Security.Attestation.Tests.csproj
+$(RepoRoot)sdk\authorization\Azure.ResourceManager.Authorization\tests\Azure.ResourceManager.Authorization.Tests.csproj
+$(RepoRoot)sdk\azurestackhci\Azure.ResourceManager.Hci\tests\Azure.ResourceManager.Hci.Tests.csproj
+$(RepoRoot)sdk\batch\Azure.ResourceManager.Batch\tests\Azure.ResourceManager.Batch.Tests.csproj
+$(RepoRoot)sdk\cdn\Azure.ResourceManager.Cdn\tests\Azure.ResourceManager.Cdn.Tests.csproj
+$(RepoRoot)sdk\cognitivelanguage\Azure.AI.Language.Conversations\tests\Azure.AI.Language.Conversations.Tests.csproj
+$(RepoRoot)sdk\cognitivelanguage\Azure.AI.Language.QuestionAnswering\tests\Azure.AI.Language.QuestionAnswering.Tests.csproj
+$(RepoRoot)sdk\cognitiveservices\Azure.ResourceManager.CognitiveServices\tests\Azure.ResourceManager.CognitiveServices.Tests.csproj
+$(RepoRoot)sdk\communication\Azure.Communication.CallingServer\tests\Azure.Communication.CallingServer.Tests.csproj
+$(RepoRoot)sdk\communication\Azure.Communication.Chat\tests\Azure.Communication.Chat.Tests.csproj
+$(RepoRoot)sdk\communication\Azure.Communication.Common\tests\Azure.Communication.Common.Tests.csproj
+$(RepoRoot)sdk\communication\Azure.Communication.Email\tests\Azure.Communication.Email.Tests.csproj
+$(RepoRoot)sdk\communication\Azure.Communication.Identity\tests\Azure.Communication.Identity.Tests.csproj
+$(RepoRoot)sdk\communication\Azure.Communication.MediaComposition\tests\Azure.Communication.MediaComposition.Tests.csproj
+$(RepoRoot)sdk\communication\Azure.Communication.NetworkTraversal\tests\Azure.Communication.NetworkTraversal.Tests.csproj
+$(RepoRoot)sdk\communication\Azure.Communication.PhoneNumbers\tests\Azure.Communication.PhoneNumbers.Tests.csproj
+$(RepoRoot)sdk\communication\Azure.Communication.ShortCodes\tests\Azure.Communication.ShortCodes.Tests.csproj
+$(RepoRoot)sdk\communication\Azure.Communication.Sms\tests\Azure.Communication.Sms.Tests.csproj
+$(RepoRoot)sdk\communication\Azure.ResourceManager.Communication\tests\Azure.ResourceManager.Communication.Tests.csproj
+$(RepoRoot)sdk\compute\Azure.ResourceManager.Compute\tests\Azure.ResourceManager.Compute.Tests.csproj
+$(RepoRoot)sdk\confidentialledger\Azure.ResourceManager.ConfidentialLedger\tests\Azure.ResourceManager.ConfidentialLedger.Tests.csproj
+$(RepoRoot)sdk\confidentialledger\Azure.Security.ConfidentialLedger\tests\Azure.Security.ConfidentialLedger.Tests.csproj
+$(RepoRoot)sdk\connectedvmwarevsphere\Azure.ResourceManager.ConnectedVMwarevSphere\tests\Azure.ResourceManager.ConnectedVMwarevSphere.Tests.csproj
+$(RepoRoot)sdk\containerapps\Azure.ResourceManager.AppContainers\tests\Azure.ResourceManager.AppContainers.Tests.csproj
+$(RepoRoot)sdk\containerinstance\Azure.ResourceManager.ContainerInstance\tests\Azure.ResourceManager.ContainerInstance.Tests.csproj
+$(RepoRoot)sdk\containerregistry\Azure.Containers.ContainerRegistry\tests\Azure.Containers.ContainerRegistry.Tests.csproj
+$(RepoRoot)sdk\containerregistry\Azure.ResourceManager.ContainerRegistry\tests\Azure.ResourceManager.ContainerRegistry.Tests.csproj
+$(RepoRoot)sdk\containerservice\Azure.ResourceManager.ContainerService\tests\Azure.ResourceManager.ContainerService.Tests.csproj
+$(RepoRoot)sdk\core\Azure.Core.Amqp\tests\Azure.Core.Amqp.Tests.csproj
+$(RepoRoot)sdk\core\Azure.Core.Experimental\tests\Azure.Core.Experimental.Tests.csproj
+$(RepoRoot)sdk\core\Azure.Core.Experimental\tests\perf\Azure.Core.Experimental.Performance.csproj
+$(RepoRoot)sdk\core\Azure.Core.TestFramework\tests\Azure.Core.TestFramework.Tests.csproj
+$(RepoRoot)sdk\core\Azure.Core\tests\Azure.Core.Tests.csproj
+$(RepoRoot)sdk\core\Microsoft.Azure.Core.NewtonsoftJson\tests\Microsoft.Azure.Core.NewtonsoftJson.Tests.csproj
+$(RepoRoot)sdk\core\Microsoft.Azure.Core.Spatial.NewtonsoftJson\tests\Microsoft.Azure.Core.Spatial.NewtonsoftJson.Tests.csproj
+$(RepoRoot)sdk\core\Microsoft.Azure.Core.Spatial\tests\Microsoft.Azure.Core.Spatial.Tests.csproj
+$(RepoRoot)sdk\cosmosdb\Azure.ResourceManager.CosmosDB\tests\Azure.ResourceManager.CosmosDB.Tests.csproj
+$(RepoRoot)sdk\datafactory\Azure.ResourceManager.DataFactory\tests\Azure.ResourceManager.DataFactory.Tests.csproj
+$(RepoRoot)sdk\desktopvirtualization\Azure.ResourceManager.DesktopVirtualization\tests\Azure.ResourceManager.DesktopVirtualization.Tests.csproj
+$(RepoRoot)sdk\deviceupdate\Azure.IoT.DeviceUpdate\tests\Azure.IoT.DeviceUpdate.Tests.csproj
+$(RepoRoot)sdk\deviceupdate\Azure.ResourceManager.DeviceUpdate\tests\Azure.ResourceManager.DeviceUpdate.Tests.csproj
+$(RepoRoot)sdk\digitaltwins\Azure.DigitalTwins.Core\tests\Azure.DigitalTwins.Core.Tests.csproj
+$(RepoRoot)sdk\dnsresolver\Azure.ResourceManager.DnsResolver\tests\Azure.ResourceManager.DnsResolver.Tests.csproj
+$(RepoRoot)sdk\dns\Azure.ResourceManager.Dns\tests\Azure.ResourceManager.Dns.Tests.csproj
+$(RepoRoot)sdk\dynatrace\Azure.ResourceManager.Dynatrace\tests\Azure.ResourceManager.Dynatrace.Tests.csproj
+$(RepoRoot)sdk\edgeorder\Azure.ResourceManager.EdgeOrder\tests\Azure.ResourceManager.EdgeOrder.Tests.csproj
+$(RepoRoot)sdk\elasticsan\Azure.ResourceManager.ElasticSan\tests\Azure.ResourceManager.ElasticSan.Tests.csproj
+$(RepoRoot)sdk\eventgrid\Azure.Messaging.EventGrid\tests\Azure.Messaging.EventGrid.Tests.csproj
+$(RepoRoot)sdk\eventgrid\Microsoft.Azure.Messaging.EventGrid.CloudNativeCloudEvents\tests\Microsoft.Azure.Messaging.EventGrid.CloudNativeCloudEvents.Tests.csproj
+$(RepoRoot)sdk\eventgrid\Microsoft.Azure.WebJobs.Extensions.EventGrid\tests\Microsoft.Azure.WebJobs.Extensions.EventGrid.Tests.csproj
+$(RepoRoot)sdk\eventhub\Azure.Messaging.EventHubs.Experimental\tests\Azure.Messaging.EventHubs.Experimental.Tests.csproj
+$(RepoRoot)sdk\eventhub\Azure.Messaging.EventHubs.Processor\tests\Azure.Messaging.EventHubs.Processor.Tests.csproj
+$(RepoRoot)sdk\eventhub\Azure.Messaging.EventHubs.Shared\tests\Azure.Messaging.EventHubs.Shared.Tests.csproj
+$(RepoRoot)sdk\eventhub\Azure.Messaging.EventHubs\tests\Azure.Messaging.EventHubs.Tests.csproj
+$(RepoRoot)sdk\eventhub\Azure.ResourceManager.EventHubs\tests\Azure.ResourceManager.EventHubs.Tests.csproj
+$(RepoRoot)sdk\eventhub\Microsoft.Azure.WebJobs.Extensions.EventHubs\tests\Microsoft.Azure.WebJobs.Extensions.EventHubs.Tests.csproj
+$(RepoRoot)sdk\extendedlocation\Azure.ResourceManager.ExtendedLocations\tests\Azure.ResourceManager.ExtendedLocations.Tests.csproj
+$(RepoRoot)sdk\extensions\Azure.Extensions.AspNetCore.Configuration.Secrets\tests\Azure.Extensions.AspNetCore.Configuration.Secrets.Tests.csproj
+$(RepoRoot)sdk\extensions\Azure.Extensions.AspNetCore.DataProtection.Blobs\tests\Azure.Extensions.AspNetCore.DataProtection.Blobs.Tests.csproj
+$(RepoRoot)sdk\extensions\Azure.Extensions.AspNetCore.DataProtection.Keys\tests\Azure.Extensions.AspNetCore.DataProtection.Keys.Tests.csproj
+$(RepoRoot)sdk\extensions\Microsoft.Azure.WebJobs.Extensions.Clients\tests\Microsoft.Azure.WebJobs.Extensions.Clients.Tests.csproj
+$(RepoRoot)sdk\extensions\Microsoft.Extensions.Azure\tests\Microsoft.Extensions.Azure.Tests.csproj
+$(RepoRoot)sdk\fluidrelay\Azure.ResourceManager.FluidRelay\tests\Azure.ResourceManager.FluidRelay.Tests.csproj
+$(RepoRoot)sdk\formrecognizer\Azure.AI.FormRecognizer\tests\Azure.AI.FormRecognizer.Tests.csproj
+$(RepoRoot)sdk\grafana\Azure.ResourceManager.Grafana\tests\Azure.ResourceManager.Grafana.Tests.csproj
+$(RepoRoot)sdk\guestconfiguration\Azure.ResourceManager.GuestConfiguration\tests\Azure.ResourceManager.GuestConfiguration.Tests.csproj
+$(RepoRoot)sdk\hdinsight\Azure.ResourceManager.HDInsight\tests\Azure.ResourceManager.HDInsight.Tests.csproj
+$(RepoRoot)sdk\hybridconnectivity\Azure.ResourceManager.HybridConnectivity\tests\Azure.ResourceManager.HybridConnectivity.Tests.csproj
+$(RepoRoot)sdk\identity\Azure.Identity.BrokeredAuthentication\tests\Azure.Identity.BrokeredAuthentication.Tests.csproj
+$(RepoRoot)sdk\identity\Azure.Identity\tests\Azure.Identity.Tests.csproj
+$(RepoRoot)sdk\iotcentral\Azure.ResourceManager.IotCentral\tests\Azure.ResourceManager.IotCentral.Tests.csproj
+$(RepoRoot)sdk\iothub\Azure.ResourceManager.IotHub\tests\Azure.ResourceManager.IotHub.Tests.csproj
+$(RepoRoot)sdk\iot\Azure.IoT.Hub.Service\tests\Azure.IoT.Hub.Service.Tests.csproj
+$(RepoRoot)sdk\keyvault\Azure.ResourceManager.KeyVault\tests\Azure.ResourceManager.KeyVault.Tests.csproj
+$(RepoRoot)sdk\keyvault\Azure.Security.KeyVault.Administration\tests\Azure.Security.KeyVault.Administration.Tests.csproj
+$(RepoRoot)sdk\keyvault\Azure.Security.KeyVault.Certificates\tests\Azure.Security.KeyVault.Certificates.Tests.csproj
+$(RepoRoot)sdk\keyvault\Azure.Security.KeyVault.Keys\tests\Azure.Security.KeyVault.Keys.Tests.csproj
+$(RepoRoot)sdk\keyvault\Azure.Security.KeyVault.Secrets\tests\Azure.Security.KeyVault.Secrets.Tests.csproj
+$(RepoRoot)sdk\keyvault\samples\keyvaultproxy\tests\AzureSamples.Security.KeyVault.Proxy.Tests.csproj
+$(RepoRoot)sdk\logic\Azure.ResourceManager.Logic\tests\Azure.ResourceManager.Logic.Tests.csproj
+$(RepoRoot)sdk\machinelearningservices\Azure.ResourceManager.MachineLearning\tests\Azure.ResourceManager.MachineLearning.Tests.csproj
+$(RepoRoot)sdk\managedserviceidentity\Azure.ResourceManager.ManagedServiceIdentities\tests\Azure.ResourceManager.ManagedServiceIdentities.Tests.csproj
+$(RepoRoot)sdk\mediaservices\Azure.ResourceManager.Media\tests\Azure.ResourceManager.Media.Tests.csproj
+$(RepoRoot)sdk\metricsadvisor\Azure.AI.MetricsAdvisor\tests\Azure.AI.MetricsAdvisor.Tests.csproj
+$(RepoRoot)sdk\mixedreality\Azure.MixedReality.Authentication\tests\Azure.MixedReality.Authentication.Tests\Azure.MixedReality.Authentication.Tests.csproj
+$(RepoRoot)sdk\mixedreality\Azure.MixedReality.Authentication\tests\Shared.Azure.MixedReality.Authentication.Tests\Shared.Azure.MixedReality.Authentication.Tests.csproj
+$(RepoRoot)sdk\modelsrepository\Azure.IoT.ModelsRepository\tests\Azure.IoT.ModelsRepository.Tests.csproj
+$(RepoRoot)sdk\monitor\Azure.Monitor.Ingestion\tests\Azure.Monitor.Ingestion.Tests.csproj
+$(RepoRoot)sdk\monitor\Azure.Monitor.OpenTelemetry.Exporter\tests\Azure.Monitor.OpenTelemetry.Exporter.Benchmarks\Azure.Monitor.OpenTelemetry.Exporter.Benchmarks.csproj
+$(RepoRoot)sdk\monitor\Azure.Monitor.OpenTelemetry.Exporter\tests\Azure.Monitor.OpenTelemetry.Exporter.Demo.Tracing\Azure.Monitor.OpenTelemetry.Exporter.Demo.Tracing.csproj
+$(RepoRoot)sdk\monitor\Azure.Monitor.OpenTelemetry.Exporter\tests\Azure.Monitor.OpenTelemetry.Exporter.Tests\Azure.Monitor.OpenTelemetry.Exporter.Tests.csproj
+$(RepoRoot)sdk\monitor\Azure.Monitor.OpenTelemetry.Exporter\tests\Azure.Monitor.OpenTelemetry.Exporter.Tracing.Customization\Azure.Monitor.OpenTelemetry.Exporter.Tracing.Customization.csproj
+$(RepoRoot)sdk\monitor\Azure.Monitor.OpenTelemetry.Exporter\tests\E2E.Tests\Azure.Monitor.OpenTelemetry.Exporter.E2E.Tests.csproj
+$(RepoRoot)sdk\monitor\Azure.Monitor.OpenTelemetry.Exporter\tests\Integration.Tests\Azure.Monitor.OpenTelemetry.Exporter.Integration.Tests.csproj
+$(RepoRoot)sdk\monitor\Azure.Monitor.Query\tests\Azure.Monitor.Query.Tests.csproj
+$(RepoRoot)sdk\monitor\Azure.ResourceManager.Monitor\tests\Azure.ResourceManager.Monitor.Tests.csproj
+$(RepoRoot)sdk\mysql\Azure.ResourceManager.MySql\tests\Azure.ResourceManager.MySql.Tests.csproj
+$(RepoRoot)sdk\networkfunction\Azure.ResourceManager.NetworkFunction\tests\Azure.ResourceManager.NetworkFunction.Tests.csproj
+$(RepoRoot)sdk\network\Azure.ResourceManager.Network\tests\Azure.ResourceManager.Network.Tests.csproj
+$(RepoRoot)sdk\notificationhubs\Azure.ResourceManager.NotificationHubs\tests\Azure.ResourceManager.NotificationHubs.Tests.csproj
+$(RepoRoot)sdk\objectanchors\Azure.MixedReality.ObjectAnchors.Conversion\tests\Azure.MixedReality.ObjectAnchors.Conversion.Tests.csproj
+$(RepoRoot)sdk\personalizer\Azure.AI.Personalizer\tests\Azure.AI.Personalizer.Tests.csproj
+$(RepoRoot)sdk\postgresql\Azure.ResourceManager.PostgreSql\tests\Azure.ResourceManager.PostgreSql.Tests.csproj
+$(RepoRoot)sdk\purview\Azure.Analytics.Purview.Account\tests\Azure.Analytics.Purview.Account.Tests.csproj
+$(RepoRoot)sdk\purview\Azure.Analytics.Purview.Administration\tests\Azure.Analytics.Purview.Administration.Tests.csproj
+$(RepoRoot)sdk\purview\Azure.Analytics.Purview.Catalog\tests\Azure.Analytics.Purview.Catalog.Tests.csproj
+$(RepoRoot)sdk\purview\Azure.Analytics.Purview.Scanning\tests\Azure.Analytics.Purview.Scanning.Tests.csproj
+$(RepoRoot)sdk\quantum\Azure.Quantum.Jobs\tests\Azure.Quantum.Jobs.Tests.csproj
+$(RepoRoot)sdk\redisenterprise\Azure.ResourceManager.RedisEnterpriseCache\tests\Azure.ResourceManager.RedisEnterpriseCache.Tests.csproj
+$(RepoRoot)sdk\redis\Azure.ResourceManager.Redis\tests\Azure.ResourceManager.Redis.Tests.csproj
+$(RepoRoot)sdk\relay\Azure.ResourceManager.Relay\tests\Azure.ResourceManager.Relay.Tests.csproj
+$(RepoRoot)sdk\remoterendering\Azure.MixedReality.RemoteRendering\tests\Azure.MixedReality.RemoteRendering.Tests.csproj
+$(RepoRoot)sdk\reservations\Azure.ResourceManager.Reservations\tests\Azure.ResourceManager.Reservations.Tests.csproj
+$(RepoRoot)sdk\resourcemanager\Azure.ResourceManager\tests\Azure.ResourceManager.Tests.csproj
+$(RepoRoot)sdk\resourcemover\Azure.ResourceManager.Migrate\tests\Azure.ResourceManager.Migrate.Tests.csproj
+$(RepoRoot)sdk\resources\Azure.ResourceManager.Resources\tests\Azure.ResourceManager.Resources.Tests.csproj
+$(RepoRoot)sdk\schemaregistry\Azure.Data.SchemaRegistry\tests\Azure.Data.SchemaRegistry.Tests.csproj
+$(RepoRoot)sdk\schemaregistry\Microsoft.Azure.Data.SchemaRegistry.ApacheAvro\tests\Microsoft.Azure.Data.SchemaRegistry.ApacheAvro.Tests.csproj
+$(RepoRoot)sdk\search\Azure.Search.Documents\tests\Azure.Search.Documents.Tests.csproj
+$(RepoRoot)sdk\servicebus\Azure.Messaging.ServiceBus\tests\Azure.Messaging.ServiceBus.Tests.csproj
+$(RepoRoot)sdk\servicebus\Azure.ResourceManager.ServiceBus\tests\Azure.ResourceManager.ServiceBus.Tests.csproj
+$(RepoRoot)sdk\servicebus\Microsoft.Azure.WebJobs.Extensions.ServiceBus\tests\Microsoft.Azure.WebJobs.Extensions.ServiceBus.Tests.csproj
+$(RepoRoot)sdk\servicefabric\Azure.ResourceManager.ServiceFabric\tests\Azure.ResourceManager.ServiceFabric.Tests.csproj
+$(RepoRoot)sdk\servicelinker\Azure.ResourceManager.ServiceLinker\tests\Azure.ResourceManager.ServiceLinker.Tests.csproj
+$(RepoRoot)sdk\signalr\Microsoft.Azure.WebJobs.Extensions.SignalRService\tests\Microsoft.Azure.WebJobs.Extensions.SignalRService.Tests.csproj
+$(RepoRoot)sdk\sqlmanagement\Azure.ResourceManager.Sql\tests\Azure.ResourceManager.Sql.Tests.csproj
+$(RepoRoot)sdk\sqlvirtualmachine\Azure.ResourceManager.SqlVirtualMachine\tests\Azure.ResourceManager.SqlVirtualMachine.Tests.csproj
+$(RepoRoot)sdk\storagepool\Azure.ResourceManager.StoragePool\tests\Azure.ResourceManager.StoragePool.Tests.csproj
+$(RepoRoot)sdk\storage\Azure.ResourceManager.Storage\tests\Azure.ResourceManager.Storage.Tests.csproj
+$(RepoRoot)sdk\storage\Azure.Storage.Blobs.Batch\tests\Azure.Storage.Blobs.Batch.Tests.csproj
+$(RepoRoot)sdk\storage\Azure.Storage.Blobs.ChangeFeed\tests\Azure.Storage.Blobs.ChangeFeed.Tests.csproj
+$(RepoRoot)sdk\storage\Azure.Storage.Blobs\tests\Azure.Storage.Blobs.Tests.csproj
+$(RepoRoot)sdk\storage\Azure.Storage.Common\tests\AesGcmTests\Azure.Storage.Common.AesGcm.Tests.csproj
+$(RepoRoot)sdk\storage\Azure.Storage.Common\tests\Azure.Storage.Common.Tests.csproj
+$(RepoRoot)sdk\storage\Azure.Storage.Files.DataLake\tests\Azure.Storage.Files.DataLake.Tests.csproj
+$(RepoRoot)sdk\storage\Azure.Storage.Files.Shares\tests\Azure.Storage.Files.Shares.Tests.csproj
+$(RepoRoot)sdk\storage\Azure.Storage.Internal.Avro\tests\Azure.Storage.Internal.Avro.Tests.csproj
+$(RepoRoot)sdk\storage\Azure.Storage.Queues\tests\Azure.Storage.Queues.Tests.csproj
+$(RepoRoot)sdk\storage\Microsoft.Azure.WebJobs.Extensions.Storage.Blobs\tests\Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.Tests.csproj
+$(RepoRoot)sdk\storage\Microsoft.Azure.WebJobs.Extensions.Storage.Common\tests\Microsoft.Azure.WebJobs.Extensions.Storage.Common.Tests.csproj
+$(RepoRoot)sdk\storage\Microsoft.Azure.WebJobs.Extensions.Storage.Queues\tests\Microsoft.Azure.WebJobs.Extensions.Storage.Queues.Tests.csproj
+$(RepoRoot)sdk\storage\Microsoft.Azure.WebJobs.Extensions.Storage.Scenario.Tests\tests\Microsoft.Azure.WebJobs.Extensions.Storage.Scenario.Tests.csproj
+$(RepoRoot)sdk\streamanalytics\Azure.ResourceManager.StreamAnalytics\tests\Azure.ResourceManager.StreamAnalytics.Tests.csproj
+$(RepoRoot)sdk\synapse\Azure.Analytics.Synapse.AccessControl\tests\Azure.Analytics.Synapse.AccessControl.Tests.csproj
+$(RepoRoot)sdk\synapse\Azure.Analytics.Synapse.Artifacts\tests\Azure.Analytics.Synapse.Artifacts.Tests.csproj
+$(RepoRoot)sdk\synapse\Azure.Analytics.Synapse.ManagedPrivateEndpoints\tests\Azure.Analytics.Synapse.ManagedPrivateEndpoints.Tests.csproj
+$(RepoRoot)sdk\synapse\Azure.Analytics.Synapse.Monitoring\tests\Azure.Analytics.Synapse.Monitoring.Tests.csproj
+$(RepoRoot)sdk\synapse\Azure.Analytics.Synapse.Spark\tests\Azure.Analytics.Synapse.Spark.Tests.csproj
+$(RepoRoot)sdk\tables\Azure.Data.Tables\tests\Azure.Data.Tables.Tests.csproj
+$(RepoRoot)sdk\tables\Azure.Data.Tables\tests\perf\Azure.Data.Tables.Perf.csproj
+$(RepoRoot)sdk\tables\Microsoft.Azure.WebJobs.Extensions.Tables\tests\Microsoft.Azure.WebJobs.Extensions.Tables.Tests.csproj
+$(RepoRoot)sdk\template\Azure.Template\tests\Azure.Template.Tests.csproj
+$(RepoRoot)sdk\textanalytics\Azure.AI.TextAnalytics\tests\Azure.AI.TextAnalytics.Tests.csproj
+$(RepoRoot)sdk\timeseriesinsights\Azure.IoT.TimeSeriesInsights\tests\Azure.IoT.TimeSeriesInsights.Tests.csproj
+$(RepoRoot)sdk\translation\Azure.AI.Translation.Document\tests\Azure.AI.Translation.Document.Tests.csproj
+$(RepoRoot)sdk\videoanalyzer\Azure.Media.VideoAnalyzer.Edge\tests\Azure.Media.VideoAnalyzer.Edge.Tests.csproj
+$(RepoRoot)sdk\webpubsub\Azure.Messaging.WebPubSub\tests\Azure.Messaging.WebPubSub.Tests.csproj
+$(RepoRoot)sdk\webpubsub\Azure.ResourceManager.WebPubSub\tests\Azure.ResourceManager.WebPubSub.Tests.csproj
+$(RepoRoot)sdk\webpubsub\Microsoft.Azure.WebJobs.Extensions.WebPubSub\tests\Microsoft.Azure.WebJobs.Extensions.WebPubSub.Tests.csproj
+$(RepoRoot)sdk\webpubsub\Microsoft.Azure.WebPubSub.AspNetCore\tests\Microsoft.Azure.WebPubSub.AspNetCore.Tests.csproj
+$(RepoRoot)sdk\websites\Azure.ResourceManager.AppService\tests\Azure.ResourceManager.AppService.Tests.csproj
+$(RepoRoot)sdk\workloads\Azure.ResourceManager.Workloads\tests\Azure.ResourceManager.Workloads.Tests.csproj
+$(RepoRoot)sdk\extensions\Microsoft.Azure.WebJobs.Extensions.Clients\samples\Microsoft.Azure.WebJobs.Extensions.Clients.Samples.csproj
+$(RepoRoot)sdk\extensions\Microsoft.Extensions.Azure\samples\Microsoft.Extensions.Azure.Samples.csproj
+$(RepoRoot)sdk\quantum\Azure.Quantum.Jobs\samples\Azure.Quantum.Jobs.Samples.csproj
+$(RepoRoot)sdk\storage\Azure.Storage.Blobs.Batch\samples\Azure.Storage.Blobs.Batch.Samples.Tests.csproj
+$(RepoRoot)sdk\storage\Azure.Storage.Blobs.ChangeFeed\samples\Azure.Storage.Blobs.ChangeFeed.Samples.Tests.csproj
+$(RepoRoot)sdk\storage\Azure.Storage.Blobs\samples\Azure.Storage.Blobs.Samples.Tests.csproj
+$(RepoRoot)sdk\storage\Azure.Storage.Common\samples\Azure.Storage.Common.Samples.Tests.csproj
+$(RepoRoot)sdk\storage\Azure.Storage.Files.DataLake\samples\Azure.Storage.Files.DataLake.Samples.Tests.csproj
+$(RepoRoot)sdk\storage\Azure.Storage.Files.Shares\samples\Azure.Storage.Files.Shares.Samples.Tests.csproj
+$(RepoRoot)sdk\storage\Azure.Storage.Queues\samples\Azure.Storage.Queues.Samples.Tests.csproj
+$(RepoRoot)sdk\storage\Microsoft.Azure.WebJobs.Extensions.Storage.Blobs\samples\functionapp\Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.Samples.Function.App.csproj
+$(RepoRoot)sdk\storage\Microsoft.Azure.WebJobs.Extensions.Storage.Blobs\samples\readmes\Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.Samples.Tests.csproj
+$(RepoRoot)sdk\storage\Microsoft.Azure.WebJobs.Extensions.Storage.Queues\samples\functionapp\Microsoft.Azure.WebJobs.Extensions.Storage.Queues.Samples.Function.App.csproj
+$(RepoRoot)sdk\storage\Microsoft.Azure.WebJobs.Extensions.Storage.Queues\samples\readmes\Microsoft.Azure.WebJobs.Extensions.Storage.Queues.Samples.Tests.csproj
+$(RepoRoot)sdk\videoanalyzer\Azure.Media.VideoAnalyzer.Edge\samples\Azure.Media.VideoAnalyzer.Edge.Samples.csproj
diff --git a/eng/scripts/splittestdependencies/tests/inputs/sync-platform-matrix.json b/eng/scripts/splittestdependencies/tests/inputs/sync-platform-matrix.json
new file mode 100644
index 0000000000000..93caea89d7179
--- /dev/null
+++ b/eng/scripts/splittestdependencies/tests/inputs/sync-platform-matrix.json
@@ -0,0 +1,65 @@
+{
+ "displayNames": {
+ "/p:UseProjectReferenceToAzureClients=false": "PackageRef",
+ "/p:UseProjectReferenceToAzureClients=true": "ProjectRef"
+ },
+ "matrix": {
+ "Agent": {
+ "Ubuntu-20.04_NETCore3.1": {
+ "OSVmImage": "MMSUbuntu20.04",
+ "Pool": "azsdk-pool-mms-ubuntu-2004-general",
+ "TestTargetFramework": "netcoreapp3.1"
+ },
+ "Ubuntu-20.04_NET6.0": {
+ "OSVmImage": "MMSUbuntu20.04",
+ "Pool": "azsdk-pool-mms-ubuntu-2004-general",
+ "TestTargetFramework": "net6.0"
+ },
+ "Windows2019_NET6.0": {
+ "OSVmImage": "MMS2019",
+ "Pool": "azsdk-pool-mms-win-2019-general",
+ "TestTargetFramework": "net6.0"
+ },
+ "Windows2019_NET461": {
+ "OSVmImage": "MMS2019",
+ "Pool": "azsdk-pool-mms-win-2019-general",
+ "TestTargetFramework": "net461"
+ },
+ "macos-11_NETCore3.1": {
+ "OSVmImage": "macos-11",
+ "Pool": "Azure Pipelines",
+ "TestTargetFramework": "netcoreapp3.1"
+ },
+ "macos-11_NET6.0": {
+ "OSVmImage": "macos-11",
+ "Pool": "Azure Pipelines",
+ "TestTargetFramework": "net6.0"
+ }
+ },
+ "AdditionalTestArguments": [
+ "/p:UseProjectReferenceToAzureClients=false",
+ "/p:UseProjectReferenceToAzureClients=true"
+ ],
+ "BuildConfiguration": [
+ "Debug",
+ "Release"
+ ]
+ },
+ "include": [
+ {
+ "Agent": {
+ "Windows2019": {
+ "OSVmImage": "MMS2019",
+ "Pool": "azsdk-pool-mms-win-2019-general",
+ "TestTargetFramework": "netcoreapp3.1"
+ }
+ },
+ "TestMode": {
+ "netcoreapp31_Coverage_Record": {
+ "SupportsRecording": true,
+ "CollectCoverage": true
+ }
+ }
+ }
+ ]
+}
diff --git a/eng/service.proj b/eng/service.proj
index 7fe681dc1560a..d8bb19a293c7d 100644
--- a/eng/service.proj
+++ b/eng/service.proj
@@ -13,7 +13,7 @@
false
-
+
@@ -28,8 +28,9 @@
-
+
+
@@ -79,4 +80,23 @@
SkipNonexistentProjects="false"
SkipNonexistentTargets="true" />
+
+
+
+
+
+
+
+
+
+
+ <_WriteToLines Include="%24%28RepoRoot%29%(ProjectsToIncludeFitered.Identity)" />
+
+
+
+
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceResource.cs
index 52610fc8fc913..3177f900b0421 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceResource.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceResource.cs
@@ -2018,8 +2018,8 @@ public virtual AsyncPageable GetPortalSettingsAsync(
{
async Task> FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _apiManagementServicePortalSettingsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetPortalSettings");
- scope0.Start();
+ using var scope = _apiManagementServicePortalSettingsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetPortalSettings");
+ scope.Start();
try
{
var response = await _apiManagementServicePortalSettingsRestClient.ListByServiceAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -2027,7 +2027,7 @@ async Task> FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2045,8 +2045,8 @@ public virtual Pageable GetPortalSettings(Cancellati
{
Page FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _apiManagementServicePortalSettingsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetPortalSettings");
- scope0.Start();
+ using var scope = _apiManagementServicePortalSettingsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetPortalSettings");
+ scope.Start();
try
{
var response = _apiManagementServicePortalSettingsRestClient.ListByService(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken);
@@ -2054,7 +2054,7 @@ Page FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2076,8 +2076,8 @@ public virtual AsyncPageable GetProductsByTagsAsync(
{
async Task> FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _apiManagementProductProductClientDiagnostics.CreateScope("ApiManagementServiceResource.GetProductsByTags");
- scope0.Start();
+ using var scope = _apiManagementProductProductClientDiagnostics.CreateScope("ApiManagementServiceResource.GetProductsByTags");
+ scope.Start();
try
{
var response = await _apiManagementProductProductRestClient.ListByTagsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedProducts, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -2085,14 +2085,14 @@ async Task> FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
async Task> NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _apiManagementProductProductClientDiagnostics.CreateScope("ApiManagementServiceResource.GetProductsByTags");
- scope0.Start();
+ using var scope = _apiManagementProductProductClientDiagnostics.CreateScope("ApiManagementServiceResource.GetProductsByTags");
+ scope.Start();
try
{
var response = await _apiManagementProductProductRestClient.ListByTagsNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedProducts, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -2100,7 +2100,7 @@ async Task> NextPageFunc(string nextLink, int?
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2122,8 +2122,8 @@ public virtual Pageable GetProductsByTags(string fil
{
Page FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _apiManagementProductProductClientDiagnostics.CreateScope("ApiManagementServiceResource.GetProductsByTags");
- scope0.Start();
+ using var scope = _apiManagementProductProductClientDiagnostics.CreateScope("ApiManagementServiceResource.GetProductsByTags");
+ scope.Start();
try
{
var response = _apiManagementProductProductRestClient.ListByTags(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedProducts, cancellationToken: cancellationToken);
@@ -2131,14 +2131,14 @@ Page FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
Page NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _apiManagementProductProductClientDiagnostics.CreateScope("ApiManagementServiceResource.GetProductsByTags");
- scope0.Start();
+ using var scope = _apiManagementProductProductClientDiagnostics.CreateScope("ApiManagementServiceResource.GetProductsByTags");
+ scope.Start();
try
{
var response = _apiManagementProductProductRestClient.ListByTagsNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedProducts, cancellationToken: cancellationToken);
@@ -2146,7 +2146,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2169,8 +2169,8 @@ public virtual AsyncPageable GetQuotaByCounterKeysAsync(st
async Task> FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _quotaByCounterKeysClientDiagnostics.CreateScope("ApiManagementServiceResource.GetQuotaByCounterKeys");
- scope0.Start();
+ using var scope = _quotaByCounterKeysClientDiagnostics.CreateScope("ApiManagementServiceResource.GetQuotaByCounterKeys");
+ scope.Start();
try
{
var response = await _quotaByCounterKeysRestClient.ListByServiceAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, quotaCounterKey, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -2178,7 +2178,7 @@ async Task> FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2201,8 +2201,8 @@ public virtual Pageable GetQuotaByCounterKeys(string quota
Page FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _quotaByCounterKeysClientDiagnostics.CreateScope("ApiManagementServiceResource.GetQuotaByCounterKeys");
- scope0.Start();
+ using var scope = _quotaByCounterKeysClientDiagnostics.CreateScope("ApiManagementServiceResource.GetQuotaByCounterKeys");
+ scope.Start();
try
{
var response = _quotaByCounterKeysRestClient.ListByService(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, quotaCounterKey, cancellationToken: cancellationToken);
@@ -2210,7 +2210,7 @@ Page FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2235,8 +2235,8 @@ public virtual AsyncPageable UpdateQuotaByCounterKeysAsync
async Task> FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _quotaByCounterKeysClientDiagnostics.CreateScope("ApiManagementServiceResource.UpdateQuotaByCounterKeys");
- scope0.Start();
+ using var scope = _quotaByCounterKeysClientDiagnostics.CreateScope("ApiManagementServiceResource.UpdateQuotaByCounterKeys");
+ scope.Start();
try
{
var response = await _quotaByCounterKeysRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, quotaCounterKey, content, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -2244,7 +2244,7 @@ async Task> FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2269,8 +2269,8 @@ public virtual Pageable UpdateQuotaByCounterKeys(string qu
Page FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _quotaByCounterKeysClientDiagnostics.CreateScope("ApiManagementServiceResource.UpdateQuotaByCounterKeys");
- scope0.Start();
+ using var scope = _quotaByCounterKeysClientDiagnostics.CreateScope("ApiManagementServiceResource.UpdateQuotaByCounterKeys");
+ scope.Start();
try
{
var response = _quotaByCounterKeysRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, quotaCounterKey, content, cancellationToken: cancellationToken);
@@ -2278,7 +2278,7 @@ Page FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2300,8 +2300,8 @@ public virtual async Task> GetQuotaByPeriodKeyAsy
Argument.AssertNotNullOrEmpty(quotaCounterKey, nameof(quotaCounterKey));
Argument.AssertNotNullOrEmpty(quotaPeriodKey, nameof(quotaPeriodKey));
- using var scope0 = _quotaByPeriodKeysClientDiagnostics.CreateScope("ApiManagementServiceResource.GetQuotaByPeriodKey");
- scope0.Start();
+ using var scope = _quotaByPeriodKeysClientDiagnostics.CreateScope("ApiManagementServiceResource.GetQuotaByPeriodKey");
+ scope.Start();
try
{
var response = await _quotaByPeriodKeysRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, quotaCounterKey, quotaPeriodKey, cancellationToken).ConfigureAwait(false);
@@ -2309,7 +2309,7 @@ public virtual async Task> GetQuotaByPeriodKeyAsy
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2329,8 +2329,8 @@ public virtual Response GetQuotaByPeriodKey(string quotaCo
Argument.AssertNotNullOrEmpty(quotaCounterKey, nameof(quotaCounterKey));
Argument.AssertNotNullOrEmpty(quotaPeriodKey, nameof(quotaPeriodKey));
- using var scope0 = _quotaByPeriodKeysClientDiagnostics.CreateScope("ApiManagementServiceResource.GetQuotaByPeriodKey");
- scope0.Start();
+ using var scope = _quotaByPeriodKeysClientDiagnostics.CreateScope("ApiManagementServiceResource.GetQuotaByPeriodKey");
+ scope.Start();
try
{
var response = _quotaByPeriodKeysRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, quotaCounterKey, quotaPeriodKey, cancellationToken);
@@ -2338,7 +2338,7 @@ public virtual Response GetQuotaByPeriodKey(string quotaCo
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2360,8 +2360,8 @@ public virtual async Task> UpdateQuotaByPeriodKey
Argument.AssertNotNullOrEmpty(quotaPeriodKey, nameof(quotaPeriodKey));
Argument.AssertNotNull(content, nameof(content));
- using var scope0 = _quotaByPeriodKeysClientDiagnostics.CreateScope("ApiManagementServiceResource.UpdateQuotaByPeriodKey");
- scope0.Start();
+ using var scope = _quotaByPeriodKeysClientDiagnostics.CreateScope("ApiManagementServiceResource.UpdateQuotaByPeriodKey");
+ scope.Start();
try
{
var response = await _quotaByPeriodKeysRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, quotaCounterKey, quotaPeriodKey, content, cancellationToken).ConfigureAwait(false);
@@ -2369,7 +2369,7 @@ public virtual async Task> UpdateQuotaByPeriodKey
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2391,8 +2391,8 @@ public virtual Response UpdateQuotaByPeriodKey(string quot
Argument.AssertNotNullOrEmpty(quotaPeriodKey, nameof(quotaPeriodKey));
Argument.AssertNotNull(content, nameof(content));
- using var scope0 = _quotaByPeriodKeysClientDiagnostics.CreateScope("ApiManagementServiceResource.UpdateQuotaByPeriodKey");
- scope0.Start();
+ using var scope = _quotaByPeriodKeysClientDiagnostics.CreateScope("ApiManagementServiceResource.UpdateQuotaByPeriodKey");
+ scope.Start();
try
{
var response = _quotaByPeriodKeysRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, quotaCounterKey, quotaPeriodKey, content, cancellationToken);
@@ -2400,7 +2400,7 @@ public virtual Response UpdateQuotaByPeriodKey(string quot
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2416,8 +2416,8 @@ public virtual AsyncPageable GetRegionsAsync(CancellationToken c
{
async Task> FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _regionClientDiagnostics.CreateScope("ApiManagementServiceResource.GetRegions");
- scope0.Start();
+ using var scope = _regionClientDiagnostics.CreateScope("ApiManagementServiceResource.GetRegions");
+ scope.Start();
try
{
var response = await _regionRestClient.ListByServiceAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -2425,14 +2425,14 @@ async Task> FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
async Task> NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _regionClientDiagnostics.CreateScope("ApiManagementServiceResource.GetRegions");
- scope0.Start();
+ using var scope = _regionClientDiagnostics.CreateScope("ApiManagementServiceResource.GetRegions");
+ scope.Start();
try
{
var response = await _regionRestClient.ListByServiceNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -2440,7 +2440,7 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHint
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2458,8 +2458,8 @@ public virtual Pageable GetRegions(CancellationToken cancellatio
{
Page FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _regionClientDiagnostics.CreateScope("ApiManagementServiceResource.GetRegions");
- scope0.Start();
+ using var scope = _regionClientDiagnostics.CreateScope("ApiManagementServiceResource.GetRegions");
+ scope.Start();
try
{
var response = _regionRestClient.ListByService(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken);
@@ -2467,14 +2467,14 @@ Page FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
Page NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _regionClientDiagnostics.CreateScope("ApiManagementServiceResource.GetRegions");
- scope0.Start();
+ using var scope = _regionClientDiagnostics.CreateScope("ApiManagementServiceResource.GetRegions");
+ scope.Start();
try
{
var response = _regionRestClient.ListByServiceNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken);
@@ -2482,7 +2482,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2507,8 +2507,8 @@ public virtual AsyncPageable GetReportsByApiAsync(string f
async Task> FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByApi");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByApi");
+ scope.Start();
try
{
var response = await _reportsRestClient.ListByApiAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -2516,14 +2516,14 @@ async Task> FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
async Task> NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByApi");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByApi");
+ scope.Start();
try
{
var response = await _reportsRestClient.ListByApiNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -2531,7 +2531,7 @@ async Task> NextPageFunc(string nextLink, int? pageSi
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2556,8 +2556,8 @@ public virtual Pageable GetReportsByApi(string filter, int
Page FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByApi");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByApi");
+ scope.Start();
try
{
var response = _reportsRestClient.ListByApi(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken);
@@ -2565,14 +2565,14 @@ Page FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
Page NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByApi");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByApi");
+ scope.Start();
try
{
var response = _reportsRestClient.ListByApiNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken);
@@ -2580,7 +2580,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2605,8 +2605,8 @@ public virtual AsyncPageable GetReportsByUserAsync(string
async Task> FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByUser");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByUser");
+ scope.Start();
try
{
var response = await _reportsRestClient.ListByUserAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -2614,14 +2614,14 @@ async Task> FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
async Task> NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByUser");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByUser");
+ scope.Start();
try
{
var response = await _reportsRestClient.ListByUserNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -2629,7 +2629,7 @@ async Task> NextPageFunc(string nextLink, int? pageSi
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2654,8 +2654,8 @@ public virtual Pageable GetReportsByUser(string filter, in
Page FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByUser");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByUser");
+ scope.Start();
try
{
var response = _reportsRestClient.ListByUser(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken);
@@ -2663,14 +2663,14 @@ Page FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
Page NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByUser");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByUser");
+ scope.Start();
try
{
var response = _reportsRestClient.ListByUserNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken);
@@ -2678,7 +2678,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2703,8 +2703,8 @@ public virtual AsyncPageable GetReportsByOperationAsync(st
async Task> FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByOperation");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByOperation");
+ scope.Start();
try
{
var response = await _reportsRestClient.ListByOperationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -2712,14 +2712,14 @@ async Task> FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
async Task> NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByOperation");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByOperation");
+ scope.Start();
try
{
var response = await _reportsRestClient.ListByOperationNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -2727,7 +2727,7 @@ async Task> NextPageFunc(string nextLink, int? pageSi
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2752,8 +2752,8 @@ public virtual Pageable GetReportsByOperation(string filte
Page FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByOperation");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByOperation");
+ scope.Start();
try
{
var response = _reportsRestClient.ListByOperation(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken);
@@ -2761,14 +2761,14 @@ Page FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
Page NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByOperation");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByOperation");
+ scope.Start();
try
{
var response = _reportsRestClient.ListByOperationNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken);
@@ -2776,7 +2776,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2801,8 +2801,8 @@ public virtual AsyncPageable GetReportsByProductAsync(stri
async Task> FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByProduct");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByProduct");
+ scope.Start();
try
{
var response = await _reportsRestClient.ListByProductAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -2810,14 +2810,14 @@ async Task> FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
async Task> NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByProduct");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByProduct");
+ scope.Start();
try
{
var response = await _reportsRestClient.ListByProductNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -2825,7 +2825,7 @@ async Task> NextPageFunc(string nextLink, int? pageSi
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2850,8 +2850,8 @@ public virtual Pageable GetReportsByProduct(string filter,
Page FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByProduct");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByProduct");
+ scope.Start();
try
{
var response = _reportsRestClient.ListByProduct(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken);
@@ -2859,14 +2859,14 @@ Page FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
Page NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByProduct");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByProduct");
+ scope.Start();
try
{
var response = _reportsRestClient.ListByProductNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken);
@@ -2874,7 +2874,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2898,8 +2898,8 @@ public virtual AsyncPageable GetReportsByGeoAsync(string f
async Task> FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByGeo");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByGeo");
+ scope.Start();
try
{
var response = await _reportsRestClient.ListByGeoAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -2907,14 +2907,14 @@ async Task> FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
async Task> NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByGeo");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByGeo");
+ scope.Start();
try
{
var response = await _reportsRestClient.ListByGeoNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -2922,7 +2922,7 @@ async Task> NextPageFunc(string nextLink, int? pageSi
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2946,8 +2946,8 @@ public virtual Pageable GetReportsByGeo(string filter, int
Page FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByGeo");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByGeo");
+ scope.Start();
try
{
var response = _reportsRestClient.ListByGeo(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, cancellationToken: cancellationToken);
@@ -2955,14 +2955,14 @@ Page FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
Page NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByGeo");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByGeo");
+ scope.Start();
try
{
var response = _reportsRestClient.ListByGeoNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, cancellationToken: cancellationToken);
@@ -2970,7 +2970,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -2995,8 +2995,8 @@ public virtual AsyncPageable GetReportsBySubscriptionAsync
async Task> FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsBySubscription");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsBySubscription");
+ scope.Start();
try
{
var response = await _reportsRestClient.ListBySubscriptionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -3004,14 +3004,14 @@ async Task> FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
async Task> NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsBySubscription");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsBySubscription");
+ scope.Start();
try
{
var response = await _reportsRestClient.ListBySubscriptionNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -3019,7 +3019,7 @@ async Task> NextPageFunc(string nextLink, int? pageSi
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3044,8 +3044,8 @@ public virtual Pageable GetReportsBySubscription(string fi
Page FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsBySubscription");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsBySubscription");
+ scope.Start();
try
{
var response = _reportsRestClient.ListBySubscription(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken);
@@ -3053,14 +3053,14 @@ Page FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
Page NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsBySubscription");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsBySubscription");
+ scope.Start();
try
{
var response = _reportsRestClient.ListBySubscriptionNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, orderBy, cancellationToken: cancellationToken);
@@ -3068,7 +3068,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3094,8 +3094,8 @@ public virtual AsyncPageable GetReportsByTimeAsync(string
async Task> FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByTime");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByTime");
+ scope.Start();
try
{
var response = await _reportsRestClient.ListByTimeAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, interval, top, skip, orderBy, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -3103,14 +3103,14 @@ async Task> FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
async Task> NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByTime");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByTime");
+ scope.Start();
try
{
var response = await _reportsRestClient.ListByTimeNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, interval, top, skip, orderBy, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -3118,7 +3118,7 @@ async Task> NextPageFunc(string nextLink, int? pageSi
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3144,8 +3144,8 @@ public virtual Pageable GetReportsByTime(string filter, Ti
Page FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByTime");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByTime");
+ scope.Start();
try
{
var response = _reportsRestClient.ListByTime(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, interval, top, skip, orderBy, cancellationToken: cancellationToken);
@@ -3153,14 +3153,14 @@ Page FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
Page NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByTime");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByTime");
+ scope.Start();
try
{
var response = _reportsRestClient.ListByTimeNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, interval, top, skip, orderBy, cancellationToken: cancellationToken);
@@ -3168,7 +3168,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3192,8 +3192,8 @@ public virtual AsyncPageable GetReportsByRequestAsy
async Task> FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByRequest");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByRequest");
+ scope.Start();
try
{
var response = await _reportsRestClient.ListByRequestAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -3201,7 +3201,7 @@ async Task> FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3225,8 +3225,8 @@ public virtual Pageable GetReportsByRequest(string
Page FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByRequest");
- scope0.Start();
+ using var scope = _reportsClientDiagnostics.CreateScope("ApiManagementServiceResource.GetReportsByRequest");
+ scope.Start();
try
{
var response = _reportsRestClient.ListByRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, cancellationToken: cancellationToken);
@@ -3234,7 +3234,7 @@ Page FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3255,8 +3255,8 @@ public virtual AsyncPageable GetTagResourcesAsync(st
{
async Task> FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _tagResourceClientDiagnostics.CreateScope("ApiManagementServiceResource.GetTagResources");
- scope0.Start();
+ using var scope = _tagResourceClientDiagnostics.CreateScope("ApiManagementServiceResource.GetTagResources");
+ scope.Start();
try
{
var response = await _tagResourceRestClient.ListByServiceAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -3264,14 +3264,14 @@ async Task> FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
async Task> NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _tagResourceClientDiagnostics.CreateScope("ApiManagementServiceResource.GetTagResources");
- scope0.Start();
+ using var scope = _tagResourceClientDiagnostics.CreateScope("ApiManagementServiceResource.GetTagResources");
+ scope.Start();
try
{
var response = await _tagResourceRestClient.ListByServiceNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -3279,7 +3279,7 @@ async Task> NextPageFunc(string nextLink, int?
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3300,8 +3300,8 @@ public virtual Pageable GetTagResources(string filte
{
Page FirstPageFunc(int? pageSizeHint)
{
- using var scope0 = _tagResourceClientDiagnostics.CreateScope("ApiManagementServiceResource.GetTagResources");
- scope0.Start();
+ using var scope = _tagResourceClientDiagnostics.CreateScope("ApiManagementServiceResource.GetTagResources");
+ scope.Start();
try
{
var response = _tagResourceRestClient.ListByService(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, cancellationToken: cancellationToken);
@@ -3309,14 +3309,14 @@ Page FirstPageFunc(int? pageSizeHint)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
Page NextPageFunc(string nextLink, int? pageSizeHint)
{
- using var scope0 = _tagResourceClientDiagnostics.CreateScope("ApiManagementServiceResource.GetTagResources");
- scope0.Start();
+ using var scope = _tagResourceClientDiagnostics.CreateScope("ApiManagementServiceResource.GetTagResources");
+ scope.Start();
try
{
var response = _tagResourceRestClient.ListByServiceNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, cancellationToken: cancellationToken);
@@ -3324,7 +3324,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3345,8 +3345,8 @@ public virtual async Task> DeployTe
{
Argument.AssertNotNull(content, nameof(content));
- using var scope0 = _tenantConfigurationClientDiagnostics.CreateScope("ApiManagementServiceResource.DeployTenantConfiguration");
- scope0.Start();
+ using var scope = _tenantConfigurationClientDiagnostics.CreateScope("ApiManagementServiceResource.DeployTenantConfiguration");
+ scope.Start();
try
{
var response = await _tenantConfigurationRestClient.DeployAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, content, cancellationToken).ConfigureAwait(false);
@@ -3357,7 +3357,7 @@ public virtual async Task> DeployTe
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3376,8 +3376,8 @@ public virtual ArmOperation DeployTenantConfigur
{
Argument.AssertNotNull(content, nameof(content));
- using var scope0 = _tenantConfigurationClientDiagnostics.CreateScope("ApiManagementServiceResource.DeployTenantConfiguration");
- scope0.Start();
+ using var scope = _tenantConfigurationClientDiagnostics.CreateScope("ApiManagementServiceResource.DeployTenantConfiguration");
+ scope.Start();
try
{
var response = _tenantConfigurationRestClient.Deploy(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, content, cancellationToken);
@@ -3388,7 +3388,7 @@ public virtual ArmOperation DeployTenantConfigur
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3407,8 +3407,8 @@ public virtual async Task> SaveTena
{
Argument.AssertNotNull(content, nameof(content));
- using var scope0 = _tenantConfigurationClientDiagnostics.CreateScope("ApiManagementServiceResource.SaveTenantConfiguration");
- scope0.Start();
+ using var scope = _tenantConfigurationClientDiagnostics.CreateScope("ApiManagementServiceResource.SaveTenantConfiguration");
+ scope.Start();
try
{
var response = await _tenantConfigurationRestClient.SaveAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, content, cancellationToken).ConfigureAwait(false);
@@ -3419,7 +3419,7 @@ public virtual async Task> SaveTena
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3438,8 +3438,8 @@ public virtual ArmOperation SaveTenantConfigurat
{
Argument.AssertNotNull(content, nameof(content));
- using var scope0 = _tenantConfigurationClientDiagnostics.CreateScope("ApiManagementServiceResource.SaveTenantConfiguration");
- scope0.Start();
+ using var scope = _tenantConfigurationClientDiagnostics.CreateScope("ApiManagementServiceResource.SaveTenantConfiguration");
+ scope.Start();
try
{
var response = _tenantConfigurationRestClient.Save(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, content, cancellationToken);
@@ -3450,7 +3450,7 @@ public virtual ArmOperation SaveTenantConfigurat
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3469,8 +3469,8 @@ public virtual async Task> Validate
{
Argument.AssertNotNull(content, nameof(content));
- using var scope0 = _tenantConfigurationClientDiagnostics.CreateScope("ApiManagementServiceResource.ValidateTenantConfiguration");
- scope0.Start();
+ using var scope = _tenantConfigurationClientDiagnostics.CreateScope("ApiManagementServiceResource.ValidateTenantConfiguration");
+ scope.Start();
try
{
var response = await _tenantConfigurationRestClient.ValidateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, content, cancellationToken).ConfigureAwait(false);
@@ -3481,7 +3481,7 @@ public virtual async Task> Validate
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3500,8 +3500,8 @@ public virtual ArmOperation ValidateTenantConfig
{
Argument.AssertNotNull(content, nameof(content));
- using var scope0 = _tenantConfigurationClientDiagnostics.CreateScope("ApiManagementServiceResource.ValidateTenantConfiguration");
- scope0.Start();
+ using var scope = _tenantConfigurationClientDiagnostics.CreateScope("ApiManagementServiceResource.ValidateTenantConfiguration");
+ scope.Start();
try
{
var response = _tenantConfigurationRestClient.Validate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, content, cancellationToken);
@@ -3512,7 +3512,7 @@ public virtual ArmOperation ValidateTenantConfig
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3526,8 +3526,8 @@ public virtual ArmOperation ValidateTenantConfig
/// The cancellation token to use.
public virtual async Task> GetTenantConfigurationSyncStateAsync(ConfigurationName configurationName, CancellationToken cancellationToken = default)
{
- using var scope0 = _tenantConfigurationClientDiagnostics.CreateScope("ApiManagementServiceResource.GetTenantConfigurationSyncState");
- scope0.Start();
+ using var scope = _tenantConfigurationClientDiagnostics.CreateScope("ApiManagementServiceResource.GetTenantConfigurationSyncState");
+ scope.Start();
try
{
var response = await _tenantConfigurationRestClient.GetSyncStateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, cancellationToken).ConfigureAwait(false);
@@ -3535,7 +3535,7 @@ public virtual async Task> GetTen
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3549,8 +3549,8 @@ public virtual async Task> GetTen
/// The cancellation token to use.
public virtual Response GetTenantConfigurationSyncState(ConfigurationName configurationName, CancellationToken cancellationToken = default)
{
- using var scope0 = _tenantConfigurationClientDiagnostics.CreateScope("ApiManagementServiceResource.GetTenantConfigurationSyncState");
- scope0.Start();
+ using var scope = _tenantConfigurationClientDiagnostics.CreateScope("ApiManagementServiceResource.GetTenantConfigurationSyncState");
+ scope.Start();
try
{
var response = _tenantConfigurationRestClient.GetSyncState(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, configurationName, cancellationToken);
@@ -3558,7 +3558,7 @@ public virtual Response GetTenantConfigura
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3577,8 +3577,8 @@ public virtual async Task> AddTagAsync(st
Argument.AssertNotNull(key, nameof(key));
Argument.AssertNotNull(value, nameof(value));
- using var scope0 = _apiManagementServiceClientDiagnostics.CreateScope("ApiManagementServiceResource.AddTag");
- scope0.Start();
+ using var scope = _apiManagementServiceClientDiagnostics.CreateScope("ApiManagementServiceResource.AddTag");
+ scope.Start();
try
{
var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
@@ -3589,7 +3589,7 @@ public virtual async Task> AddTagAsync(st
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3608,8 +3608,8 @@ public virtual Response AddTag(string key, string
Argument.AssertNotNull(key, nameof(key));
Argument.AssertNotNull(value, nameof(value));
- using var scope0 = _apiManagementServiceClientDiagnostics.CreateScope("ApiManagementServiceResource.AddTag");
- scope0.Start();
+ using var scope = _apiManagementServiceClientDiagnostics.CreateScope("ApiManagementServiceResource.AddTag");
+ scope.Start();
try
{
var originalTags = GetTagResource().Get(cancellationToken);
@@ -3620,7 +3620,7 @@ public virtual Response AddTag(string key, string
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3637,8 +3637,8 @@ public virtual async Task> SetTagsAsync(I
{
Argument.AssertNotNull(tags, nameof(tags));
- using var scope0 = _apiManagementServiceClientDiagnostics.CreateScope("ApiManagementServiceResource.SetTags");
- scope0.Start();
+ using var scope = _apiManagementServiceClientDiagnostics.CreateScope("ApiManagementServiceResource.SetTags");
+ scope.Start();
try
{
await GetTagResource().DeleteAsync(WaitUntil.Completed, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -3650,7 +3650,7 @@ public virtual async Task> SetTagsAsync(I
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3667,8 +3667,8 @@ public virtual Response SetTags(IDictionary SetTags(IDictionary> RemoveTagAsync
{
Argument.AssertNotNull(key, nameof(key));
- using var scope0 = _apiManagementServiceClientDiagnostics.CreateScope("ApiManagementServiceResource.RemoveTag");
- scope0.Start();
+ using var scope = _apiManagementServiceClientDiagnostics.CreateScope("ApiManagementServiceResource.RemoveTag");
+ scope.Start();
try
{
var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
@@ -3709,7 +3709,7 @@ public virtual async Task> RemoveTagAsync
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -3726,8 +3726,8 @@ public virtual Response RemoveTag(string key, Canc
{
Argument.AssertNotNull(key, nameof(key));
- using var scope0 = _apiManagementServiceClientDiagnostics.CreateScope("ApiManagementServiceResource.RemoveTag");
- scope0.Start();
+ using var scope = _apiManagementServiceClientDiagnostics.CreateScope("ApiManagementServiceResource.RemoveTag");
+ scope.Start();
try
{
var originalTags = GetTagResource().Get(cancellationToken);
@@ -3738,7 +3738,7 @@ public virtual Response RemoveTag(string key, Canc
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementTagCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementTagCollection.cs
index 8c4911a6cb76b..bbb1740aedced 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementTagCollection.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementTagCollection.cs
@@ -285,8 +285,8 @@ public virtual async Task> ExistsAsync(string tagId, Cancellation
{
Argument.AssertNotNullOrEmpty(tagId, nameof(tagId));
- using var scope0 = _apiManagementTagTagClientDiagnostics.CreateScope("ApiManagementTagCollection.Exists");
- scope0.Start();
+ using var scope = _apiManagementTagTagClientDiagnostics.CreateScope("ApiManagementTagCollection.Exists");
+ scope.Start();
try
{
var response = await _apiManagementTagTagRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, tagId, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -294,7 +294,7 @@ public virtual async Task> ExistsAsync(string tagId, Cancellation
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -312,8 +312,8 @@ public virtual Response Exists(string tagId, CancellationToken cancellatio
{
Argument.AssertNotNullOrEmpty(tagId, nameof(tagId));
- using var scope0 = _apiManagementTagTagClientDiagnostics.CreateScope("ApiManagementTagCollection.Exists");
- scope0.Start();
+ using var scope = _apiManagementTagTagClientDiagnostics.CreateScope("ApiManagementTagCollection.Exists");
+ scope.Start();
try
{
var response = _apiManagementTagTagRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, tagId, cancellationToken: cancellationToken);
@@ -321,7 +321,7 @@ public virtual Response Exists(string tagId, CancellationToken cancellatio
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementServiceRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementServiceRestOperations.cs
index e0fa5b833b6cb..c54b5fe7924dd 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementServiceRestOperations.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiManagementServiceRestOperations.cs
@@ -212,9 +212,9 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r
request.Uri = uri;
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Content-Type", "application/json");
- var content0 = new Utf8JsonRequestContent();
- content0.JsonWriter.WriteObjectValue(data);
- request.Content = content0;
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(data);
+ request.Content = content;
_userAgent.Apply(message);
return message;
}
@@ -292,9 +292,9 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG
request.Uri = uri;
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Content-Type", "application/json");
- var content0 = new Utf8JsonRequestContent();
- content0.JsonWriter.WriteObjectValue(patch);
- request.Content = content0;
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(patch);
+ request.Content = content;
_userAgent.Apply(message);
return message;
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiRestOperations.cs
index b13244cc2c44c..bd057a62d2ff0 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiRestOperations.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/ApiRestOperations.cs
@@ -436,9 +436,9 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG
request.Headers.Add("If-Match", ifMatch);
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Content-Type", "application/json");
- var content0 = new Utf8JsonRequestContent();
- content0.JsonWriter.WriteObjectValue(patch);
- request.Content = content0;
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(patch);
+ request.Content = content;
_userAgent.Apply(message);
return message;
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayRestOperations.cs
index 355d6f5699388..3f60c9df35b2c 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayRestOperations.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GatewayRestOperations.cs
@@ -778,9 +778,9 @@ internal HttpMessage CreateGenerateTokenRequest(string subscriptionId, string re
request.Uri = uri;
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Content-Type", "application/json");
- var content0 = new Utf8JsonRequestContent();
- content0.JsonWriter.WriteObjectValue(gatewayTokenRequestContract);
- request.Content = content0;
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(gatewayTokenRequestContract);
+ request.Content = content;
_userAgent.Apply(message);
return message;
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GroupRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GroupRestOperations.cs
index b5832ac79159c..5070050e4a766 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GroupRestOperations.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/GroupRestOperations.cs
@@ -432,9 +432,9 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG
request.Headers.Add("If-Match", ifMatch);
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Content-Type", "application/json");
- var content0 = new Utf8JsonRequestContent();
- content0.JsonWriter.WriteObjectValue(patch);
- request.Content = content0;
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(patch);
+ request.Content = content;
_userAgent.Apply(message);
return message;
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/IdentityProviderRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/IdentityProviderRestOperations.cs
index 302507c785638..7647ce8b6833f 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/IdentityProviderRestOperations.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/IdentityProviderRestOperations.cs
@@ -408,9 +408,9 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG
request.Headers.Add("If-Match", ifMatch);
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Content-Type", "application/json");
- var content0 = new Utf8JsonRequestContent();
- content0.JsonWriter.WriteObjectValue(patch);
- request.Content = content0;
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(patch);
+ request.Content = content;
_userAgent.Apply(message);
return message;
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NamedValueRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NamedValueRestOperations.cs
index ed3eceab7459a..8bb68dfb129f6 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NamedValueRestOperations.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/NamedValueRestOperations.cs
@@ -430,9 +430,9 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG
request.Headers.Add("If-Match", ifMatch);
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Content-Type", "application/json");
- var content0 = new Utf8JsonRequestContent();
- content0.JsonWriter.WriteObjectValue(patch);
- request.Content = content0;
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(patch);
+ request.Content = content;
_userAgent.Apply(message);
return message;
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/SubscriptionRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/SubscriptionRestOperations.cs
index 2c06883adb3f3..a446545729878 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/SubscriptionRestOperations.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/SubscriptionRestOperations.cs
@@ -460,9 +460,9 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG
request.Headers.Add("If-Match", ifMatch);
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Content-Type", "application/json");
- var content0 = new Utf8JsonRequestContent();
- content0.JsonWriter.WriteObjectValue(patch);
- request.Content = content0;
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(patch);
+ request.Content = content;
_userAgent.Apply(message);
return message;
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantAccessRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantAccessRestOperations.cs
index 801b692fb6cf4..c179c8744ea94 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantAccessRestOperations.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/TenantAccessRestOperations.cs
@@ -411,9 +411,9 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG
request.Headers.Add("If-Match", ifMatch);
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Content-Type", "application/json");
- var content0 = new Utf8JsonRequestContent();
- content0.JsonWriter.WriteObjectValue(patch);
- request.Content = content0;
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(patch);
+ request.Content = content;
_userAgent.Apply(message);
return message;
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserRestOperations.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserRestOperations.cs
index ea37c3c712b0f..a4aebe9f8a5e0 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserRestOperations.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/RestOperations/UserRestOperations.cs
@@ -444,9 +444,9 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG
request.Headers.Add("If-Match", ifMatch);
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Content-Type", "application/json");
- var content0 = new Utf8JsonRequestContent();
- content0.JsonWriter.WriteObjectValue(patch);
- request.Content = content0;
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(patch);
+ request.Content = content;
_userAgent.Apply(message);
return message;
}
diff --git a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VirtualMachinesRestOperations.cs b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VirtualMachinesRestOperations.cs
index b38728e52fbb4..55758abf267f7 100644
--- a/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VirtualMachinesRestOperations.cs
+++ b/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/Generated/RestOperations/VirtualMachinesRestOperations.cs
@@ -603,9 +603,9 @@ internal HttpMessage CreateCreateCheckpointRequest(string subscriptionId, string
if (body != null)
{
request.Headers.Add("Content-Type", "application/json");
- var content0 = new Utf8JsonRequestContent();
- content0.JsonWriter.WriteObjectValue(body);
- request.Content = content0;
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(body);
+ request.Content = content;
}
_userAgent.Apply(message);
return message;
@@ -683,9 +683,9 @@ internal HttpMessage CreateDeleteCheckpointRequest(string subscriptionId, string
if (body != null)
{
request.Headers.Add("Content-Type", "application/json");
- var content0 = new Utf8JsonRequestContent();
- content0.JsonWriter.WriteObjectValue(body);
- request.Content = content0;
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(body);
+ request.Content = content;
}
_userAgent.Apply(message);
return message;
@@ -763,9 +763,9 @@ internal HttpMessage CreateRestoreCheckpointRequest(string subscriptionId, strin
if (body != null)
{
request.Headers.Add("Content-Type", "application/json");
- var content0 = new Utf8JsonRequestContent();
- content0.JsonWriter.WriteObjectValue(body);
- request.Content = content0;
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(body);
+ request.Content = content;
}
_userAgent.Apply(message);
return message;
diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentResource.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentResource.cs
index 80dd30be18c92..c3f748f02dc6e 100644
--- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentResource.cs
+++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentResource.cs
@@ -95,8 +95,8 @@ internal static void ValidateResourceId(ResourceIdentifier id)
/// The cancellation token to use.
public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleAssignmentClientDiagnostics.CreateScope("RoleAssignmentResource.Get");
- scope0.Start();
+ using var scope = _roleAssignmentClientDiagnostics.CreateScope("RoleAssignmentResource.Get");
+ scope.Start();
try
{
var response = await _roleAssignmentRestClient.GetAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false);
@@ -106,7 +106,7 @@ public virtual async Task> GetAsync(Cancellatio
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -119,8 +119,8 @@ public virtual async Task> GetAsync(Cancellatio
/// The cancellation token to use.
public virtual Response Get(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleAssignmentClientDiagnostics.CreateScope("RoleAssignmentResource.Get");
- scope0.Start();
+ using var scope = _roleAssignmentClientDiagnostics.CreateScope("RoleAssignmentResource.Get");
+ scope.Start();
try
{
var response = _roleAssignmentRestClient.Get(Id.Parent, Id.Name, cancellationToken);
@@ -130,7 +130,7 @@ public virtual Response Get(CancellationToken cancellati
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -144,8 +144,8 @@ public virtual Response Get(CancellationToken cancellati
/// The cancellation token to use.
public virtual async Task> DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default)
{
- using var scope0 = _roleAssignmentClientDiagnostics.CreateScope("RoleAssignmentResource.Delete");
- scope0.Start();
+ using var scope = _roleAssignmentClientDiagnostics.CreateScope("RoleAssignmentResource.Delete");
+ scope.Start();
try
{
var response = await _roleAssignmentRestClient.DeleteAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false);
@@ -156,7 +156,7 @@ public virtual async Task> DeleteAsync(Wait
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -170,8 +170,8 @@ public virtual async Task> DeleteAsync(Wait
/// The cancellation token to use.
public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default)
{
- using var scope0 = _roleAssignmentClientDiagnostics.CreateScope("RoleAssignmentResource.Delete");
- scope0.Start();
+ using var scope = _roleAssignmentClientDiagnostics.CreateScope("RoleAssignmentResource.Delete");
+ scope.Start();
try
{
var response = _roleAssignmentRestClient.Delete(Id.Parent, Id.Name, cancellationToken);
@@ -182,7 +182,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil,
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -200,8 +200,8 @@ public virtual async Task> UpdateAsync(Wait
{
Argument.AssertNotNull(content, nameof(content));
- using var scope0 = _roleAssignmentClientDiagnostics.CreateScope("RoleAssignmentResource.Update");
- scope0.Start();
+ using var scope = _roleAssignmentClientDiagnostics.CreateScope("RoleAssignmentResource.Update");
+ scope.Start();
try
{
var response = await _roleAssignmentRestClient.CreateAsync(Id.Parent, Id.Name, content, cancellationToken).ConfigureAwait(false);
@@ -212,7 +212,7 @@ public virtual async Task> UpdateAsync(Wait
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -230,8 +230,8 @@ public virtual ArmOperation Update(WaitUntil waitUntil,
{
Argument.AssertNotNull(content, nameof(content));
- using var scope0 = _roleAssignmentClientDiagnostics.CreateScope("RoleAssignmentResource.Update");
- scope0.Start();
+ using var scope = _roleAssignmentClientDiagnostics.CreateScope("RoleAssignmentResource.Update");
+ scope.Start();
try
{
var response = _roleAssignmentRestClient.Create(Id.Parent, Id.Name, content, cancellationToken);
@@ -242,7 +242,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil,
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleInstanceResource.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleInstanceResource.cs
index 94cccafb14f5b..a6b3ce2bfdd31 100644
--- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleInstanceResource.cs
+++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleInstanceResource.cs
@@ -94,8 +94,8 @@ internal static void ValidateResourceId(ResourceIdentifier id)
/// The cancellation token to use.
public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleAssignmentScheduleInstanceClientDiagnostics.CreateScope("RoleAssignmentScheduleInstanceResource.Get");
- scope0.Start();
+ using var scope = _roleAssignmentScheduleInstanceClientDiagnostics.CreateScope("RoleAssignmentScheduleInstanceResource.Get");
+ scope.Start();
try
{
var response = await _roleAssignmentScheduleInstanceRestClient.GetAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false);
@@ -105,7 +105,7 @@ public virtual async Task> GetA
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -118,8 +118,8 @@ public virtual async Task> GetA
/// The cancellation token to use.
public virtual Response Get(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleAssignmentScheduleInstanceClientDiagnostics.CreateScope("RoleAssignmentScheduleInstanceResource.Get");
- scope0.Start();
+ using var scope = _roleAssignmentScheduleInstanceClientDiagnostics.CreateScope("RoleAssignmentScheduleInstanceResource.Get");
+ scope.Start();
try
{
var response = _roleAssignmentScheduleInstanceRestClient.Get(Id.Parent, Id.Name, cancellationToken);
@@ -129,7 +129,7 @@ public virtual Response Get(Cancellation
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleRequestResource.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleRequestResource.cs
index 6054f053a3d14..8271634bac35b 100644
--- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleRequestResource.cs
+++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleRequestResource.cs
@@ -94,8 +94,8 @@ internal static void ValidateResourceId(ResourceIdentifier id)
/// The cancellation token to use.
public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleAssignmentScheduleRequestClientDiagnostics.CreateScope("RoleAssignmentScheduleRequestResource.Get");
- scope0.Start();
+ using var scope = _roleAssignmentScheduleRequestClientDiagnostics.CreateScope("RoleAssignmentScheduleRequestResource.Get");
+ scope.Start();
try
{
var response = await _roleAssignmentScheduleRequestRestClient.GetAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false);
@@ -105,7 +105,7 @@ public virtual async Task> GetAs
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -118,8 +118,8 @@ public virtual async Task> GetAs
/// The cancellation token to use.
public virtual Response Get(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleAssignmentScheduleRequestClientDiagnostics.CreateScope("RoleAssignmentScheduleRequestResource.Get");
- scope0.Start();
+ using var scope = _roleAssignmentScheduleRequestClientDiagnostics.CreateScope("RoleAssignmentScheduleRequestResource.Get");
+ scope.Start();
try
{
var response = _roleAssignmentScheduleRequestRestClient.Get(Id.Parent, Id.Name, cancellationToken);
@@ -129,7 +129,7 @@ public virtual Response Get(CancellationT
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -147,8 +147,8 @@ public virtual async Task> U
{
Argument.AssertNotNull(data, nameof(data));
- using var scope0 = _roleAssignmentScheduleRequestClientDiagnostics.CreateScope("RoleAssignmentScheduleRequestResource.Update");
- scope0.Start();
+ using var scope = _roleAssignmentScheduleRequestClientDiagnostics.CreateScope("RoleAssignmentScheduleRequestResource.Update");
+ scope.Start();
try
{
var response = await _roleAssignmentScheduleRequestRestClient.CreateAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false);
@@ -159,7 +159,7 @@ public virtual async Task> U
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -177,8 +177,8 @@ public virtual ArmOperation Update(WaitUn
{
Argument.AssertNotNull(data, nameof(data));
- using var scope0 = _roleAssignmentScheduleRequestClientDiagnostics.CreateScope("RoleAssignmentScheduleRequestResource.Update");
- scope0.Start();
+ using var scope = _roleAssignmentScheduleRequestClientDiagnostics.CreateScope("RoleAssignmentScheduleRequestResource.Update");
+ scope.Start();
try
{
var response = _roleAssignmentScheduleRequestRestClient.Create(Id.Parent, Id.Name, data, cancellationToken);
@@ -189,7 +189,7 @@ public virtual ArmOperation Update(WaitUn
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -202,8 +202,8 @@ public virtual ArmOperation Update(WaitUn
/// The cancellation token to use.
public virtual async Task CancelAsync(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleAssignmentScheduleRequestClientDiagnostics.CreateScope("RoleAssignmentScheduleRequestResource.Cancel");
- scope0.Start();
+ using var scope = _roleAssignmentScheduleRequestClientDiagnostics.CreateScope("RoleAssignmentScheduleRequestResource.Cancel");
+ scope.Start();
try
{
var response = await _roleAssignmentScheduleRequestRestClient.CancelAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false);
@@ -211,7 +211,7 @@ public virtual async Task CancelAsync(CancellationToken cancellationTo
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -224,8 +224,8 @@ public virtual async Task CancelAsync(CancellationToken cancellationTo
/// The cancellation token to use.
public virtual Response Cancel(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleAssignmentScheduleRequestClientDiagnostics.CreateScope("RoleAssignmentScheduleRequestResource.Cancel");
- scope0.Start();
+ using var scope = _roleAssignmentScheduleRequestClientDiagnostics.CreateScope("RoleAssignmentScheduleRequestResource.Cancel");
+ scope.Start();
try
{
var response = _roleAssignmentScheduleRequestRestClient.Cancel(Id.Parent, Id.Name, cancellationToken);
@@ -233,7 +233,7 @@ public virtual Response Cancel(CancellationToken cancellationToken = default)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -250,8 +250,8 @@ public virtual async Task> Valid
{
Argument.AssertNotNull(data, nameof(data));
- using var scope0 = _roleAssignmentScheduleRequestClientDiagnostics.CreateScope("RoleAssignmentScheduleRequestResource.Validate");
- scope0.Start();
+ using var scope = _roleAssignmentScheduleRequestClientDiagnostics.CreateScope("RoleAssignmentScheduleRequestResource.Validate");
+ scope.Start();
try
{
var response = await _roleAssignmentScheduleRequestRestClient.ValidateAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false);
@@ -259,7 +259,7 @@ public virtual async Task> Valid
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -276,8 +276,8 @@ public virtual Response Validate(RoleAssi
{
Argument.AssertNotNull(data, nameof(data));
- using var scope0 = _roleAssignmentScheduleRequestClientDiagnostics.CreateScope("RoleAssignmentScheduleRequestResource.Validate");
- scope0.Start();
+ using var scope = _roleAssignmentScheduleRequestClientDiagnostics.CreateScope("RoleAssignmentScheduleRequestResource.Validate");
+ scope.Start();
try
{
var response = _roleAssignmentScheduleRequestRestClient.Validate(Id.Parent, Id.Name, data, cancellationToken);
@@ -285,7 +285,7 @@ public virtual Response Validate(RoleAssi
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleResource.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleResource.cs
index 089a749f74468..0e69aa2e95459 100644
--- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleResource.cs
+++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleAssignmentScheduleResource.cs
@@ -94,8 +94,8 @@ internal static void ValidateResourceId(ResourceIdentifier id)
/// The cancellation token to use.
public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleAssignmentScheduleClientDiagnostics.CreateScope("RoleAssignmentScheduleResource.Get");
- scope0.Start();
+ using var scope = _roleAssignmentScheduleClientDiagnostics.CreateScope("RoleAssignmentScheduleResource.Get");
+ scope.Start();
try
{
var response = await _roleAssignmentScheduleRestClient.GetAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false);
@@ -105,7 +105,7 @@ public virtual async Task> GetAsync(Can
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -118,8 +118,8 @@ public virtual async Task> GetAsync(Can
/// The cancellation token to use.
public virtual Response Get(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleAssignmentScheduleClientDiagnostics.CreateScope("RoleAssignmentScheduleResource.Get");
- scope0.Start();
+ using var scope = _roleAssignmentScheduleClientDiagnostics.CreateScope("RoleAssignmentScheduleResource.Get");
+ scope.Start();
try
{
var response = _roleAssignmentScheduleRestClient.Get(Id.Parent, Id.Name, cancellationToken);
@@ -129,7 +129,7 @@ public virtual Response Get(CancellationToken ca
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleDefinitionResource.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleDefinitionResource.cs
index d3fcd82ed3746..3fe8f28afd191 100644
--- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleDefinitionResource.cs
+++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleDefinitionResource.cs
@@ -94,8 +94,8 @@ internal static void ValidateResourceId(ResourceIdentifier id)
/// The cancellation token to use.
public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleDefinitionClientDiagnostics.CreateScope("RoleDefinitionResource.Get");
- scope0.Start();
+ using var scope = _roleDefinitionClientDiagnostics.CreateScope("RoleDefinitionResource.Get");
+ scope.Start();
try
{
var response = await _roleDefinitionRestClient.GetAsync(Id.Parent, new ResourceIdentifier(Id.Name), cancellationToken).ConfigureAwait(false);
@@ -105,7 +105,7 @@ public virtual async Task> GetAsync(Cancellatio
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -118,8 +118,8 @@ public virtual async Task> GetAsync(Cancellatio
/// The cancellation token to use.
public virtual Response Get(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleDefinitionClientDiagnostics.CreateScope("RoleDefinitionResource.Get");
- scope0.Start();
+ using var scope = _roleDefinitionClientDiagnostics.CreateScope("RoleDefinitionResource.Get");
+ scope.Start();
try
{
var response = _roleDefinitionRestClient.Get(Id.Parent, new ResourceIdentifier(Id.Name), cancellationToken);
@@ -129,7 +129,7 @@ public virtual Response Get(CancellationToken cancellati
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -143,8 +143,8 @@ public virtual Response Get(CancellationToken cancellati
/// The cancellation token to use.
public virtual async Task> DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default)
{
- using var scope0 = _roleDefinitionClientDiagnostics.CreateScope("RoleDefinitionResource.Delete");
- scope0.Start();
+ using var scope = _roleDefinitionClientDiagnostics.CreateScope("RoleDefinitionResource.Delete");
+ scope.Start();
try
{
var response = await _roleDefinitionRestClient.DeleteAsync(Id.Parent, new ResourceIdentifier(Id.Name), cancellationToken).ConfigureAwait(false);
@@ -155,7 +155,7 @@ public virtual async Task> DeleteAsync(Wait
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -169,8 +169,8 @@ public virtual async Task> DeleteAsync(Wait
/// The cancellation token to use.
public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default)
{
- using var scope0 = _roleDefinitionClientDiagnostics.CreateScope("RoleDefinitionResource.Delete");
- scope0.Start();
+ using var scope = _roleDefinitionClientDiagnostics.CreateScope("RoleDefinitionResource.Delete");
+ scope.Start();
try
{
var response = _roleDefinitionRestClient.Delete(Id.Parent, new ResourceIdentifier(Id.Name), cancellationToken);
@@ -181,7 +181,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil,
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -199,8 +199,8 @@ public virtual async Task> UpdateAsync(Wait
{
Argument.AssertNotNull(data, nameof(data));
- using var scope0 = _roleDefinitionClientDiagnostics.CreateScope("RoleDefinitionResource.Update");
- scope0.Start();
+ using var scope = _roleDefinitionClientDiagnostics.CreateScope("RoleDefinitionResource.Update");
+ scope.Start();
try
{
var response = await _roleDefinitionRestClient.CreateOrUpdateAsync(Id.Parent, new ResourceIdentifier(Id.Name), data, cancellationToken).ConfigureAwait(false);
@@ -211,7 +211,7 @@ public virtual async Task> UpdateAsync(Wait
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -229,8 +229,8 @@ public virtual ArmOperation Update(WaitUntil waitUntil,
{
Argument.AssertNotNull(data, nameof(data));
- using var scope0 = _roleDefinitionClientDiagnostics.CreateScope("RoleDefinitionResource.Update");
- scope0.Start();
+ using var scope = _roleDefinitionClientDiagnostics.CreateScope("RoleDefinitionResource.Update");
+ scope.Start();
try
{
var response = _roleDefinitionRestClient.CreateOrUpdate(Id.Parent, new ResourceIdentifier(Id.Name), data, cancellationToken);
@@ -241,7 +241,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil,
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleInstanceResource.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleInstanceResource.cs
index 99017693d1f9a..bca39f245cf52 100644
--- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleInstanceResource.cs
+++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleInstanceResource.cs
@@ -94,8 +94,8 @@ internal static void ValidateResourceId(ResourceIdentifier id)
/// The cancellation token to use.
public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleEligibilityScheduleInstanceClientDiagnostics.CreateScope("RoleEligibilityScheduleInstanceResource.Get");
- scope0.Start();
+ using var scope = _roleEligibilityScheduleInstanceClientDiagnostics.CreateScope("RoleEligibilityScheduleInstanceResource.Get");
+ scope.Start();
try
{
var response = await _roleEligibilityScheduleInstanceRestClient.GetAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false);
@@ -105,7 +105,7 @@ public virtual async Task> Get
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -118,8 +118,8 @@ public virtual async Task> Get
/// The cancellation token to use.
public virtual Response Get(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleEligibilityScheduleInstanceClientDiagnostics.CreateScope("RoleEligibilityScheduleInstanceResource.Get");
- scope0.Start();
+ using var scope = _roleEligibilityScheduleInstanceClientDiagnostics.CreateScope("RoleEligibilityScheduleInstanceResource.Get");
+ scope.Start();
try
{
var response = _roleEligibilityScheduleInstanceRestClient.Get(Id.Parent, Id.Name, cancellationToken);
@@ -129,7 +129,7 @@ public virtual Response Get(Cancellatio
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleRequestResource.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleRequestResource.cs
index 6cb788981aaf1..c9de0c3ad78a3 100644
--- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleRequestResource.cs
+++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleRequestResource.cs
@@ -94,8 +94,8 @@ internal static void ValidateResourceId(ResourceIdentifier id)
/// The cancellation token to use.
public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleEligibilityScheduleRequestClientDiagnostics.CreateScope("RoleEligibilityScheduleRequestResource.Get");
- scope0.Start();
+ using var scope = _roleEligibilityScheduleRequestClientDiagnostics.CreateScope("RoleEligibilityScheduleRequestResource.Get");
+ scope.Start();
try
{
var response = await _roleEligibilityScheduleRequestRestClient.GetAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false);
@@ -105,7 +105,7 @@ public virtual async Task> GetA
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -118,8 +118,8 @@ public virtual async Task> GetA
/// The cancellation token to use.
public virtual Response Get(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleEligibilityScheduleRequestClientDiagnostics.CreateScope("RoleEligibilityScheduleRequestResource.Get");
- scope0.Start();
+ using var scope = _roleEligibilityScheduleRequestClientDiagnostics.CreateScope("RoleEligibilityScheduleRequestResource.Get");
+ scope.Start();
try
{
var response = _roleEligibilityScheduleRequestRestClient.Get(Id.Parent, Id.Name, cancellationToken);
@@ -129,7 +129,7 @@ public virtual Response Get(Cancellation
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -147,8 +147,8 @@ public virtual async Task>
{
Argument.AssertNotNull(data, nameof(data));
- using var scope0 = _roleEligibilityScheduleRequestClientDiagnostics.CreateScope("RoleEligibilityScheduleRequestResource.Update");
- scope0.Start();
+ using var scope = _roleEligibilityScheduleRequestClientDiagnostics.CreateScope("RoleEligibilityScheduleRequestResource.Update");
+ scope.Start();
try
{
var response = await _roleEligibilityScheduleRequestRestClient.CreateAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false);
@@ -159,7 +159,7 @@ public virtual async Task>
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -177,8 +177,8 @@ public virtual ArmOperation Update(WaitU
{
Argument.AssertNotNull(data, nameof(data));
- using var scope0 = _roleEligibilityScheduleRequestClientDiagnostics.CreateScope("RoleEligibilityScheduleRequestResource.Update");
- scope0.Start();
+ using var scope = _roleEligibilityScheduleRequestClientDiagnostics.CreateScope("RoleEligibilityScheduleRequestResource.Update");
+ scope.Start();
try
{
var response = _roleEligibilityScheduleRequestRestClient.Create(Id.Parent, Id.Name, data, cancellationToken);
@@ -189,7 +189,7 @@ public virtual ArmOperation Update(WaitU
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -202,8 +202,8 @@ public virtual ArmOperation Update(WaitU
/// The cancellation token to use.
public virtual async Task CancelAsync(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleEligibilityScheduleRequestClientDiagnostics.CreateScope("RoleEligibilityScheduleRequestResource.Cancel");
- scope0.Start();
+ using var scope = _roleEligibilityScheduleRequestClientDiagnostics.CreateScope("RoleEligibilityScheduleRequestResource.Cancel");
+ scope.Start();
try
{
var response = await _roleEligibilityScheduleRequestRestClient.CancelAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false);
@@ -211,7 +211,7 @@ public virtual async Task CancelAsync(CancellationToken cancellationTo
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -224,8 +224,8 @@ public virtual async Task CancelAsync(CancellationToken cancellationTo
/// The cancellation token to use.
public virtual Response Cancel(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleEligibilityScheduleRequestClientDiagnostics.CreateScope("RoleEligibilityScheduleRequestResource.Cancel");
- scope0.Start();
+ using var scope = _roleEligibilityScheduleRequestClientDiagnostics.CreateScope("RoleEligibilityScheduleRequestResource.Cancel");
+ scope.Start();
try
{
var response = _roleEligibilityScheduleRequestRestClient.Cancel(Id.Parent, Id.Name, cancellationToken);
@@ -233,7 +233,7 @@ public virtual Response Cancel(CancellationToken cancellationToken = default)
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -250,8 +250,8 @@ public virtual async Task> Vali
{
Argument.AssertNotNull(data, nameof(data));
- using var scope0 = _roleEligibilityScheduleRequestClientDiagnostics.CreateScope("RoleEligibilityScheduleRequestResource.Validate");
- scope0.Start();
+ using var scope = _roleEligibilityScheduleRequestClientDiagnostics.CreateScope("RoleEligibilityScheduleRequestResource.Validate");
+ scope.Start();
try
{
var response = await _roleEligibilityScheduleRequestRestClient.ValidateAsync(Id.Parent, Id.Name, data, cancellationToken).ConfigureAwait(false);
@@ -259,7 +259,7 @@ public virtual async Task> Vali
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -276,8 +276,8 @@ public virtual Response Validate(RoleEli
{
Argument.AssertNotNull(data, nameof(data));
- using var scope0 = _roleEligibilityScheduleRequestClientDiagnostics.CreateScope("RoleEligibilityScheduleRequestResource.Validate");
- scope0.Start();
+ using var scope = _roleEligibilityScheduleRequestClientDiagnostics.CreateScope("RoleEligibilityScheduleRequestResource.Validate");
+ scope.Start();
try
{
var response = _roleEligibilityScheduleRequestRestClient.Validate(Id.Parent, Id.Name, data, cancellationToken);
@@ -285,7 +285,7 @@ public virtual Response Validate(RoleEli
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleResource.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleResource.cs
index 3a7511c55d6d6..13fe9098f898b 100644
--- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleResource.cs
+++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleEligibilityScheduleResource.cs
@@ -94,8 +94,8 @@ internal static void ValidateResourceId(ResourceIdentifier id)
/// The cancellation token to use.
public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleEligibilityScheduleClientDiagnostics.CreateScope("RoleEligibilityScheduleResource.Get");
- scope0.Start();
+ using var scope = _roleEligibilityScheduleClientDiagnostics.CreateScope("RoleEligibilityScheduleResource.Get");
+ scope.Start();
try
{
var response = await _roleEligibilityScheduleRestClient.GetAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false);
@@ -105,7 +105,7 @@ public virtual async Task> GetAsync(Ca
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
@@ -118,8 +118,8 @@ public virtual async Task> GetAsync(Ca
/// The cancellation token to use.
public virtual Response Get(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleEligibilityScheduleClientDiagnostics.CreateScope("RoleEligibilityScheduleResource.Get");
- scope0.Start();
+ using var scope = _roleEligibilityScheduleClientDiagnostics.CreateScope("RoleEligibilityScheduleResource.Get");
+ scope.Start();
try
{
var response = _roleEligibilityScheduleRestClient.Get(Id.Parent, Id.Name, cancellationToken);
@@ -129,7 +129,7 @@ public virtual Response Get(CancellationToken c
}
catch (Exception e)
{
- scope0.Failed(e);
+ scope.Failed(e);
throw;
}
}
diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleManagementPolicyAssignmentResource.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleManagementPolicyAssignmentResource.cs
index 8c1d124fad468..9cce36e7d1472 100644
--- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleManagementPolicyAssignmentResource.cs
+++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/RoleManagementPolicyAssignmentResource.cs
@@ -94,8 +94,8 @@ internal static void ValidateResourceId(ResourceIdentifier id)
/// The cancellation token to use.
public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
{
- using var scope0 = _roleManagementPolicyAssignmentClientDiagnostics.CreateScope("RoleManagementPolicyAssignmentResource.Get");
- scope0.Start();
+ using var scope = _roleManagementPolicyAssignmentClientDiagnostics.CreateScope("RoleManagementPolicyAssignmentResource.Get");
+ scope.Start();
try
{
var response = await _roleManagementPolicyAssignmentRestClient.GetAsync(Id.Parent, Id.Name, cancellationToken).ConfigureAwait(false);
@@ -105,7 +105,7 @@ public virtual async Task