Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge main to branch #18815

Merged
merged 169 commits into from
Jun 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
169 commits
Select commit Hold shift + click to select a range
10ae1dc
[Aks]Update the logic for `-NodeImageOnly` (#18323)
wyunchi-ms May 31, 2022
0f9de7a
[Aks]Added property PowerState for the output of Get-AzAksCluster (#1…
wyunchi-ms May 31, 2022
39d81ed
[ApplicationInsights] Fixed parameters for Set-AzApplicationInsightsD…
VeryEarly May 31, 2022
344958f
Moved Aladdin example note outside of code block (#18357)
mikefrobbins Jun 1, 2022
180e059
Provide detailed description for parameter CertificateString in Impor…
BethanyZhou Jun 1, 2022
9bf46d4
Update Enable-AzRecoveryServicesBackupProtection.md (#18364)
AbhishekMallick-MS Jun 1, 2022
9a3c018
Move ADDomainServices to main (#18366)
BethanyZhou Jun 2, 2022
304e15c
Corrected broken links from build warnings (#18380)
mikefrobbins Jun 2, 2022
e5911da
Add ManagedIdentity support for Aks (#18385)
wyunchi-ms Jun 6, 2022
ec4bc31
Corrected broken links (#18395)
mikefrobbins Jun 6, 2022
13e3a8f
Add TestRunner and replace TestBase (#18399)
CaptainFanZzz Jun 6, 2022
90505e8
{ApiManagement} | Add a sample to update an existing API (#18347)
RakeshMohanMSFT Jun 7, 2022
6dcea05
OOB release for GuestConfiguration/KubernetesConfiguration/SackHCI (#…
VeryEarly Jun 7, 2022
ba3b6c1
[DataFactory]Updated ADF .Net SDK version to 6.2.0 (#18327)
Jingshu923 Jun 7, 2022
22377b6
handle same env var name but different casing (#18312)
isra-fel Jun 7, 2022
2f0fb7d
Add StorageSyncTestRunner to replace TestController (#18351)
ziyuezh576 Jun 7, 2022
2acd0a3
Add SynapseTestRunner to replace SynapseTestBase (#18325)
ziyuezh576 Jun 7, 2022
31cb35a
Edit ServiceBusTestRunner and remove TestController (#18404)
CaptainFanZzz Jun 7, 2022
8be1b24
[KeyVault] Supported creating/updating key with release policy in a M…
BethanyZhou Jun 7, 2022
258afef
[BotService] Migrate from generation branch. (#18397)
wyunchi-ms Jun 7, 2022
ee47c0a
fix typo beging -> begin in 3 files (#18391)
NaridaL Jun 8, 2022
0302f7c
Move ContainerInstance to main (#18428)
VeryEarly Jun 9, 2022
386cc46
[SQL] Check if DB is created by log replay before dropping it (#18409)
ostojicb Jun 9, 2022
e040dbe
[Doc] Internal guide for using config framework (#18443)
isra-fel Jun 9, 2022
4fc53c7
autorest powershell docker file into auzre powershell repo (#18442)
dolauli Jun 9, 2022
bdb69d5
Fix Az.Aks Xml comments (#18361)
v-yuzhichen Jun 9, 2022
0297e42
Fix Az.Blueprint XML Comments (#18387)
v-yuzhichen Jun 9, 2022
d56abfc
Fix Az.MachineLearning XML Comments (#18450)
v-yuzhichen Jun 9, 2022
956bb94
Fix Az.LogicApp XML Comments (#18447)
v-yuzhichen Jun 9, 2022
d87ccc5
fix for issue #18398 (#18452)
CaptainFanZzz Jun 9, 2022
d770913
[ConnectedMachine] Move ConnectedMachine to main (#18453)
VeryEarly Jun 10, 2022
c834195
[KeyVault] Supported accepting rotation policy in a JSON file (#18448)
BethanyZhou Jun 10, 2022
0441386
Add SqlTestRunner to replace SqlTestsBase (#18352)
ziyuezh576 Jun 10, 2022
6a23994
Fix Az.ContainerRegistry Xml Comments (#18388)
v-yuzhichen Jun 13, 2022
ba7bae1
Fix Az.CosmosDB XML Comments (#18401)
v-yuzhichen Jun 13, 2022
fa6e646
Fix Az.DataBoxEdge XML Comments (#18402)
v-yuzhichen Jun 13, 2022
5f0d4e8
Fix Az.Automation XML Comments (#18407)
v-yuzhichen Jun 13, 2022
0dc7c19
Fix Az.DataLakeAnalytics XML Comments (#18403)
v-yuzhichen Jun 13, 2022
b470c3b
Fix Az.Compute XML Comments (#18408)
v-yuzhichen Jun 13, 2022
fe1dcfa
Fix Az.DataLakeStore XML Comments (#18421)
v-yuzhichen Jun 13, 2022
243bafb
Fix Az.DataMigration XML Comments (#18422)
v-yuzhichen Jun 13, 2022
2c724d8
Fix Az.EventHub XML Comments (#18429)
v-yuzhichen Jun 13, 2022
f15e544
Fix Az.HDInsight XML Comments (#18432)
v-yuzhichen Jun 13, 2022
48459f0
Fix Az.IotHub XML Comments (#18433)
v-yuzhichen Jun 13, 2022
ec74bc3
[CosmosDB] Fixes issue with Update-AzCosmosDBSqlContainer command on …
kr-santosh Jun 14, 2022
23ffff9
Bug fix for the Restore-AzSqlDatabase cmdlet (#18475)
imadan1996 Jun 14, 2022
567d576
Remove WebsitesController (#18469)
ziyuezh576 Jun 14, 2022
a5e2a83
Fixed issue when mimicing long running operation for test in Playback…
vidai-msft Jun 14, 2022
cdeb8f0
[Az.DataProtection] OOB for Az.DataProtection (#18477)
VeryEarly Jun 15, 2022
acae733
Enable ARM to the Private Link connection Cmdlets (#18358)
Vishakha-Git Jun 15, 2022
a193ffa
powershell changes for new ssl policies in appgw (#18287)
kaushik-ms Jun 16, 2022
d40078c
{CosmosDB} | Getting location from the Resource Group Name (#18449)
RakeshMohanMSFT Jun 17, 2022
d8ab059
Add tag support to managed cluster cmdlets (#18473)
LukeSlev Jun 17, 2022
ee57d06
[ReceveryServices] Fix delay in long running operations (#18568)
VeryEarly Jun 17, 2022
39b7bab
add param to Add-AzVhd, and New-AzHostGroup (#18333)
grizzlytheodore Jun 17, 2022
6567757
Use an ordered hash table for generateInfo. (#18611)
dolauli Jun 17, 2022
7d4bc91
Remove Storage TestController (#18470)
ziyuezh576 Jun 17, 2022
e125e5b
Add parameter CommandContextAttachmentZip to cmdlet Invoke-AzAksRunCo…
wyunchi-ms Jun 17, 2022
58755ec
Zip Deployment: Return Fail Deployment if Zip Deployment endpoint doe…
khkh-ms Jun 17, 2022
5fe28a3
[tools] Fix issue when serialized json file is null (#18565)
BethanyZhou Jun 17, 2022
52ef681
[Storage] Supported BaseBlob DaysAfterCreationGreaterThan in Manageme…
blueww Jun 17, 2022
95fa5b1
Fix Az.Monitor XML Comments (#18438)
CaptainFanZzz Jun 17, 2022
66b6c26
[DataFactory]Updated ADF .Net SDK version to 6.3.0 (#18572)
Jingshu923 Jun 17, 2022
2beb247
[StaticAnalysis] CI ExampleAnalysis (#18454)
MoChilia Jun 17, 2022
f3123d7
Feature/cplat add az vhd improve (#17999)
grizzlytheodore Jun 17, 2022
6acd4bf
export import configs (#18371)
isra-fel Jun 17, 2022
cc7a411
Update version of Microsoft.Identity.Client for .NET Framework (#18579)
dingmeng-xue Jun 20, 2022
84fa0d0
[SQL] fix for deprecated term (#18620)
JulianePadrao Jun 20, 2022
8598dd7
Fix an issue blocking CI during example analysis (#18626)
MoChilia Jun 20, 2022
672fbef
Update Azure Batch private link registration (#18284)
lilinvictorms Jun 20, 2022
52222a2
add TestRunner and remove TestBase in RecoveryServices (#18617)
CaptainFanZzz Jun 21, 2022
8e36866
Fix Az.FrontDoor XML Comments (#18575)
v-yuzhichen Jun 21, 2022
5303cde
Fix Az.NetWork XML Comments (#18461)
v-yuzhichen Jun 21, 2022
ece5974
[Az.Accounts] Fixed incorrect access token (#18414)
VeryEarly Jun 21, 2022
84dd807
Corrected typo in Get-AzAlert (#18646)
CaptainFanZzz Jun 21, 2022
67fe7ae
Fix Az.keyVault XML Comments (#18446)
v-yuzhichen Jun 21, 2022
ecb639d
Fix Az.NetAppFiles XML Comments (#18460)
v-yuzhichen Jun 21, 2022
465f53e
Fix Az.PrivateDns XML Comments (#18583)
v-yuzhichen Jun 21, 2022
23ba64c
Fix Az.Relay XML Comments (#18485)
v-yuzhichen Jun 21, 2022
4f22491
Fix Az.RecoveryServices XML Comments (#18484)
v-yuzhichen Jun 21, 2022
16f0e7e
Remove KeyVaultManagementController.cs (#18618)
ziyuezh576 Jun 21, 2022
4b7bbbb
Fix Az.ServiceBus XML Comments (#18500)
v-yuzhichen Jun 22, 2022
c47851d
Fix Az.Peering XML Comments (#18649)
v-yuzhichen Jun 22, 2022
ab6a762
Fix Az.Resources XML Comments (#18486)
v-yuzhichen Jun 22, 2022
9f0e293
Fix Az.AnalysisServices XML Comments (#18648)
v-yuzhichen Jun 22, 2022
d86b8da
Fix Az.Synapse XML comments (#18605)
ziyuezh576 Jun 22, 2022
478c1c8
Fix Az.Support XML comments (#18604)
ziyuezh576 Jun 22, 2022
da5762a
Fix Az.StorageSync XML comments (#18603)
ziyuezh576 Jun 22, 2022
5bd637e
Fix Az.Storage XML comments (#18601)
ziyuezh576 Jun 22, 2022
e3aed55
Fix Az.ServiceFabric XML Comments (#18586)
v-yuzhichen Jun 22, 2022
c984ca5
Fix Az.Security XML Comments (#18487)
v-yuzhichen Jun 22, 2022
aa4aadd
Fix Az.WebSites XML Comments (#18588)
v-yuzhichen Jun 22, 2022
39e8bc6
Fix Az.SqlVirtualMachine XML comments (#18582)
ziyuezh576 Jun 22, 2022
e38a855
Fix Az.Sql XML comments (#18576)
ziyuezh576 Jun 22, 2022
5ac8ce6
Update MoveFromGeneration2Master.ps1 (#18660)
VeryEarly Jun 22, 2022
ef7d983
[EventHubs]: Application Group CmdLets (#18640)
damodaravadhani Jun 22, 2022
13d4fdc
format the help markdown file of Az.Automation (#18415)
CaptainFanZzz Jun 22, 2022
6047692
format the help markdown files of Az.KeyVault (#18632)
CaptainFanZzz Jun 22, 2022
1872414
format the help markdown files of Az.IotHub (#18631)
CaptainFanZzz Jun 22, 2022
6e81436
format the help markdown files of Az.LabServices (#18614)
CaptainFanZzz Jun 22, 2022
441d6eb
format the help markdown files of Az.EventHub (#18613)
CaptainFanZzz Jun 22, 2022
24f6c2d
format the help markdown files of Az.CosmosDB (#18602)
CaptainFanZzz Jun 22, 2022
d91dca8
format the help markdown file of Az.Batch (#18596)
CaptainFanZzz Jun 22, 2022
2b3438f
format the help markdown file of Az.ServiceLinker (#18570)
CaptainFanZzz Jun 22, 2022
469b8d5
format the help markdown file of Az.ServiceFabric (#18566)
CaptainFanZzz Jun 22, 2022
3531d3c
format the help markdown file of Az.ServiceBus (#18560)
CaptainFanZzz Jun 22, 2022
11086a5
format the help markdown file of Az.Reservations (#18499)
CaptainFanZzz Jun 22, 2022
3ee5e30
format the help markdown file of Az.NetAppFiles (#18455)
CaptainFanZzz Jun 22, 2022
6ff7d97
Update New-AzApiManagement for issue #18439 (#18451)
CaptainFanZzz Jun 22, 2022
7921911
format the help markdown file of Az.Security (#18437)
CaptainFanZzz Jun 22, 2022
ea541cd
format the help markdown file of Az.EventGrid (#18436)
CaptainFanZzz Jun 22, 2022
3198fe6
format the help markdown file of Az.Compute (#18434)
CaptainFanZzz Jun 22, 2022
bcebf8b
format the help markdown file of Az.HealthcareApis (#18418)
CaptainFanZzz Jun 22, 2022
ac860e8
format the help markdown file of Az.Websites (#18416)
v-yuzhichen Jun 22, 2022
a082c8d
format the help markdown file of Az.ApiManagement (#18377)
CaptainFanZzz Jun 22, 2022
f620c6f
format the help markdown file of Az.AlertsManagement (#18376)
CaptainFanZzz Jun 22, 2022
94b6ca8
format the help markdown file of Az.Relay (#18498)
CaptainFanZzz Jun 22, 2022
dff7452
Fix Az.Accounts XML Comments (#18663)
v-yuzhichen Jun 22, 2022
5d9e687
Update PrepareAutorestModule.ps1 (#18665)
BethanyZhou Jun 22, 2022
13312f8
Trigger Az.Predictor CI (#18067)
wyunchi-ms Jun 23, 2022
cd88ff1
Move App to main (#18661)
VeryEarly Jun 23, 2022
a5b1805
Fix Az.Attestation XML Comments (#18687)
v-yuzhichen Jun 23, 2022
0e06eab
Fix Az.AlertsManagement XML Comments (#18686)
v-yuzhichen Jun 23, 2022
68efd12
UserAssignedIdentities (#18682)
grizzlytheodore Jun 23, 2022
68e9243
{AzureCXP} fixes Azure/azure-powershell#18607 (#18647)
navba-MSFT Jun 23, 2022
ade9cf5
clear MinimalVersion.csv after bumping version (#18657)
BethanyZhou Jun 23, 2022
0d2e025
Add example for Az.KeyVault.Extension in secret related commands (#18…
BethanyZhou Jun 23, 2022
822bfbc
format the help markdown file of Az.Purview (#18573)
CaptainFanZzz Jun 23, 2022
5b20840
Win2022 azure edition core alias (#18331)
mgreenegit Jun 23, 2022
118dfec
Move ConfidentialLedger to main (#18695)
dingmeng-xue Jun 23, 2022
6e5f46b
Move the select module logic to variable (#18683)
wyunchi-ms Jun 23, 2022
f8a293b
Fix Az.RecoveryServices XML Comments (#18666)
ziyuezh576 Jun 24, 2022
5160afe
Fix Az.Accounts XML Comments (#18692)
ziyuezh576 Jun 24, 2022
97b7682
Support generating XML documentation file for each assembly file (#18…
BethanyZhou Jun 24, 2022
7c05dcd
fix the config of md file in pipeline (#18725)
wyunchi-ms Jun 26, 2022
e17b4ac
Update CreateMappings_rules.json and GeneratedModuleList.txt (#18726)
VeryEarly Jun 27, 2022
cbfd893
update (#18706)
dingmeng-xue Jun 27, 2022
5c90551
[EventHubs]: Fixing Get-AzEventHubNamespace to return all namespaces …
damodaravadhani Jun 27, 2022
e410d0e
suggest user to select default subscription using azconfig cmdlet (#1…
isra-fel Jun 27, 2022
6568795
Fix typo in example description (#18635)
PramodValavala-MSFT Jun 27, 2022
8b22c86
[CosmosDB] Adds support to allow partition key and id paths to be par…
kr-santosh Jun 27, 2022
bb3ccb1
Update SKU allowed values for PowerBI Embedded capacities (#18670)
ayeshurun Jun 27, 2022
807dd2f
removing client side checks (#18698)
haagha Jun 27, 2022
76adfe3
[EventHubs]: Adding cmdlets to support manual approval of private end…
damodaravadhani Jun 27, 2022
7e90fb2
Upgrade common to 1.3.59 (#18745)
BethanyZhou Jun 27, 2022
880b3eb
Upgrade version of NewtonJson (#18732)
wyunchi-ms Jun 27, 2022
04cea46
Add parameter AvailabilityZone for AvailabilityZone (#18733)
wyunchi-ms Jun 27, 2022
6b2487b
Move Cdn to main (#18735)
wyunchi-ms Jun 27, 2022
7e6f49b
First preview release for module Az.NetworkFunction (#18734)
wyunchi-ms Jun 27, 2022
ede853d
Added isManagedIdentityInUse get parameter for `Get-AzSqlServerAudit`…
IliasKhan Jun 27, 2022
a0b9cc5
[ServiceBus]: Manual approval cmdlets for private endpoints (#18730)
damodaravadhani Jun 27, 2022
b8bc905
format the help markdown files of Az.Resources (#18693)
CaptainFanZzz Jun 28, 2022
1817661
format the help markdown files of Az.LogicApp (#18662)
CaptainFanZzz Jun 28, 2022
678c5e2
format the help markdown files of Az.Kusto (#18637)
CaptainFanZzz Jun 28, 2022
5cdfc54
format the help markdown files of Az.HDInsight in generation (#18630)
CaptainFanZzz Jun 28, 2022
043e9f5
Route with Service Tag has already been GA. (#18755)
nbnakano Jun 28, 2022
fb5ff2b
OOB release for Az.Compute (#18629)
VeryEarly Jun 28, 2022
79215b3
[CosmosDB]OOB release for CosmosDB (#18612)
VeryEarly Jun 28, 2022
baee39e
[Resources] Fix role assignment latency for New-AzADServicePrincipal …
VeryEarly Jun 28, 2022
11b0ec2
Update azure-powershell-modules.md for Az.App (#18753)
VeryEarly Jun 28, 2022
04e4557
[ApplicationInsights] Fix parameter DocumentType and ResourceId (#18756)
VeryEarly Jun 28, 2022
369f843
Resolved disallowed-html-tag build warnings from docs repo (#18761)
mikefrobbins Jun 28, 2022
6a0c9d9
Fix the path of (#18769)
dingmeng-xue Jun 28, 2022
18b119b
Update warning message when multiple subscriptions (#18768)
isra-fel Jun 28, 2022
41b50c9
Fix Importing Az in Parallel (#18483)
isra-fel Jun 28, 2022
31c2c05
Removed some properties' default values during the process of key vau…
BethanyZhou Jun 28, 2022
4a44c97
[KeyVault] Supported importing pem certificate by Import-AzKeyVaultCe…
BethanyZhou Jun 28, 2022
a2e29bb
Add an optional parameter called 'Location' to create/update action g…
thomasp98296 Jun 28, 2022
ad4531a
fix typo (#18770)
BethanyZhou Jun 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .azure-pipelines/powershell-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ variables:
BuildTimeoutInMinutes: 120
AnalysisTimeoutInMinutes: 120
TestTimeoutInMinutes: 180
BuildAzPredictor: false

trigger: none

Expand Down
6 changes: 3 additions & 3 deletions .azure-pipelines/util/analyze-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ steps:
packageType: sdk
version: 3.1.x

- pwsh: 'Install-Module platyPS -Force -Confirm:$false -Scope CurrentUser'
displayName: 'Install platyPS'

- pwsh: 'Install-Module "platyPS", "PSScriptAnalyzer" -Force -Confirm:$false -Scope CurrentUser'
displayName: 'Install PowerShell Dependencies'
- task: DotNetCoreCLI@2
displayName: 'Generate Help'
inputs:
Expand Down
23 changes: 22 additions & 1 deletion .azure-pipelines/util/build-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,39 @@ steps:
filePath: tools/CheckIgnoredFile.ps1

- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
displayName: 'Use .NET Core sdk 3.1.x'
inputs:
packageType: sdk
version: 3.1.x

- task: UseDotNet@2
displayName: 'Use .NET Core sdk 6.0.x'
inputs:
packageType: sdk
version: 6.0.x

- task: PowerShell@2
displayName: Setup global.json
inputs:
targetType: inline
script: "$SdkVersion=(dotnet --list-sdks | Select-String '[3,4,5].\\d.\\d{3}').Matches[0].Value; dotnet new globaljson --sdk-version $SdkVersion --force"
pwsh: true

- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: custom
custom: msbuild
arguments: 'build.proj /t:Build /p:Configuration=${{ parameters.configuration }};TestFramework=${{ parameters.testFramework }};PullRequestNumber=$(System.PullRequest.PullRequestNumber)'

- task: PowerShell@2
displayName: Build-AzPredictor
condition: eq(variables.BuildAzPredictor, 'true')
inputs:
targetType: inline
script: "$SdkVersion=(dotnet --list-sdks | Select-String '6.0.\\d{3}').Matches[0].Value; dotnet new globaljson --sdk-version $SdkVersion --force;dotnet msbuild tools/Az.Tools.Predictor/build.proj /t:\"clean;build;test\""
pwsh: true

- template: publish-artifacts-steps.yml
parameters:
artifactName: build-${{ parameters.testFramework }}
2 changes: 1 addition & 1 deletion .ci-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"src/{ModuleName}/**/*.md$"
],
"phases": [
"build:module",
"build:related-module",
"help:module"
]
},
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ SecurityTmp/
tmp/
FilesChanged.txt
CsprojMappings.json
global.json

obj
bin
Expand Down
20 changes: 11 additions & 9 deletions build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<Exec Command="dotnet publish $(RepoTools)BuildPackagesTask/Microsoft.Azure.Build.Tasks/Microsoft.Azure.Build.Tasks.csproj -c $(Configuration)" />

<!-- Get all of the files changed in the given pull request -->
<FilesChangedTask RepositoryOwner="Azure" RepositoryName="azure-powershell" PullRequestNumber="$(PullRequestNumber)" TargetModule="$(TargetModule)">
<FilesChangedTask RepositoryOwner="Azure" RepositoryName="azure-powershell" PullRequestNumber="$(PullRequestNumber)" TargetModule="$(TargetModule)" OutputFile="$(RepoArtifacts)/FilesChanged.txt">
<Output TaskParameter="FilesChanged" ItemName="FilesChanged" />
</FilesChangedTask>

Expand Down Expand Up @@ -163,8 +163,8 @@
<Exec Command="dotnet new sln -n Azure.PowerShell -o $(RepoArtifacts) --force" />
<CallTarget Targets="BuildNormalModules" />

<CallTarget Targets="AzToolsPredictor" Condition="$(SubTasks.Contains('predictor'))" />
<CallTarget Targets="AzToolsInstaller" Condition="$(SubTasks.Contains('installer'))" />
<Exec Command="echo ##vso[task.setvariable variable=BuildAzPredictor;]true" Condition="$(SubTasks.Contains('Predictor')) OR $(SubTasks.Contains('all'))" />
<CallTarget Targets="AzToolsInstaller" Condition="$(SubTasks.Contains('Installer')) OR $(SubTasks.Contains('all'))" />
</Target>

<Target Name="BuildNormalModules">
Expand All @@ -191,7 +191,8 @@
<BuildAction Condition="'$(Configuration)' != 'Release'">build</BuildAction>
<BuildAction Condition="'$(Configuration)' == 'Release'">publish</BuildAction>
</PropertyGroup>
<Exec Command="dotnet $(BuildAction) $(RepoArtifacts)Azure.PowerShell.sln -c $(Configuration)" />
<Exec Command="dotnet $(BuildAction) $(RepoArtifacts)Azure.PowerShell.sln -c $(Configuration)" Condition="$(GenerateDocumentationFile) != 'false'"/>
<Exec Command="dotnet $(BuildAction) $(RepoArtifacts)Azure.PowerShell.sln -c $(Configuration) -p:GenerateDocumentationFile=false" Condition="$(GenerateDocumentationFile) == 'false'"/>

<!-- Build version controller -->
<Exec Command="dotnet build $(RepoTools)VersionController/VersionController.Netcore.csproj -c $(Configuration)" />
Expand Down Expand Up @@ -263,7 +264,12 @@
<Exec Command="dotnet $(RepoArtifacts)StaticAnalysis/StaticAnalysis.Netcore.dll -p $(RepoArtifacts)$(Configuration) -r $(StaticAnalysisOutputDirectory) --analyzers help -u -m '%(FilterTaskResult.help)'" />
</Target>

<Target Name="StaticAnalysis" DependsOnTargets="StaticAnalysisBreakingChange;StaticAnalysisDependency;StaticAnalysisSignature;StaticAnalysisHelp">
<Target Name="StaticAnalysisExample" Condition="'$(RunStaticAnalysis)' == 'true'" DependsOnTargets="Build" AfterTargets="StaticAnalysisHelp">
<Message Importance="high" Text="Running static analysis for PowerShell examples..." />
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;. $(RepoTools)/StaticAnalysis/ExampleAnalyzer/Measure-MarkdownOrScript.ps1 -MarkdownPaths $(RepoArtifacts)/FilesChanged.txt -RulePaths $(RepoTools)/StaticAnalysis/ExampleAnalyzer/AnalyzeRules/*.psm1 -Recurse -AnalyzeScriptsInFile -OutputScriptsInFile -OutputResultsByModule &quot;"/>
</Target>

<Target Name="StaticAnalysis" DependsOnTargets="StaticAnalysisBreakingChange;StaticAnalysisDependency;StaticAnalysisSignature;StaticAnalysisHelp;StaticAnalysisExample">
<Message Importance="high" Text="Running static analysis..." />

<Exec Command="$(PowerShellCoreCommandPrefix) &quot;. $(RepoTools)/CheckAssemblies.ps1 -BuildConfig $(Configuration) &quot;" />
Expand All @@ -285,10 +291,6 @@
<Exec Command='dotnet msbuild $(RepoTools)/Az.Tools.Installer/build.proj /t:"clean;build;test"' />
</Target>

<Target Name="AzToolsPredictor">
<Exec Command='dotnet msbuild $(RepoTools)/Az.Tools.Predictor/build.proj /t:"clean;build;test"' />
</Target>

<Target Name="ChangeLogErrorMessage">
<Error Text="Modified files were found with no update to their change log. Please add a snippet to the affected modules' change log." />
</Target>
Expand Down
22 changes: 17 additions & 5 deletions documentation/Debugging-StaticAnalysis-Errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Our StaticAnalysis tools help us ensure our modules follow PowerShell guidelines
- [Breaking Changes](#breaking-changes)
- [Signature Issues](#signature-issues)
- [Help Issues](#help-issues)
- [Example Issues](#example-issues)

## How to know if you have a StaticAnalysis Error
If your build is failing, click on the Jenkins job inside the PR (marked as "Default" within checks). Then check the Console Output within the Jenkins job. If you have this error, then you have failed StaticAnalysis:
Expand All @@ -34,21 +35,32 @@ If you make a change that could cause a breaking change, it will be listed in `B

_Note_: Sometimes the error listed in the .csv file can be a false positive (for example, if you change a parameter attribute to span all parameter sets rather than individual parameter sets). Please read the error thoroughly and examine the relevant code before deciding that an error is a false positive, and contact the Azure PowerShell team if you have questions. If you are releasing a preview module, are releasing during a breaking change release, or have determined that the error is a false positive, please follow these instructions to suppress the errors:

- Download the `BreakingChangeIssues.csv` file from the Jenkins build
- Download the `BreakingChangeIssues.csv` file from the CI pipeline artifacts
- Open the file using a text editor (such as VS Code) and copy each of the errors you'd like to suppress
- Paste each of these errors into the `BreakingChangeIssues.csv` file found in their respective [module folder](../tools/StaticAnalysis/Exceptions) (_e.g._, if a breaking change is being suppressed for Compute, then you would paste the corresponding line(s) in the `tools/StaticAnalysis/Exceptions/Az.Compute/BreakingChangeIssues.csv` file) using the same text editor
- Push the changes to the .csv file and ensure the errors no longer show up in the `BreakingChangeIssues.csv` file output from the Jenkins build.
- Push the changes to the .csv file and ensure the errors no longer show up in the `BreakingChangeIssues.csv` file output from the CI pipeline artifacts.

We take breaking changes very seriously, so please be mindful about the violations that you suppress in our repo.

### Signature Issues
Signature issues occur when your cmdlets do not follow PowerShell standards. Please check the [_Cmdlet Best Practices_](https://github.com/Azure/azure-powershell/blob/main/documentation/development-docs/design-guidelines/cmdlet-best-practices.md) and the [_Parameter Best Practices_](https://github.com/Azure/azure-powershell/blob/main/documentation/development-docs/design-guidelines/parameter-best-practices.md) documents to ensure you are following PowerShell guidelines. Issues with severity 0 or 1 must be addressed, while issues with severity 2 are advisory. If you have an issue with severity 0 or 1 that has been approved by the Azure PowerShell team, you can suppress them following these steps:

- Download the `SignatureIssues.csv` file from the Jenkins build
- Download the `SignatureIssues.csv` file from the CI pipeline artifacts
- Open the file using a text editor (such as VS Code) and copy each of the errors you'd like to suppress
- Paste each of these errors into the `SignatureIssues.csv` file found in their respective [module folder](../tools/StaticAnalysis/Exceptions) (_e.g.,_ if a signature issue is being suppressed for Sql, then you would paste the corresponding line(s) in the `tools/StaticAnalysis/Exceptions/Az.Sql/SignatureIssues.csv` file) using the same text editor
- Copy each of the errors you would like to suppress directly from the SignatureIssues.csv file output in the Jenkins build
- Push the changes to the .csv file and ensure the errors no longer show up in the `SignatureIssues.csv` file output from the Jenkins build.
- Copy each of the errors you would like to suppress directly from the SignatureIssues.csv file output in the CI pipeline artifacts
- Push the changes to the .csv file and ensure the errors no longer show up in the `SignatureIssues.csv` file output from the CI pipeline artifacts.

### Help Issues
Most help issues that cause StaticAnalysis to fail occur when help has not been added for a particular cmdlet. If you have not generated help for your new cmdlets, please follow the instructions [here](https://github.com/Azure/azure-powershell/blob/main/documentation/development-docs/help-generation.md). If this is not the issue, follow the steps listed under "Remediation" for each violation listed in HelpIssues.csv.

### Example Issues
Example issues occur when your changed markdown files in the `help` folder (_e.g.,_ `src/Accounts/Accounts/help`) violate PowerShell language best practices. Please follow the suggestion displayed in "Remediation" entry for each violation listed in `ExampleIssues.csv`. If you have an issue with severity 0 or 1 that has been approved by the Azure PowerShell team, you can suppress them following these steps:

- Download the `ExampleIssues.csv` file from the CI pipeline artifacts
- Open the file using a text editor (such as VS Code) and copy each of the errors you'd like to suppress
- Paste each of these errors into the `ExampleIssues.csv` file found in their respective [module folder](../tools/StaticAnalysis/Exceptions) (_e.g.,_ if an example issue is being suppressed for Accounts, then you would paste the corresponding line(s) in the `tools/StaticAnalysis/Exceptions/Az.Accounts/ExampleIssue.csv` file) using the same text editor
- Copy each of the errors you would like to suppress directly from the ExampleIssues.csv file output in the CI pipeline artifacts
- Push the changes to the .csv file and ensure the errors no longer show up in the `ExampleIssues.csv` file output from the CI pipeline artifacts.

To better standardize the writing of documents, please also check the warning issues with severity 2 by downloading the `ExampleIssues.csv` file.
6 changes: 6 additions & 0 deletions documentation/azure-powershell-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Kubernetes Service | `Az.Aks`
Alert Management | `Az.AlertsManagement` | [![AlertsManagement]][AlertsManagementGallery]
Analysis Services | `Az.AnalysisServices` | [![AnalysisServices]][AnalysisServicesGallery]
API Management | `Az.ApiManagement` | [![ApiManagement]][ApiManagementGallery]
Container Apps | `Az.App` | [![App]][AppGallery]
App Configuration | `Az.AppConfiguration` | [![AppConfiguration]][AppConfigurationGallery]
Application Insights | `Az.ApplicationInsights` | [![ApplicationInsights]][ApplicationInsightsGallery]
Attestation | `Az.Attestation` | [![Attestation]][AttestationGallery]
Expand Down Expand Up @@ -102,6 +103,7 @@ Monitoring Solutions | `Az.MonitoringSolutions`
Database for MySQL | `Az.MySql` | [![MySql]][MySqlGallery]
NetApp Files | `Az.NetAppFiles` | [![NetAppFiles]][NetAppFilesGallery]
Network | `Az.Network` | [![Network]][NetworkGallery]
NetworkFunction | `Az.NetworkFunction` | [![NetworkFunction]][NetworkFunctionGallery]
Notification Hubs | `Az.NotificationHubs` | [![NotificationHubs]][NotificationHubsGallery]
Operational Insights | `Az.OperationalInsights` | [![OperationalInsights]][OperationalInsightsGallery]
Virtual Network peering | `Az.Peering` | [![Peering]][PeeringGallery]
Expand Down Expand Up @@ -156,6 +158,7 @@ Windows Iot Services | `Az.WindowsIotServices`
[AlertsManagement]: https://img.shields.io/powershellgallery/v/Az.AlertsManagement.svg?style=flat-square&label=Az.AlertsManagement
[AnalysisServices]: https://img.shields.io/powershellgallery/v/Az.AnalysisServices.svg?style=flat-square&label=Az.AnalysisServices
[ApiManagement]: https://img.shields.io/powershellgallery/v/Az.ApiManagement.svg?style=flat-square&label=Az.ApiManagement
[App]: https://img.shields.io/powershellgallery/v/Az.App.svg?style=flat-square&label=Az.App
[AppConfiguration]: https://img.shields.io/powershellgallery/v/Az.AppConfiguration.svg?style=flat-square&label=Az.AppConfiguration
[ApplicationInsights]: https://img.shields.io/powershellgallery/v/Az.ApplicationInsights.svg?style=flat-square&label=Az.ApplicationInsights
[Attestation]: https://img.shields.io/powershellgallery/v/Az.Attestation.svg?style=flat-square&label=Az.Attestation
Expand Down Expand Up @@ -240,6 +243,7 @@ Windows Iot Services | `Az.WindowsIotServices`
[MySql]: https://img.shields.io/powershellgallery/v/Az.MySql.svg?style=flat-square&label=Az.MySql
[NetAppFiles]: https://img.shields.io/powershellgallery/v/Az.NetAppFiles.svg?style=flat-square&label=Az.NetAppFiles
[Network]: https://img.shields.io/powershellgallery/v/Az.Network.svg?style=flat-square&label=Az.Network
[NetworkFunction]: https://img.shields.io/powershellgallery/v/Az.NetworkFunction.svg?style=flat-square&label=Az.NetworkFunction
[NotificationHubs]: https://img.shields.io/powershellgallery/v/Az.NotificationHubs.svg?style=flat-square&label=Az.NotificationHubs
[OperationalInsights]: https://img.shields.io/powershellgallery/v/Az.OperationalInsights.svg?style=flat-square&label=Az.OperationalInsights
[Peering]: https://img.shields.io/powershellgallery/v/Az.Peering.svg?style=flat-square&label=Az.Peering
Expand Down Expand Up @@ -292,6 +296,7 @@ Windows Iot Services | `Az.WindowsIotServices`
[AlertsManagementGallery]: https://www.powershellgallery.com/packages/Az.AlertsManagement/
[AnalysisServicesGallery]: https://www.powershellgallery.com/packages/Az.AnalysisServices/
[ApiManagementGallery]: https://www.powershellgallery.com/packages/Az.ApiManagement/
[App]: https://www.powershellgallery.com/packages/Az.App/
[AppConfigurationGallery]: https://www.powershellgallery.com/packages/Az.AppConfiguration/
[ApplicationInsightsGallery]: https://www.powershellgallery.com/packages/Az.ApplicationInsights/
[AttestationGallery]: https://www.powershellgallery.com/packages/Az.Attestation/
Expand Down Expand Up @@ -376,6 +381,7 @@ Windows Iot Services | `Az.WindowsIotServices`
[MySqlGallery]: https://www.powershellgallery.com/packages/Az.MySql/
[NetAppFilesGallery]: https://www.powershellgallery.com/packages/Az.NetAppFiles/
[NetworkGallery]: https://www.powershellgallery.com/packages/Az.Network/
[NetworkFunctionGallery]: https://www.powershellgallery.com/packages/Az.NetworkFunction/
[NotificationHubsGallery]: https://www.powershellgallery.com/packages/Az.NotificationHubs/
[OperationalInsightsGallery]: https://www.powershellgallery.com/packages/Az.OperationalInsights/
[PeeringGallery]: https://www.powershellgallery.com/packages/Az.Peering/
Expand Down
2 changes: 1 addition & 1 deletion documentation/development-docs/common-assemblies.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ For further reading, please visit https://docs.microsoft.com/en-us/dotnet/standa
2. Compare dependencies of `Azure.Core` on [nuget.org](https://www.nuget.org/packages/Azure.Core/) between current version and expected version.
3. Extract DLL file in nuget package folder `lib/netcoreapp2.1` of `Azure.Core` and changed dependencies and copy them to `src/lib/NetCorePreloadAssemblies`. You need to ensure the version CANNOT be higher than existing assembly if PowerShell already includes it.
4. Update assembly version of `Azure.Core` and changed dependencies to .NET Stardard 2.0 in `/src/Accounts/AuthenticationAssemblyLoadContext/AzAssemblyLoadContextInitializer.cs`.
5. Extract DLL file in nuget package folder `lib/net461` (alternatively, `netstandard2.0`) of `Azure.Core` and changed dependencies and copy them to `src/lib/NetFxPreloadAssemblies`.
5. Extract DLL file in nuget package folder `lib/net461` (alternatively, `netstandard2.0`) of `Azure.Core` and changed dependencies and copy them to `src/lib/NetFxPreloadAssemblies`. As one of dependencies, `Microsoft.Identity.Client` needs its net461 version because of known issue with certificates.
6. Update assembly version of `Azure.Core` and changed dependencies to .NET Framework in `/src/Accounts/Authentication/Utilities/CustomAssemblyResolver.cs`.
7. Verify built `Az.Accounts` can work with existing Azure PowerShell modules on PowerShell 7 and Windows PowerShell.
- Import module into PowerShell 7 or Windows PowerShell, and ensure there is no error in verbose output
Expand Down
Loading