Skip to content

Commit fff8899

Browse files
azure-powershell-botazurepowershell
andauthored
Sync tools folder from main branch to generation branch (#24867)
Co-authored-by: azurepowershell <[email protected]>
1 parent 957fa8c commit fff8899

File tree

8 files changed

+186
-5
lines changed

8 files changed

+186
-5
lines changed

.azure-pipelines/util/analyze-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ steps:
6565

6666
- template: publish-artifacts-steps.yml
6767
parameters:
68-
artifactName: analyze-${{ parameters.testFramework }}
68+
artifactName: analyze-${{ parameters.testFramework }}-$(System.JobAttempt)

.azure-pipelines/util/test-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ steps:
8787

8888
- template: publish-artifacts-steps.yml
8989
parameters:
90-
artifactName: test-${{ parameters.testFramework }}-${{ parameters.osName }}
90+
artifactName: test-${{ parameters.testFramework }}-${{ parameters.osName }}-$(System.JobAttempt)

src/shared/ConfigKeys.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ internal static class ConfigKeys
3737
public const string CheckForUpgrade = "CheckForUpgrade";
3838
public const string EnvCheckForUpgrade = "AZUREPS_CHECK_FOR_UPGRADE";
3939
public const string DisplaySecretsWarning = "DisplaySecretsWarning";
40+
public const string LoginExperienceV2 = "LoginExperienceV2";
4041
}
4142
}

tools/Az/Az.psd1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.19.0'; },
121121
@{ModuleName = 'Az.RedisCache'; RequiredVersion = '1.9.1'; },
122122
@{ModuleName = 'Az.RedisEnterpriseCache'; RequiredVersion = '1.2.1'; },
123123
@{ModuleName = 'Az.Relay'; RequiredVersion = '2.0.1'; },
124+
@{ModuleName = 'Az.ResourceGraph'; RequiredVersion = '0.13.1'; },
124125
@{ModuleName = 'Az.ResourceMover'; RequiredVersion = '1.2.1'; },
125126
@{ModuleName = 'Az.Resources'; RequiredVersion = '6.16.2'; },
126127
@{ModuleName = 'Az.Security'; RequiredVersion = '1.6.2'; },

tools/Gen2Master/MoveFromGeneration2Master.ps1

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ Function Move-Generation2Master {
7474
Copy-Template -SourceName Module.psd1 -DestPath $DestPath\$ModuleName -DestName "Az.$ModuleName.psd1" -ModuleName $ModuleName
7575
$Psd1Metadata = Import-LocalizedData -BaseDirectory "$PSScriptRoot/Templates" -FileName "Module.psd1"
7676
}
77+
$moduleVersion = $Psd1Metadata.ModuleVersion
7778
foreach ($submoduleDir in $submoduleDirs) {
7879
$psd1File = Get-ChildItem -Filter *.psd1 -File -Path $submoduleDir.FullName
7980
write-host ("psd1 file name {0}" -f $psd1File.Name)
@@ -110,8 +111,6 @@ Function Move-Generation2Master {
110111
Copy-Item -Path $SourceItem -Destination (Join-Path -Path $DestPath -ChildPath $submoduleDir.Name)
111112
}
112113

113-
#copy generated docs to help folder
114-
115114
# Update psd1
116115
$SubModulePsd1MetaData = Import-LocalizedData -BaseDirectory (Join-Path -Path $SourcePath -ChildPath $submoduleDir.Name) -FileName "Az.$submoduleName.psd1"
117116

@@ -138,6 +137,15 @@ Function Move-Generation2Master {
138137

139138
# Generate csproj file and add the dependency in the solution file
140139
Copy-Template -SourceName Az.ModuleName.csproj -DestPath (Join-Path $DestPath $submoduleDir.Name) -DestName "Az.$submoduleName.csproj" -RootModuleName $ModuleName -ModuleName $submoduleName -ModuleFolder $submoduleDir.Name
140+
141+
# Copy the assemblyinfo file
142+
$assemblyInfoPath = Join-Path $DestPath $ModuleName 'Properties' 'AssemblyInfo.cs'
143+
Copy-Template -SourceName AssemblyInfo.cs -DestPath "$DestPath\$ModuleName\Properties" -DestName AssemblyInfo.cs -ModuleName $submoduleName
144+
$assemblyInfo = Get-Content -Path $assemblyInfoPath
145+
If ($assemblyInfo -Match "0.1.0") {
146+
$assemblyInfo = $assemblyInfo -replace '0.1.0', $moduleVersion
147+
}
148+
$assemblyInfo | Set-Content $assemblyInfoPath -force
141149
}
142150

143151
$slnFilePath = "$DestPath\$ModuleName.sln"
@@ -165,6 +173,7 @@ Function Move-Generation2Master {
165173
$Psd1Metadata.NestedModules = Unique-PathList $Psd1Metadata.NestedModules
166174

167175
New-ModuleManifest -Path $DestPsd1Path @Psd1Metadata
176+
168177
# update module page
169178
dotnet build $slnFilePath
170179
# start a job to update markdown help module, since we can not uninstall a module in the same process.

tools/StaticAnalysis/Exceptions/Az.Resources/BreakingChangeIssues.csv

Lines changed: 169 additions & 0 deletions
Large diffs are not rendered by default.

tools/StaticAnalysis/GeneratedSdkAnalyzer/SDKGeneratedCodeVerify.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ try {
123123
npx autorest --use:@autorest/powershell@4.x --tag=package-features-2021-07
124124
npx autorest --use:@autorest/powershell@4.x --tag=package-deploymentscripts-2020-10
125125
npx autorest --use:@autorest/powershell@4.x --tag=package-resources-2021-04
126-
npx autorest --use:@autorest/powershell@4.x --tag=package-deploymentstacks-2022-08-preview
126+
npx autorest --use:@autorest/powershell@4.x --tag=package-deploymentstacks-2024-03
127127
npx autorest --use:@autorest/powershell@4.x --tag=package-templatespecs-2021-05
128128
}
129129
else
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"Module","Minimal Version"
22
"Az.DnsResolver","1.0.0"
3+
"Az.ResourceGraph","1.0.0"

0 commit comments

Comments
 (0)