Skip to content

Commit 1c84b1e

Browse files
authored
Merge branch 'Azure:main' into DeploymentStacks
2 parents 1d4bb71 + f258ced commit 1c84b1e

File tree

2,386 files changed

+724173
-350112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,386 files changed

+724173
-350112
lines changed

.azure-pipelines/powershell-core.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ variables:
99
TestTarget: Test
1010
Configuration: Debug
1111
DebugLocalBuildTasks: true
12+
IsGenerateBased: $[eq(variables['system.pullRequest.targetBranch'], 'generation')]
13+
BuildTimeoutInMinutes: 120
14+
AnalysisTimeoutInMinutes: 120
1215

1316
trigger: none
1417

@@ -23,6 +26,7 @@ jobs:
2326
- job: Build
2427
displayName: Build
2528
condition: succeeded()
29+
timeoutInMinutes: ${{ variables.BuildTimeoutInMinutes }}
2630
strategy:
2731
matrix:
2832
windows:
@@ -31,8 +35,8 @@ jobs:
3135
linux:
3236
OSName: ${{ variables.LinuxName }}
3337
ImageName: ${{ variables.LinuxImage }}
34-
macOS:
35-
OSName: ${{ variables.MacOSName }}
38+
macOS:
39+
OSName: ${{ variables.MacOSName }}
3640
ImageName: ${{ variables.MacOSImage }}
3741
pool:
3842
vmImage: $(ImageName)
@@ -48,7 +52,7 @@ jobs:
4852
displayName: Analyze
4953
dependsOn: Build
5054
condition: succeeded()
51-
timeoutInMinutes: 90
55+
timeoutInMinutes: ${{ variables.AnalysisTimeoutInMinutes }}
5256
strategy:
5357
matrix:
5458
windows:
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
resources:
2+
repositories:
3+
- repository: self
4+
type: git
5+
ref: main
6+
7+
trigger:
8+
branches:
9+
include:
10+
- main
11+
paths:
12+
include:
13+
- .azure-pipelines
14+
- tools
15+
- src/lib
16+
17+
variables:
18+
GenerationBranchName: generation
19+
AzureStackBranchName: Azs-tzl
20+
21+
jobs:
22+
- job: Sync
23+
displayName: Sync task
24+
condition: succeeded()
25+
strategy:
26+
matrix:
27+
Generation:
28+
BranchName: ${{ variables.GenerationBranchName }}
29+
AzureStack:
30+
BranchName: ${{ variables.AzureStackBranchName }}
31+
32+
steps:
33+
- template: util/sync-tools-folder-template.yml
34+
parameters:
35+
BranchName: $(BranchName)

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@ steps:
66
- template: download-build-steps.yml
77
parameters:
88
osName: ${{ parameters.osName }}
9+
- task: NodeTool@0
10+
condition: eq(variables.IsGenerateBased, true)
11+
displayName: Install autorest
12+
inputs:
13+
versionSpec: '14.17.1'
14+
command: custom
15+
verbose: false
16+
customCommand: install autorest@latest
17+
- task: PowerShell@2
18+
condition: eq(variables.IsGenerateBased, true)
19+
displayName: Setup environment for autorest
20+
inputs:
21+
targetType: inline
22+
script: "$env:NODE_OPTIONS=\"--max-old-space-size=65536\""
23+
pwsh: true
924

1025
- task: UseDotNet@2
1126
displayName: 'Use .NET Core sdk'

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ parameters:
44
configuration: ''
55

66
steps:
7+
- task: NodeTool@0
8+
condition: eq(variables.IsGenerateBased, true)
9+
displayName: Install autorest
10+
inputs:
11+
versionSpec: '14.17.1'
12+
command: custom
13+
verbose: false
14+
customCommand: install autorest@latest
15+
- task: PowerShell@2
16+
condition: eq(variables.IsGenerateBased, true)
17+
displayName: Setup environment for autorest
18+
inputs:
19+
targetType: inline
20+
script: "$env:NODE_OPTIONS=\"--max-old-space-size=65536\""
21+
pwsh: true
722
- task: PowerShell@2
823
displayName: 'Check Ingored File'
924
inputs:
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
parameters:
2+
BranchName: ''
3+
4+
steps:
5+
- checkout: self
6+
- task: PowerShell@2
7+
displayName: Save folders need to be sync
8+
inputs:
9+
targetType: inline
10+
script: >-
11+
cp .azure-pipelines .azure-pipelines-tmp -r
12+
13+
cp src/lib src/lib-tmp -r
14+
15+
cp tools tools-tmp -r
16+
pwsh: true
17+
- task: PowerShell@2
18+
displayName: Config git
19+
inputs:
20+
targetType: inline
21+
script: >-
22+
git config --global user.email "[email protected]"
23+
24+
git config --global user.name "azurepowershell"
25+
26+
git checkout -b syncToolsFolder-${{ parameters.BranchName }} origin/${{ parameters.BranchName }}
27+
pwsh: true
28+
- task: PowerShell@2
29+
displayName: Sync .azure-pipelines folder from main to ${{ parameters.BranchName }}
30+
inputs:
31+
targetType: inline
32+
script: >-
33+
rm .azure-pipelines -r
34+
35+
mv .azure-pipelines-tmp .azure-pipelines
36+
37+
git add .azure-pipelines
38+
pwsh: true
39+
- task: PowerShell@2
40+
displayName: Sync src/lib folder from main to ${{ parameters.BranchName }}
41+
inputs:
42+
targetType: inline
43+
script: >-
44+
rm src/lib -r
45+
46+
mv src/lib-tmp src/lib
47+
48+
git add src/lib
49+
pwsh: true
50+
- task: PowerShell@2
51+
displayName: Sync tools folder from main to ${{ parameters.BranchName }}
52+
inputs:
53+
targetType: inline
54+
script: >-
55+
rm tools -r
56+
57+
mv tools-tmp tools
58+
59+
git add tools
60+
61+
git commit -m "Sync tools folder from main branch to ${{ parameters.BranchName }} branch"
62+
63+
git remote set-url origin https://$env:[email protected]/Azure/azure-powershell.git
64+
65+
git push origin syncToolsFolder-${{ parameters.BranchName }} --force
66+
pwsh: true
67+

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,21 @@ steps:
88
- template: download-build-steps.yml
99
parameters:
1010
osName: ${{ parameters.osName }}
11+
- task: NodeTool@0
12+
condition: eq(variables.IsGenerateBased, true)
13+
displayName: Install autorest
14+
inputs:
15+
versionSpec: '14.17.1'
16+
command: custom
17+
verbose: false
18+
customCommand: install autorest@latest
19+
- task: PowerShell@2
20+
condition: eq(variables.IsGenerateBased, true)
21+
displayName: Setup environment for autorest
22+
inputs:
23+
targetType: inline
24+
script: "$env:NODE_OPTIONS=\"--max-old-space-size=65536\""
25+
pwsh: true
1126

1227
- task: UseDotNet@2
1328
displayName: 'Use .NET Core sdk'

.azure-pipelines/windows-powershell.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ variables:
55
TestTarget: Test
66
Configuration: Debug
77
DebugLocalBuildTasks: true
8+
IsGenerateBased: $[eq(variables['system.pullRequest.targetBranch'], 'generation')]
89

910
trigger: none
1011

@@ -18,7 +19,7 @@ pr:
1819
jobs:
1920
- job: Build
2021
displayName: Build
21-
condition: succeeded()
22+
condition: and(eq(variables.IsGenerateBased, false), succeeded())
2223
pool:
2324
vmImage: ${{ variables.WindowsImage }}
2425

@@ -35,7 +36,7 @@ jobs:
3536
- job: Analyze
3637
displayName: Analyze
3738
dependsOn: Build
38-
condition: succeeded()
39+
condition: and(eq(variables.IsGenerateBased, false), succeeded())
3940
timeoutInMinutes: 90
4041
pool:
4142
vmImage: ${{ variables.WindowsImage }}
@@ -66,7 +67,7 @@ jobs:
6667
- job: Test
6768
displayName: Test
6869
dependsOn: Build
69-
condition: succeeded()
70+
condition: and(eq(variables.IsGenerateBased, false), succeeded())
7071
timeoutInMinutes: 180
7172
pool:
7273
vmImage: ${{ variables.WindowsImage }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ src/Stack/
55
src/local-artifacts/*
66
/tools/AzureRM/AzureRM.psm1
77
!.placeholder
8+
SecurityTmp/
9+
tmp/
10+
FilesChanged.txt
11+
CsprojMappings.json
812

913
obj
1014
bin

ChangeLog.md

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,131 @@
1+
## 6.2.1 - July 2021
2+
#### Az.Accounts
3+
* Fixed access error when subscripiton has no 'Tags' property [#15425].
4+
5+
## 6.2.0 - July 2021
6+
#### Az.Accounts
7+
* Added Tags, AuthorizationSource to PSAzureSusbscripiton and added TenantType, DefaultDomain, TenantBrandingLogoUrl, CountryCode to PSAzureTenant [#15220]
8+
* Upgraded subscription client to 2021-01-01 [#15220]
9+
* Removed Interactive mode check in common lib
10+
* Added endpoint of OperationalInsights to environment AzureChinaCloud [#15305]
11+
* Printed auto generated modules' default logs to verbose stream
12+
13+
#### Az.Aks
14+
* Added parameter 'AvailabilityZone' for 'New-AzAksNodePool'. [#14505]
15+
16+
#### Az.ApplicationInsights
17+
* Added read only property 'ConnectionString' and 'ApplicationId' to applicationinsights component
18+
19+
#### Az.Compute
20+
* Added optional parameter '-OrchestrationMode' to 'New-AzVmss' and 'New-AzVmssConfig'
21+
* Updated the following cmdlets to work when the resource uses a remote image source using AKS or Shared Image Gallery.
22+
- 'Update-AzVm'
23+
- 'Update-AzVmss'
24+
- 'Update-AzGalleryImageVersion'
25+
* Added parameters '-EnableCrossZoneUpgrade' and '-PrioritizeUnhealthyInstance' to the 'Set-AzVmssRollingUpgradePolicy'
26+
* Added 'AssessmentMode' parameter to the 'Set-AzVMOperatingSystem' cmdlet.
27+
* Fixed a bug in 'Add-AzVmssNetworkInterfaceConfiguration'
28+
* Fixed IOPS and throughput check in 'Test-AzVMAEMExtension'
29+
* Added new cmdlets for 2020-12-01 DiskRP API version
30+
- New-AzDiskPurchasePlanConfig
31+
- Set-AzDiskSecurityProfile
32+
* Changed Cmdlets for 2020-12-01 DiskRP API version
33+
- New-AzDiskConfig
34+
- New-AzSnapshotConfig
35+
- New-AzSnapshotUpdateConfig
36+
- New-AzDiskUpdateConfig
37+
- New-AzDiskEncryptionSetConfig
38+
- Update-AzDiskEncryptionSet
39+
40+
#### Az.CosmosDB
41+
* This release introduces the cmdlets for the features of Continuous Backup(Point in time restore):
42+
- Introduced support for creating accounts with continuous mode backup policy.
43+
- Introduced support for Point in time restore for accounts with continuous mode backup policy.
44+
- Introduced support to update the backup interval and backup retention for accounts with periodic mode backup policy.
45+
- Introduced support to list the restorable resources in a live database account.
46+
- Introduces support to specify analytical storage schema type on account creation/update.
47+
- The following cmdlets are added:
48+
- Restore-AzCosmosDBAccount, New-AzCosmosDBDatabaseToRestore, Get-AzCosmosDBRestorableDatabaseAccount,
49+
- Get-AzCosmosDBSqlRestorableDatabase, Get-AzCosmosDBSqlRestorableContainer, Get-AzCosmosDBSqlRestorableResource,
50+
- Get-AzCosmosDBMongoDBRestorableDatabase, Get-AzCosmosDBMongoDBRestorableCollection, Get-AzCosmosDBMongoDBRestorableResource.
51+
52+
#### Az.DataFactory
53+
* Added Customer Managed Key Encryption to DataFactory
54+
55+
#### Az.Functions
56+
* Added two additional app settings (WEBSITE_CONTENTSHARE and WEBSITE_CONTENTAZUREFILECONNECTIONSTRING) for Linux Consumption apps. [15124]
57+
* Fixed bug with New-AzFunctionApp when created on Azure Gov. [13379]
58+
* Added Az.Functions cmdlets need to support creating and copying app settings with empty values. [14511]
59+
60+
#### Az.Monitor
61+
* Fixed null reference bug for 'Get-AzMetric' when 'ResultType' set to 'Metadata'
62+
* Fixed bug for 'Add-AzAutoscaleSetting' not able to pipe result from 'Get-AzAutoscaleSetting' [#13861]
63+
64+
#### Az.Network
65+
* Added public ip address as an optional parameter to create route server
66+
- 'New-AzRouteServer'
67+
* Updated cmdlets to enable specification of edge zone
68+
- 'New-AzPublicIpPrefix'
69+
- 'New-AzLoadBalancer'
70+
- 'New-AzPrivateLinkService'
71+
- 'New-AzPrivateEndpoint'
72+
* Added support for viewing extended location of virtual network in the console
73+
- 'New-AzVirtualNetwork'
74+
- 'Get-AzVirtualNetwork'
75+
* Added support for viewing extended location of public IP address in the console
76+
- 'New-AzPublicIpAddress'
77+
- 'Get-AzPublicIpAddress'
78+
79+
#### Az.RecoveryServices
80+
* Fixed Disable SQL AG AutoProtection.
81+
82+
#### Az.Security
83+
* General availability of Az.Security module
84+
* Changed the name of Get-AzRegulatoryComplainceAssessment to Get-AzRegulatoryComplianceAssessment to fix typo
85+
86+
#### Az.Sql
87+
* Added 'RestrictOutboundNetworkAccess' parameter to following cmdlets
88+
- 'New-AzSqlServer'
89+
- 'Set-AzSqlServer'
90+
* Added new cmdlets for CRUD operations on Allowed FQDNs of Outbound Firewall rules
91+
'Get-AzSqlServerOutboundFirewallRule'
92+
'New-AzSqlServerOutboundFirewallRule'
93+
'Remove-AzSqlServerOutboundFirewallRule'
94+
* Fixed the identity logic for SystemAssigned,UserAssigned identities for New-AzSqlServer, New-AzSqlInstance
95+
* Updated cmdlets for getting and updating SQL database's differential backup frequency
96+
'Get-AzSqlDatabaseBackupShortTermRetentionPolicy'
97+
'Set-AzSqlDatabaseBackupShortTermRetentionPolicy'
98+
* Fixed Partial PUT issue for Azure Policy in 'Set-AzSqlServer' and 'Set-AzSqlInstance'
99+
100+
#### Az.Storage
101+
* Supported enable/disable Blob container soft delete
102+
- 'Enable-AzStorageContainerDeleteRetentionPolicy'
103+
- 'Disable-AzStorageContainerDeleteRetentionPolicy'
104+
* Supported list deleted Blob containers
105+
- 'Get-AzRmStorageContainer'
106+
- 'Get-AzStorageContainer'
107+
* Supported restore deleted Blob container
108+
- 'Restore-AzStorageContainer'
109+
* Supported secure SMB setting in File service properties
110+
- 'Update-AzStorageFileServiceProperty'
111+
* Supported create account with EnableNfsV3
112+
- 'New-AzStorageAccount'
113+
* Supported input more copy blob parameters from pipeline [#15301]
114+
- 'Start-AzStorageBlobCopy'
115+
116+
#### Az.Websites
117+
* Fixed 'Import-AzWebAppKeyVaultCertificate' to support ServerFarmId [#15091]
118+
* Fixed 'Added an optional parameter to delete or keep Appservice plan when the last WebApp is removing from plan'
119+
120+
### Thanks to our community contributors
121+
* Mikey Bronowski (@MikeyBronowski)
122+
* Update Get-AzSynapseTriggerRun.md (#15231)
123+
* Update Get-AzSynapsePipelineRun.md by adding more examples covering more scenarios (#15232)
124+
* @mjsharma, Adding note for alternate commands (#15359)
125+
* @tomswedlund, Adding support for setting analytical storage schema type on account create/update for CosmosDB (#15362)
126+
* @ylabade, Fix web app parameter name in examples (#15291)
127+
128+
1129
## 6.1.0 - June 2021
2130
#### Az.Accounts
3131
* Added cmdlet 'Open-AzSurveyLink'

0 commit comments

Comments
 (0)