Skip to content

Commit

Permalink
Upgrade PowerShell to 7.0.6
Browse files Browse the repository at this point in the history
Upgrade Linux Image of CI pipeline to Ubuntu 20.04
  • Loading branch information
wyunchi-ms committed May 27, 2021
1 parent 1afea3b commit 23653db
Show file tree
Hide file tree
Showing 13 changed files with 157 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines/powershell-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ variables:
WindowsName: windows
WindowsImage: vs2017-win2016
LinuxName: linux
LinuxImage: ubuntu-18.04
LinuxImage: ubuntu-20.04
MacOSName: macOS
MacOSImage: macOS-10.14
TestFramework: netcoreapp2.1
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/util/analyze-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ steps:
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 2.1.x
version: 3.1.x

- pwsh: 'Install-Module platyPS -Force -Confirm:$false -Scope CurrentUser'
displayName: 'Install platyPS'
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/util/build-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ steps:
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 2.1.x
version: 3.1.x

- task: DotNetCoreCLI@2
displayName: Build
Expand Down
8 changes: 4 additions & 4 deletions build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@
</Target>

<Target Name="BuildTools">
<Exec Command="dotnet publish $(RepoTools)StaticAnalysis/StaticAnalysis.Netcore.csproj -c $(Configuration) -f netcoreapp2.1" />
<Exec Command="dotnet publish $(RepoTools)StaticAnalysis/StaticAnalysis.Netcore.csproj -c $(Configuration)" />
</Target>

<Target Name="FilterBuild" Condition="$(PullRequestNumber) != '' OR $(TargetModule) != ''" DependsOnTargets="BuildTools">
<Message Importance="high" Text="Filtering projects and modules..." />
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;. $(RepoTools)/CreateFilterMappings.ps1&quot;" />

<!-- Build the Microsoft.Azure.Build.Tasks project -->
<Exec Command="dotnet publish $(RepoTools)BuildPackagesTask/Microsoft.Azure.Build.Tasks/Microsoft.Azure.Build.Tasks.csproj -c $(Configuration) -f netstandard2.0" />
<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)">
Expand Down Expand Up @@ -268,11 +268,11 @@
</Target>

<Target Name="AzToolsInstaller">
<Exec Command="dotnet msbuild $(RepoTools)/Az.Tools.Installer/build.proj /t:'clean;build;test'" />
<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'" />
<Exec Command='dotnet msbuild $(RepoTools)/Az.Tools.Predictor/build.proj /t:"clean;build;test"' />
</Target>

<Target Name="ChangeLogErrorMessage">
Expand Down
2 changes: 1 addition & 1 deletion src/Automation/Automation.Test/Automation.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PropertyGroup>
<RootNamespace>$(LegacyAssemblyPrefix)$(PsModuleName)$(AzTestAssemblySuffix)</RootNamespace>
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Az.Test.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<!-- Build -->
<PropertyGroup>
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
<TargetFramework>netcoreapp2.1</TargetFramework>
<AssemblyName>$(AzAssemblyPrefix)$(PsModuleName)$(AzTestAssemblySuffix)</AssemblyName>
<RootNamespace>$(AzAssemblyPrefix)$(PsModuleName)$(AzTestAssemblySuffix)</RootNamespace>
<IsPackable>false</IsPackable>
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Storage.Test/Storage.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<PropertyGroup>
<RootNamespace>Microsoft.WindowsAzure.Management.$(PsModuleName)$(AzTestAssemblySuffix)</RootNamespace>
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="$(MSBuildThisFileDirectory)..\..\..\Repo.props" />

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AssemblyName>Microsoft.Azure.Build.Tasks</AssemblyName>
<RootNamespace>Microsoft.Azure.Build.Tasks</RootNamespace>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
Expand Down
140 changes: 140 additions & 0 deletions tools/StaticAnalysis/Exceptions/ValidateHelpIssues.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
Target,Description
Get-AzApiManagementProperty.md,No synopsis found
Get-AzApiManagementProperty.md,No description found
Remove-AzApiManagementAuthorizationServer.md,No examples found
Update-AzApiManagementRegion.md,No examples found
Remove-AzAutomationDscConfiguration.md,No examples found
Remove-AzAutomationDscNodeConfiguration.md,No examples found
Get-AzBatchAccountKeys.md,No examples found
Remove-AzBatchJobSchedule.md,No examples found
Set-AzBatchJobSchedule.md,No examples found
Get-AzCdnCustomDomain.md,No examples found
Get-AzCdnEdgeNode.md,No examples found
Get-AzCdnEndpoint.md,No examples found
Get-AzCdnEndpointNameAvailability.md,No examples found
Get-AzCdnEndpointResourceUsage.md,No examples found
Get-AzCdnOrigin.md,No examples found
Get-AzCdnProfile.md,No examples found
Get-AzCdnProfileResourceUsage.md,No examples found
Get-AzCdnProfileSsoUrl.md,No examples found
Get-AzCdnSubscriptionResourceUsage.md,No examples found
New-AzCdnCustomDomain.md,No examples found
New-AzCdnEndpoint.md,No examples found
New-AzCdnProfile.md,No examples found
Publish-AzCdnEndpointContent.md,No examples found
Remove-AzCdnCustomDomain.md,No examples found
Remove-AzCdnEndpoint.md,No examples found
Remove-AzCdnProfile.md,No examples found
Set-AzCdnEndpoint.md,No examples found
Set-AzCdnOrigin.md,No examples found
Set-AzCdnProfile.md,No examples found
Start-AzCdnEndpoint.md,No examples found
Stop-AzCdnEndpoint.md,No examples found
Test-AzCdnCustomDomain.md,No examples found
Unpublish-AzCdnEndpointContent.md,No examples found
Get-AzVMADDomainExtension.md,No examples found
Get-AzVMDscExtensionStatus.md,No examples found
New-AzVMSqlServerKeyVaultCredentialConfig.md,No description found
New-AzVMSqlServerKeyVaultCredentialConfig.md,No examples found
Remove-AzVMAccessExtension.md,No examples found
Remove-AzVMBackup.md,No description found
Remove-AzVMCustomScriptExtension.md,No examples found
Remove-AzVMNetworkInterface.md,No examples found
Set-AzVMADDomainExtension.md,No examples found
Set-AzVMBackupExtension.md,No description found
Set-AzVMPlan.md,No examples found
Set-AzVmssVM.md,No examples found
Get-AzDtlAllowedVMSizesPolicy.md,No examples found
Get-AzDtlAutoShutdownPolicy.md,No examples found
Get-AzDtlAutoStartPolicy.md,No examples found
Get-AzDtlVMsPerLabPolicy.md,No examples found
Get-AzDtlVMsPerUserPolicy.md,No examples found
Set-AzDtlAllowedVMSizesPolicy.md,No examples found
Set-AzDtlAutoShutdownPolicy.md,No examples found
Set-AzDtlAutoStartPolicy.md,No examples found
Set-AzDtlVMsPerLabPolicy.md,No examples found
Set-AzDtlVMsPerUserPolicy.md,No examples found
Get-AzLogProfile.md,No examples found
New-AzAutoscaleWebhook.md,No examples found
Remove-AzAutoscaleSetting.md,No examples found
Remove-AzLogProfile.md,No examples found
Add-AzApplicationGatewayAuthenticationCertificate.md,No examples found
Add-AzApplicationGatewayUrlPathMapConfig.md,No examples found
Add-AzLoadBalancerInboundNatPoolConfig.md,No synopsis found
Add-AzLoadBalancerInboundNatPoolConfig.md,No description found
Get-AzApplicationGatewayAuthenticationCertificate.md,No examples found
Get-AzApplicationGatewayBackendAddressPool.md,No description found
Get-AzLoadBalancerInboundNatPoolConfig.md,No synopsis found
Get-AzLoadBalancerInboundNatPoolConfig.md,No description found
Get-AzRouteFilter.md,No examples found
Get-AzRouteFilterRuleConfig.md,No examples found
New-AzApplicationGatewayAuthenticationCertificate.md,No examples found
New-AzLoadBalancerInboundNatPoolConfig.md,No synopsis found
New-AzLoadBalancerInboundNatPoolConfig.md,No description found
New-AzRouteFilter.md,No examples found
New-AzRouteFilterRuleConfig.md,No examples found
Remove-AzApplicationGatewayAuthenticationCertificate.md,No examples found
Remove-AzApplicationGatewayUrlPathMapConfig.md,No examples found
Remove-AzLoadBalancerInboundNatPoolConfig.md,No synopsis found
Remove-AzLoadBalancerInboundNatPoolConfig.md,No description found
Remove-AzRouteFilter.md,No examples found
Remove-AzRouteFilterRuleConfig.md,No examples found
Set-AzApplicationGatewayAuthenticationCertificate.md,No examples found
Set-AzApplicationGatewayUrlPathMapConfig.md,No examples found
Set-AzLoadBalancerInboundNatPoolConfig.md,No synopsis found
Set-AzLoadBalancerInboundNatPoolConfig.md,No description found
Set-AzRouteFilter.md,No examples found
Set-AzRouteFilterRuleConfig.md,No examples found
New-AzNotificationHubKey.md,No examples found
New-AzNotificationHubsNamespaceKey.md,No examples found
Disable-AzOperationalInsightsIISLogCollection.md,No examples found
Disable-AzOperationalInsightsLinuxCustomLogCollection.md,No examples found
Disable-AzOperationalInsightsLinuxPerformanceCollection.md,No examples found
Disable-AzOperationalInsightsLinuxSyslogCollection.md,No examples found
Enable-AzOperationalInsightsIISLogCollection.md,No examples found
Enable-AzOperationalInsightsLinuxCustomLogCollection.md,No examples found
Enable-AzOperationalInsightsLinuxPerformanceCollection.md,No examples found
Enable-AzOperationalInsightsLinuxSyslogCollection.md,No examples found
Get-AzOperationalInsightsDataSource.md,No examples found
New-AzOperationalInsightsAzureActivityLogDataSource.md,No examples found
New-AzOperationalInsightsComputerGroup.md,No examples found
New-AzOperationalInsightsCustomLogDataSource.md,No examples found
New-AzOperationalInsightsLinuxPerformanceObjectDataSource.md,No examples found
New-AzOperationalInsightsLinuxSyslogDataSource.md,No examples found
New-AzOperationalInsightsWindowsEventDataSource.md,No examples found
New-AzOperationalInsightsWindowsPerformanceCounterDataSource.md,No examples found
Remove-AzOperationalInsightsDataSource.md,No examples found
Set-AzOperationalInsightsDataSource.md,No examples found
Get-AzResourceProvider.md,No examples found
Invoke-AzResourceAction.md,No examples found
Remove-AzResourceGroupDeployment.md,No examples found
Test-AzResourceGroupDeployment.md,No examples found
Unregister-AzResourceProvider.md,No examples found
Get-AzSqlDatabaseGeoBackupPolicy.md,No examples found
Get-AzSqlDatabaseReplicationLink.md,No examples found
Get-AzSqlServerBackupLongTermRetentionVault.md,No examples found
Get-AzSqlServerDisasterRecoveryConfiguration.md,No examples found
Get-AzSqlServerDisasterRecoveryConfigurationActivity.md,No examples found
New-AzSqlDatabaseCopy.md,No examples found
New-AzSqlServerDisasterRecoveryConfiguration.md,No examples found
Remove-AzSqlDatabaseSecondary.md,No examples found
Remove-AzSqlServerDisasterRecoveryConfiguration.md,No examples found
Set-AzSqlDatabaseGeoBackupPolicy.md,No examples found
Set-AzSqlDatabaseSecondary.md,No examples found
Set-AzSqlServerBackupLongTermRetentionVault.md,No examples found
Set-AzSqlServerDisasterRecoveryConfiguration.md,No examples found
Edit-AzWebAppBackupConfiguration.md,No synopsis found
Edit-AzWebAppBackupConfiguration.md,No examples found
Get-AzAppServicePlanMetric.md,No synopsis found
Get-AzWebAppBackup.md,No synopsis found
Get-AzWebAppBackupConfiguration.md,No synopsis found
Get-AzWebAppBackupList.md,No synopsis found
New-AzWebAppBackup.md,No synopsis found
New-AzWebAppDatabaseBackupSetting.md,No synopsis found
Remove-AzWebAppBackup.md,No synopsis found
Remove-AzWebAppSlot.md,No synopsis found
Reset-AzWebAppPublishingProfile.md,No synopsis found
Reset-AzWebAppSlotPublishingProfile.md,No synopsis found
Restart-AzWebAppSlot.md,No synopsis found
Restore-AzWebAppBackup.md,No synopsis found
Add-AzHDInsightSecurityProfile.md,No examples found
4 changes: 2 additions & 2 deletions tools/StaticAnalysis/StaticAnalysis.Netcore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand All @@ -23,7 +23,7 @@

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Microsoft.PowerShell.SDK" Version="6.2.4" />
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.0.6" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion tools/Tools.Common.Test/Tools.Common.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="$(MSBuildThisFileDirectory)..\Common.Netcore.Dependencies.Test.targets" />

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion tools/Tools.Common/Tools.Common.Netcore.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AssemblyName>Tools.Common</AssemblyName>
<RootNamespace>Tools.Common</RootNamespace>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
Expand Down
4 changes: 2 additions & 2 deletions tools/VersionController/VersionController.Netcore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand All @@ -26,7 +26,7 @@
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="3.1.5" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="3.1.5" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Microsoft.PowerShell.SDK" Version="6.2.4" />
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.0.6" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 23653db

Please sign in to comment.