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

[do not squash] sync network-august with master #13933

Merged
merged 177 commits into from
Jan 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
177 commits
Select commit Hold shift + click to select a range
2a31e70
release Az.Accounts 2.2.1 (#13537)
erich-wang Nov 19, 2020
7a94d31
Update New-AzFrontDoorWafManagedRuleObject.md (#13528)
t-bzhan Nov 19, 2020
af7cf59
Merge internal/Az.Tools.Predictor (#13546)
dingmeng-xue Nov 19, 2020
a96ccb7
[Pipeline] dailyBuild: bump version and sign (#13439)
BethanyZhou Nov 20, 2020
221108d
Add Variety to Az.Predictor (#13480)
yemohyle Nov 20, 2020
018ef81
Disable test related to fileproperties (#13547)
rahuldutta90 Nov 20, 2020
a735ca7
[Storage] Support upload 4TB Azure file (#13495)
blueww Nov 20, 2020
af01177
Healthcare APIs Powershell BYOK Updates (#13518)
iviark Nov 20, 2020
7984951
{IotHub} Added new examples for hashtable type parameter (#13532)
anusapan Nov 20, 2020
0e6d853
Get-AzVm filter by Name prior to checking for throttling (#13437)
Sandido Nov 23, 2020
aa3753c
[Az.Resources] change version commparator from double to version (#13…
dagoroz Nov 23, 2020
1f2b689
{AppService} Prevent duplicate rules from being created. (#13540)
madsd Nov 23, 2020
5b1f123
Secret Management Extension for AKV (#13506)
BethanyZhou Nov 24, 2020
629cff0
Vimundad appgwt: Adding Rule Priority for Application Gateway Request…
vinaymundada27 Nov 24, 2020
3a197cb
Update Get-AzKeyVaultCertificate.md - Get cert and save it as pfx sec…
dawsonar802 Nov 24, 2020
5ef2db1
[Synapse] Update spark version to 1.0.0-beta.1 (#13565)
wonner Nov 25, 2020
0658eb0
[DataFactory]Upgrade sdk version to 4.13.0 (#13570)
Jingshu923 Nov 25, 2020
a01460d
New Start-AzVmssRollingExtensionUpgrade cmdlet (#13479)
Sandido Nov 25, 2020
c8a5a81
deprecate cluster cert cmdlets, update help (#13581)
a-santamaria Nov 25, 2020
354dc14
Add byDict parameter set for New-AzSapMonitorProviderInstance and re-…
dolauli Nov 25, 2020
58b9c12
[NetAppFiles] Anf 7405 update for api version 2020 07 01 (#13576)
audunn Nov 25, 2020
7d16f93
Az.StackHCI v0.4.1 OOB release (#13568)
isra-fel Nov 25, 2020
d1e906e
New-AzApiManagementProduct: Change SubscriptionsLimit parameter defau…
SteppingRazor Nov 25, 2020
8f95819
Supported "all" as an option when setting key vault access policies (…
isra-fel Nov 26, 2020
d9cc02e
Fix Typo for WorkspaceResourceId parameter in example (#13589)
SteveBurkettNZ Nov 26, 2020
950fe6b
[Synapse] Add new cmdlets for Synapse SQL Pool and Synapse Workspace …
wonner Nov 26, 2020
8c640a9
Add database readscale related properties support (#13549)
bradrich-msft Nov 27, 2020
09627e4
Remove-AzSynapseSqlPoolRestorePoint (#13412)
zesluo Nov 27, 2020
41897b2
Fix the issue of generating generate-info.json (#13473)
wyunchi-ms Nov 27, 2020
bc94344
{IotHub} Fix sas-token decoding issue (#13601)
anusapan Nov 30, 2020
f893a59
Az.Accounts Improvement (#13592)
erich-wang Nov 30, 2020
d688ae5
Parse ExpiresOn time from access token if possible (#13594)
erich-wang Nov 30, 2020
3e5b6cb
[Resources] Fix issue preventing deployment of Template Specs located…
stuartko Nov 30, 2020
dd63a65
Merge branch 'master' into dixue/Az.Tools.Predictor (#13613)
dingmeng-xue Nov 30, 2020
b890719
fix parameter for get-azcontainerregistryusage and exception for conn…
VeryEarly Nov 30, 2020
4b21b49
[KeyVault] Redesign HSM cmdlets (#13599)
isra-fel Dec 1, 2020
b16bcfb
add SAW scenario to keyvault example (#13620)
isra-fel Dec 1, 2020
69b488e
Template Specs: Adding tag assignment/viewing support (#13619)
stuartko Dec 1, 2020
277a23e
polish docs (#13615)
VeryEarly Dec 1, 2020
bce858f
add detail for set-azapplicationinsightspricingplan help markdown (#1…
VeryEarly Dec 1, 2020
bbeefff
Refactoring code to enable Authentication related tests (#13616)
erich-wang Dec 1, 2020
536d04c
Resolve object when it is wrapped by PSObject (#13631)
dingmeng-xue Dec 1, 2020
22356a0
StorageSync ChangeLog.md (#13635)
ankushbindlish2 Dec 2, 2020
1b71552
refactor diagnostic setting (#13535)
VeryEarly Dec 2, 2020
c11537e
update new-azautoscaleprofile to accept rule as empty list (#13586)
VeryEarly Dec 2, 2020
099b48f
[WindowsIotServices]First preview release. (#13609)
LucasYao93 Dec 2, 2020
5c9ad60
Ignore cmdlet check when it doesn't come from assembly file (#13642)
dingmeng-xue Dec 2, 2020
b1b8938
Fix MSI test case (#13640)
erich-wang Dec 2, 2020
10cd4b9
Polish changelog for upcoming release (#13645)
dingmeng-xue Dec 2, 2020
e81d7e9
Update Get-AzBillingInvoice.md (#13634)
BelRarr Dec 3, 2020
a5ff7fc
[CloudService] Init for CloudService (#13638)
wyunchi-ms Dec 3, 2020
6463ac0
Add release notes for cloud service. (#13650)
wyunchi-ms Dec 3, 2020
26a1950
Fix scenario test hanging issue (#13644)
dingmeng-xue Dec 3, 2020
d939cb0
First version of MySql flexible server cmdlets (#13622)
msJinLei Dec 3, 2020
c897149
[CostManagement] Init for CostManagement (#13646)
wyunchi-ms Dec 3, 2020
209809c
Edit New-AzSnapshot so it checks for already existing duplicate resou…
Sandido Dec 4, 2020
9e339f9
Updated security alerts tests + added Secure score types tests (#13604)
giromm2ms Dec 4, 2020
033e0eb
[ServiceFabric] Fix Add-AzServiceFabricNodeType. Add node type Before…
a-santamaria Dec 4, 2020
c68f695
release-2020-12-08 (#13661)
dingmeng-xue Dec 4, 2020
66952b3
Merge branch 'master' into release-2020-12-08-v2
dingmeng-xue Dec 4, 2020
ff33d07
Merge pull request #13663 from Azure/release-2020-12-08-v2
dingmeng-xue Dec 4, 2020
b1a080a
bugfix for remove cmdlet to delete config (#13655)
kilobyte97 Dec 6, 2020
f206eea
Removed link syntax. (#13658)
jdmartinez36 Dec 6, 2020
940ed08
Fix typo (#13629)
isra-fel Dec 7, 2020
32b451b
Fixed location completer for NewAutomationUpdateManagementAzureQuery …
assing Dec 7, 2020
d408520
Fix SetAlert Cmdlet - add new parameter to be able to use the new ale…
yibirnba Dec 7, 2020
ce2f5dd
Update PSMetricNoDetails.cs (#13676)
DavidKlempfner Dec 7, 2020
358af6f
Update Set-AzSqlDatabase.md (#13674)
shshakya Dec 7, 2020
3b71064
removed marketing language, better example filter (#13671)
AndreasWolter Dec 7, 2020
6aca453
Fix swap between title and code in documentation (#13666)
MasterKuat Dec 7, 2020
1685d44
[Synapse] Add new cmdlets related to SQL security on Synapse SQL pool…
wonner Dec 7, 2020
c624a64
Fixed spelling mistake (#13677)
DavidKlempfner Dec 7, 2020
a94b472
Support "Move-Generation2Master" script for full path input (#13660)
Youri970410 Dec 7, 2020
ff4d800
fix missing return object (#13688)
BethanyZhou Dec 9, 2020
c1a0878
initial commit (#13680)
sambitratha Dec 9, 2020
93608d3
Fix the handling of long-running operation statuses for New-AzManaged…
ilahat Dec 9, 2020
b2d1d8b
[Synapse] Fix deserialization issue for creating Pipeline/Dataset/Tri…
wonner Dec 9, 2020
2ac2452
[Storage] Support Encryption Scope (#13610)
blueww Dec 9, 2020
dc1cec4
Remove extra brackets (#13689)
Youri970410 Dec 9, 2020
5d651e6
[Synapse] - Support polling for artifacts cmdlets (#13701)
idear1203 Dec 9, 2020
a5d00a0
[Storage] Upgrade Azure.Storage.Queues to 12.5.0 (#13614)
blueww Dec 10, 2020
377d518
Update Set-AzContext.md (#13702)
nukeulis Dec 10, 2020
e6fd414
[Tool] Fix some issues in tools and pipeline (#13706)
wyunchi-ms Dec 11, 2020
dafc0d9
[Az.PolicyInsights] Returning paginated results from Get-AzPolicyStat…
hakashya Dec 12, 2020
ec42120
Removed Subscription ID (#13715)
ryanborMSFT Dec 12, 2020
3512e9a
selective restore key for a managed hsm backup (#13627)
BethanyZhou Dec 12, 2020
352befd
Improve long running operation debug log (#13612)
isra-fel Dec 14, 2020
11014e2
Update Start-AzJitNetworkAccessPolicy.md - Fix the Example to display…
PaulHCode Dec 14, 2020
86ac7cc
Fixed parameter description for InstanceFailoverGroup command (#13722)
urosmil Dec 14, 2020
b0b61c9
Add saved query cmdlets (#13422)
dolauli Dec 14, 2020
a97d1d2
Update MoveFromGeneration2Master.ps1 (#13728)
dolauli Dec 14, 2020
def340e
New module for Security insights (Azure Sentinel) Resource Provider (…
Dec 14, 2020
014e18b
Update Set-AzFirewall.md (#13727)
kongou-ae Dec 14, 2020
153d220
updated release notes for Az.ResourceGraph (#13734)
dingmeng-xue Dec 14, 2020
91f1b75
Az.Tools.Predictor refactor and performance improvement. (#13669)
kceiw Dec 15, 2020
83d920a
[Synapse] - Fixed deserialization error when create Pipeline/Dataset…
idear1203 Dec 15, 2020
4f94e7b
Get-AzKeyVaultSecret can -AsPlainText (#13730)
isra-fel Dec 15, 2020
4eb4bd6
Update Get-AzRecoveryServicesBackupItem.md (#13719)
Spacebjorn Dec 15, 2020
1760f45
Merge VVD update to master (#13718)
dolauli Dec 15, 2020
71b07de
Move Communication and RedisEnterpriseCache to master branch (#13729)
dolauli Dec 15, 2020
dc7b14f
[Tool]Add PoliCheck policy for CloudService (#13707)
wyunchi-ms Dec 15, 2020
325a226
comments smoke test for DesktopVirtualization (#13752)
BethanyZhou Dec 16, 2020
4b2b765
Deployment Scripts GA - update api-version (#13737)
jorgecotillo Dec 16, 2020
29ff833
Fixing SQL AG restore, removing the container name check (#13744)
hiaga Dec 16, 2020
219620f
Fix secure string issue (#13741) (#13754)
msJinLei Dec 16, 2020
de80a83
[DataFactory]Fix the command `Invoke-AzDataFactoryV2Pipeline` for Sup…
Jingshu923 Dec 16, 2020
42b6219
Enable support for multi auth for p2sVpnGateway (#13749)
neethirshetty Dec 16, 2020
145599a
Revert "Enable support for multi auth for p2sVpnGateway (#13749)" (#1…
neethirshetty Dec 17, 2020
c4819ce
Textual modifications to SecurityJitNetworkAccessPolicy help file (#1…
ariklin Dec 17, 2020
a6ba816
Update Reset-AzP2sVpnGateway.md (#13765)
Lochiluk Dec 17, 2020
785b3d7
[Synapse] Add new cmdlets related to SQL rule baseline and sensitivit…
idear1203 Dec 17, 2020
1115f68
[HDInsight]Add properties: `Fqdn` and `EffectiveDiskEncryptionKeyUrl`…
aim-for-better Dec 17, 2020
c9fcb7e
Fix Status and StatusMessage fields in Get-AzSqlDatabaseImportExportS…
sredman Dec 17, 2020
851fab3
Add local parameter value map to Az.Predictor (#13739)
yemohyle Dec 18, 2020
0a8c538
SQL Data Classification - Update id split logic (#13746)
bashahee Dec 18, 2020
5acf8ec
Prediction/Commands Service API v2 updates (#13767)
jjaguirre394 Dec 18, 2020
4519e29
Kusto update with API version 2020-09-18 (#13776)
dolauli Dec 18, 2020
4101017
Get-AzVMDSCExtension and Get-AzVMDSCExtensionStatus new parameter set…
Sandido Dec 18, 2020
74ae461
Fix the path issue (#13783)
Youri970410 Dec 20, 2020
9bb2a9a
Changed container name format for Azure Files backup item (#13781)
sambitratha Dec 20, 2020
efe9e19
fix 13687 (#13778)
isra-fel Dec 20, 2020
9dae391
Stop when test fails (#13780)
dolauli Dec 20, 2020
f220a97
[KeyVault] Fix minor bugs (#13779)
isra-fel Dec 20, 2020
4097cfe
Remove Newtonsoft dependency (#13787)
jjaguirre394 Dec 20, 2020
97c36d1
Add Code and tests for Bot Service (#13782)
Youri970410 Dec 20, 2020
4cbc080
Revert "Stop when test fails (#13780)" (#13789)
dolauli Dec 21, 2020
0e36c44
Update the Azure-powershell-modules (#13793)
Youri970410 Dec 21, 2020
ca615cb
Regenerated DedicatedHSM and Databricks (#13792)
isra-fel Dec 21, 2020
3d9ca1d
SQL Server DevOps auditing support (#13788)
OlegSternbergIBM Dec 21, 2020
cfa3c8e
Load assemblies from PreloadAssemblies (#13799)
dingmeng-xue Dec 21, 2020
376dac3
Lengthen name suffix to reduce conflict (#13800)
dingmeng-xue Dec 22, 2020
754ff17
Update changelog for upcoming release (#13798)
dingmeng-xue Dec 22, 2020
9656d85
Fix the test of CloudService (#13807)
wyunchi-ms Dec 22, 2020
5201f9f
OOB has been done for WVD, these are related changes need to be merge…
dolauli Dec 22, 2020
0d8992a
Pipeline should stop when test fails (#13804)
dolauli Dec 22, 2020
a671afe
upgrade Azure.Core to 1.7 (#13805)
erich-wang Dec 22, 2020
4a8d496
Delete the useless case for costmanagement (#13810)
Youri970410 Dec 23, 2020
1498251
add liveonly test case for secret management extension (#13809)
BethanyZhou Dec 23, 2020
4b187b1
Update the Warning message (#13821)
Youri970410 Dec 23, 2020
6d1ec80
Update New-AzHostGroup.md (#13814)
grizzlytheodore Dec 23, 2020
d6e0580
Fix the test framework for test. (#13803)
kceiw Dec 23, 2020
bc2f780
Fix cases and utils script for 'BotService' (#13813)
Youri970410 Dec 23, 2020
622bd3e
Change Get-AzAlertHistory title and description (#13816)
hutzleo Dec 23, 2020
4a33f21
[Az.RecoveryServices.Backup] Customer Managed Key Encryption for rec…
hiaga Dec 24, 2020
89c1a4d
[KubernetesConfiguration] Upgrade API version from 2019-11-01-preview…
LucasYao93 Dec 25, 2020
84456d0
Update example (#13837)
javiermarasco Dec 25, 2020
ef65c5d
release-2020-12-29 (#13839)
dingmeng-xue Dec 25, 2020
2ab9cdb
Merge branch 'master' into release-2020-12-29-v2
dingmeng-xue Dec 28, 2020
091881b
Merge pull request #13849 from Azure/release-2020-12-29-v2
dingmeng-xue Dec 28, 2020
8ace58a
Allow Get-AzLogicAppTriggerHistory and Get-AzLogicAppRunAction to ret…
mikejwhat Dec 29, 2020
0f291f6
Fixed issue where description was not populated for update management…
assing Dec 29, 2020
84b03de
[Az.RecoveryServices.Backup] Workload Recovery config, disallowing ta…
hiaga Dec 30, 2020
1f77b70
Update Set-AzVirtualNetwork.md (#13857)
jhaprakash26 Dec 30, 2020
aa31f21
Updated changelog and added missing feature (#13867)
dingmeng-xue Jan 4, 2021
49ff298
Update New-AzStorageTableStoredAccessPolicy.md (#13871)
MichaelHolmesWP Jan 6, 2021
39a1633
Update Set-AzSecurityWorkspaceSetting.md (#13877)
ivanakcheurov Jan 6, 2021
4b578ee
#10518-webapp: Support the new appservice Managed certificates (#13441)
Kotasudhakarreddy Jan 6, 2021
1d97a57
[CosmosDB] GA of Az.CosmosDB module (#13875)
MehaKaushik Jan 7, 2021
71e05a6
{IoT Hub} Fixed issue in SAS token generation (#13881)
c-ryan-k Jan 7, 2021
3042f43
Fix bug causing Docker Password to be removed from appsettings in Set…
Willem-J-an Jan 7, 2021
c7c3e46
[Storage] Fix ContinuationToken never null in list blob include versi…
blueww Jan 7, 2021
e8a9ac3
[MONITOR] Data Collection Rules 2019-11-01-preview - New Cmdlets (#13…
herreraj-ms Jan 7, 2021
437be7a
[Az.RecoveryServices.Backup] Adding Cross Region Restore feature (#13…
hiaga Jan 8, 2021
411f4df
Merge MySql enhancement from generation to master (#13796)
msJinLei Jan 8, 2021
56b4197
Added support for -QueryString parameter in New-Az*Deployments cmdlet…
Xynoclafe Jan 8, 2021
a889b67
[Synapse] - refine restore sqlpool (#13888)
idear1203 Jan 8, 2021
64f4254
Az.CosmosDB GA (#13907)
dingmeng-xue Jan 11, 2021
bb63824
Rename some help files (#13900)
Youri970410 Jan 11, 2021
3d473e4
Pass principal type during role assignment put operations (#13590)
dagoroz Jan 11, 2021
c205cc3
Flexible server of PostgreSql (#13890)
msJinLei Jan 11, 2021
26d9385
[CosmosDB] Bugfix: Added missing property in Sql Container Resource (…
MehaKaushik Jan 11, 2021
b66c720
Remove PowerShell Core myget feed (#13923)
dingmeng-xue Jan 12, 2021
04d572e
[SQL] [LogReplay] Make Start-AzSqlInstanceDatabaseLogReplay synchrono…
milanbrkic-ms Jan 12, 2021
2dfba54
polish changelog for upcoming release (#13918)
dingmeng-xue Jan 12, 2021
7baa17e
Merged with master
MikhailTryakhov Jan 12, 2021
70ebe3b
Codegen for addomainservices (#13914)
dolauli Jan 12, 2021
a9099b0
Merge branch 'master' into mitryakh/merge-conflicts
isra-fel Jan 12, 2021
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.
162 changes: 145 additions & 17 deletions .azure-pipelines/daily-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,148 @@ schedules:

pr: none

pool:
vmImage: 'windows-2019'

steps:
- task: DotNetCoreCLI@2
displayName: Build for Version Bump
inputs:
command: 'custom'
custom: 'msbuild'
arguments: 'build.proj'

- task: ComponentGovernanceComponentDetection@0
displayName: Component Detection
inputs:
scanType: 'Register'
verbosity: 'Normal'
alertWarningLevel: 'High'
jobs:
- job: DailyBuild
timeoutInMinutes: 180
pool:
vmImage: 'windows-2019'
steps:
- task: PowerShell@2
displayName: 'Initialization'
inputs:
targetType: 'inline'
script: |
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
# Avoid issue of filename too long
git config --global core.longpaths true
# Wipe any changes from a previous branch
git clean -xdf

- task: PowerShell@2
displayName: Prepare Powershell $(PSVersion)
inputs:
filePath: 'tools/Test/SmokeTest/PrepareRequiredPowershell.ps1'
arguments: '-RequiredPsVersion $(PSVersion)'

- task: PowerShell@2
displayName: 'Install platyPS'
inputs:
targetType: 'inline'
script: |
$command = "`$PSVersionTable `
Install-Module platyPS -Force -Confirm:`$false -Scope CurrentUser `
Exit"
dotnet tool run pwsh -c $command

- task: DotNetCoreCLI@2
displayName: 'Build for Bumping Version'
inputs:
command: custom
custom: msbuild
arguments: 'build.proj /t:"Build" /p:"Configuration=Release"'

- task: PowerShell@2
displayName: 'Bump Version'
inputs:
targetType: 'inline'
script: |
$command = "`$PSVersionTable `
./tools/RunVersionController.ps1 -MonthName $(MonthName) -Year $(Year) `
Exit"
dotnet tool run pwsh -c $command

# - task: PowerShell@2
# displayName: 'Push to Branch internal/dailybuild'
# inputs:
# targetType: 'inline'
# script: |
# git config user.email "[email protected]"
# git config user.name "azuresdkci"
# git remote set-url origin https://$(Token)@github.com/Azure/azure-powershell.git
# git checkout -b internal/dailybuild
# git add .
# git commit -m "Bump Version"
# git status
# git push -u origin internal/dailybuild --force

- task: PowerShell@2
displayName: 'Clean artifacts folder'
inputs:
targetType: 'inline'
script: |
Remove-Item -Force -Recurse -Path artifacts

- task: DotNetCoreCLI@2
displayName: 'Build after Version Bump up'
inputs:
command: custom
custom: msbuild
arguments: 'build.proj /t:Build /p:Configuration=Release'

- task: EsrpCodeSigning@1
inputs:
ConnectedServiceName: '$(signServiceConnection)'
FolderPath: 'artifacts'
Pattern: |
Release/**/Microsoft*Azure*PowerShell*Cmdlets*.dll
Release/**/Az.*.private.dll
Release/**/Microsoft.Azure.PowerShell.Authentication.dll
Release/**/Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll
Release/**/Microsoft.Azure.PowerShell.Authenticators.dll
!Release/**/Microsoft*Azure*PowerShell*Cmdlets*.Test.dll
UseMinimatch: true
signConfigType: 'inlineSignParams'
inlineOperation: |
[
{
"KeyCode": "CP-233863-SN",
"OperationCode": "StrongNameSign",
"Parameters": {},
"ToolName": "sign",
"ToolVersion": "1.0"
},
{
"KeyCode": "CP-233863-SN",
"OperationCode": "StrongNameVerify",
"Parameters": {},
"ToolName": "sign",
"ToolVersion": "1.0"
},
{
"KeyCode": "CP-230012",
"OperationCode": "SigntoolSign",
"Parameters": {
"OpusName": "Microsoft",
"OpusInfo": "http://www.microsoft.com",
"FileDigest": "/fd \"SHA256\"",
"PageHash": "/NPH",
"TimeStamp": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
},
"ToolName": "sign",
"ToolVersion": "1.0"
},
{
"KeyCode": "CP-230012",
"OperationCode": "SigntoolVerify",
"Parameters": {},
"ToolName": "sign",
"ToolVersion": "1.0"
}
]
SessionTimeout: '60'
MaxConcurrency: '50'
MaxRetryAttempts: '5'

- task: DotNetCoreCLI@2
displayName: Publish
inputs:
command: custom
custom: msbuild
arguments: 'build.proj /t:Publish /p:Configuration=Release;NuGetKey=$(NuGetKey)'

- task: PublishPipelineArtifact@0
displayName: 'Save artifacts'
inputs:
artifactName: artifacts
targetPath: artifacts
condition: succeededOrFailed()
93 changes: 93 additions & 0 deletions .azure-pipelines/sign-tool-predictor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
pr: none
trigger: none
pool:
vmImage: 'windows-2019'

steps:
- task: PowerShell@2
displayName: Install PS 7.1.0-preview.7
inputs:
targetType: 'inline'
script: |
$url = "https://github.com/PowerShell/PowerShell/releases/download/v7.1.0-preview.7/PowerShell-7.1.0-preview.7-win-x64.zip"
$output = Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.1.0-preview.7-win-x64.zip"
(New-Object System.Net.WebClient).DownloadFile($url, $output)
$pwshPath= Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.1.0-preview.7/"
Expand-Archive -Path $output -DestinationPath $pwshPath
$pwshFullPath = Convert-Path $pwshPath
Write-Host $pwshFullPath
- task: PowerShell@2
displayName: 'Install platyPS, PowerShellGet, Az 3.0.0'
inputs:
targetType: inline
script: |
$pwshPath= Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.1.0-preview.7/pwsh.exe"
$command = "`$PSVersionTable `
Install-Module platyPS -Force -Confirm:`$false -Scope CurrentUser `
Install-Module PowerShellGet -Force -Confirm:`$false -Scope CurrentUser -SkipPublisherCheck `
Install-Module Az -Repository PSGallery -RequiredVersion 3.0.0 -Confirm:`$false -Scope CurrentUser -AllowClobber -Force"
Invoke-Command -ScriptBlock { param ($pwshPath, $command) & $pwshPath -Command $command } -ArgumentList $pwshPath, $command
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 5.0.100-rc.1.20452.10

- task: DotNetCoreCLI@2
displayName: 'Build'
inputs:
command: custom
custom: msbuild
arguments: 'tools\Az.Tools.Predictor\build.proj /target:"Clean;Build" /p:Configuration=Release'

- task: EsrpCodeSigning@1
displayName: 'Signing'
inputs:
ConnectedServiceName: $(signServiceConnection)
FolderPath: artifacts
Pattern: |
Tools/**/*.ps1
Tools/**/*.psd1
Tools/**/*.psm1
Tools/**/*.ps1xml
UseMinimatch: true
signConfigType: inlineSignParams
inlineOperation: |
[
{
"KeyCode": "CP-230012",
"OperationCode": "SigntoolSign",
"Parameters": {
"OpusName": "Microsoft",
"OpusInfo": "http://www.microsoft.com",
"FileDigest": "/fd \"SHA256\"",
"PageHash": "/NPH",
"TimeStamp": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
},
"ToolName": "sign",
"ToolVersion": "1.0"
},
{
"KeyCode": "CP-230012",
"OperationCode": "SigntoolVerify",
"Parameters": {},
"ToolName": "sign",
"ToolVersion": "1.0"
}
]
- task: DotNetCoreCLI@2
displayName: Package
inputs:
command: custom
custom: msbuild
arguments: 'tools\Az.Tools.Predictor\build.proj /target:"Package" /p:Configuration=Release /p:PowerShellCoreCommandPrefix="$(Pipeline.Workspace)\\PowerShell-7.1.0-preview.7\\pwsh.exe -NonInteractive -NoLogo -NoProfile -Command" '

- task: PublishPipelineArtifact@0
displayName: 'Save artifacts'
inputs:
artifactName: artifacts
targetPath: artifacts
condition: succeededOrFailed()
4 changes: 2 additions & 2 deletions .azure-pipelines/util/test-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ steps:
Install-Module -Name Pester -RequiredVersion 4.10.1 -Force -SkipPublisherCheck
Install-Module -Name Az.Accounts -Scope CurrentUser -Force
$env:PSModulePath = $env:PSModulePath + ";" + (pwd).Path
Get-ChildItem -Directory Az.* | ForEach-Object {if (Test-Path $_/test-module.ps1) {cd $_; ./test-module.ps1}}
Get-ChildItem -File -Recurse -Depth 1 test-module.ps1 | ForEach-Object {. $_; if ($LastExitCode -ne 0) {throw "test fails when executing $_"}}
workingDirectory: 'artifacts/Debug'
displayName: Test for AutoGen Modules With Windows PowerShell
condition: and(succeeded(), ne('${{ parameters.testTarget }}', 'Test'))
Expand All @@ -42,7 +42,7 @@ steps:
Install-Module -Name Az.Accounts -Scope CurrentUser -Force
if ($IsWindows) { $sp = ";" } else { $sp = ":" }
$env:PSModulePath = $env:PSModulePath + $sp + (pwd).Path
Get-ChildItem -Directory Az.* | ForEach-Object {if (Test-Path $_/test-module.ps1) {cd $_; ./test-module.ps1}}
Get-ChildItem -File -Recurse -Depth 1 test-module.ps1 | ForEach-Object {. $_; if ($LastExitCode -ne 0) {throw "test fails when executing $_"}}
workingDirectory: 'artifacts/Debug'
displayName: 'Test for AutoGen Modules With PowerShell Core'
condition: and(succeeded(), eq('${{ parameters.testTarget }}', 'Test'))
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/windows-powershell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
displayName: 'Download BinSkim'
inputs:
command: custom
arguments: 'install Microsoft.CodeAnalysis.BinSkim -OutputDirectory $(System.DefaultWorkingDirectory)/tools/SecurityTools'
arguments: 'install Microsoft.CodeAnalysis.BinSkim -OutputDirectory $(System.DefaultWorkingDirectory)/tools/SecurityTools -Version 1.7.0'
- task: PowerShell@2
displayName: 'Run BinSkim'
inputs:
Expand Down
Loading