Skip to content

Commit be51822

Browse files
committed
Merge branch 'master' of https://github.com/Azure/azure-powershell into xynoclafe/exportTemplateSDK
2 parents 0afed3c + 953a377 commit be51822

File tree

302 files changed

+217482
-100392
lines changed

Some content is hidden

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

302 files changed

+217482
-100392
lines changed

ChangeLog.md

Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,179 @@
1+
## 5.0.0 - October 2020
2+
#### Az.Accounts
3+
* [Breaking Change] Removed 'Get-AzProfile' and 'Select-AzProfile'
4+
* Replaced Azure Directory Authentication Library with Microsoft Authentication Library(MSAL)
5+
6+
#### Az.Aks
7+
* [Breaking Change] Removed parameter alias 'ClientIdAndSecret' in 'New-AzAksCluster' and 'Set-AzAksCluster'.
8+
* [Breaking Change] Changed the default value of 'NodeVmSetType' in 'New-AzAksCluster' from 'AvailabilitySet' to 'VirtualMachineScaleSets'.
9+
* [Breaking Change] Changed the default value of 'NetworkPlugin' in 'New-AzAksCluster' from 'None' to 'azure'.
10+
* [Breaking Change] Removed parameter 'NodeOsType' in 'New-AzAksCluster' as it supports only one value Linux.
11+
12+
#### Az.Billing
13+
* Added 'Get-AzBillingAccount' cmdlet
14+
* Added 'Get-AzBillingProfile' cmdlet
15+
* Added 'Get-AzInvoiceSection' cmdlet
16+
* Added new parameters in 'Get-AzBillingInvoice' cmdlet
17+
* Removed properties DownloadUrlExpiry, Type, BillingPeriodNames from the response of Get-AzBillingInvoice cmdlet
18+
19+
#### Az.Cdn
20+
* Added cmdlets to support multi-origin and private link functionality
21+
22+
#### Az.CognitiveServices
23+
* Updated SDK to 7.4.0-preview.
24+
25+
#### Az.Compute
26+
* Added '-VmssId' parameter to 'New-AzVm'
27+
* Added 'PlatformFaultDomainCount' parameter to the 'New-AzVmss' cmdlet.
28+
* New cmdlet 'Get-AzDiskEncryptionSetAssociatedResource'
29+
* Added 'Tier' and 'LogicalSectorSize' optional parameters to the New-AzDiskConfig cmdlet.
30+
* Added 'Tier', 'MaxSharesCount', 'DiskIOPSReadOnly', and 'DiskMBpsReadOnly' optional parameters to the 'New-AzDiskUpdateConfig' cmdlet.
31+
32+
#### Az.ContainerRegistry
33+
* [Breaking Change] Updates API version to 2020-05-01
34+
* [Breaking Change] Removed SKU 'Classic' and parameter 'StorageAccountName' from 'New-AzContainerRegistry'
35+
* Added New cmdlets: 'Connect-AzContainerRegistry', 'Import-AzContainerRegistry', 'Get-AzContainerRegistryUsage', 'New-AzContainerRegistryNetworkRule', 'Set-AzContainerRegistryNetworkRule'
36+
* Added new parameter 'NetworkRuleSet' to 'Update-AzContainerRegistry'
37+
38+
#### Az.Databricks
39+
* Fixed a bug that may cause updating databricks workspace without `-EncryptionKeyVersion` to fail.
40+
41+
#### Az.DataFactory
42+
* Updated ADF .Net SDK version to 4.12.0
43+
* Updated ADF encryption client SDK version to 4.14.7587.7
44+
* Added 'Stop-AzDataFactoryV2TriggerRun' and 'Invoke-AzDataFactoryV2TriggerRun' commands
45+
46+
#### Az.DesktopVirtualization
47+
* Require Location property for creating top level arm objects.
48+
* Made `ApplicationGroupType` required for `New-AzWvdApplicationGroup`.
49+
* Made `HostPoolArmPath` required for `New-AzWvdApplicationGroup`.
50+
* Added `PreferredAppGroupType` for `New-AzWvdHostPool`.
51+
52+
#### Az.Functions
53+
* [Breaking Change] Removed 'IncludeSlot' switch parameter from all but one parameter set of 'Get-AzFunctionApp'. The cmdlet now supports retrieving deployment slots in the results when '-IncludeSlot' is specified.
54+
* Updated 'New-AzFunctionApp':
55+
- Fixed -DisableApplicationInsights so that no application insights project is created when this option is specified. [#12728]
56+
- [Breaking Change] Removed support to create PowerShell 6.2 function apps.
57+
- [Breaking Change] Changed the default runtime version in Functions version 3 on Windows for PowerShell function apps from 6.2 to 7.0 when the RuntimeVersion parameter is not specified.
58+
- [Breaking Change] Changed the default runtime version in Functions version 3 on Windows and Linux for Node function apps from 10 to 12 when the RuntimeVersion parameter is not specified.
59+
- [Breaking Change] Changed the default runtime version in Functions version 3 on Linux for Python function apps from 3.7 to 3.8 when the RuntimeVersion parameter is not specified.
60+
61+
#### Az.HDInsight
62+
* For New-AzHDInsightCluster cmdlet:
63+
- Replaced parameter 'DefaultStorageAccountName' with 'StorageAccountResourceId'
64+
- Replaced parameter 'DefaultStorageAccountKey' with 'StorageAccountKey'
65+
- Replaced parameter 'DefaultStorageAccountType' with 'StorageAccountType'
66+
- Removed parameter 'PublicNetworkAccessType'
67+
- Removed parameter 'OutboundPublicNetworkAccessType'
68+
- Added new parameters: 'StorageFileSystem' and 'StorageAccountManagedIdentity' to support ADLSGen2
69+
- Added new parameter 'EnableIDBroker' to Support HDInsight ID Broker
70+
- Added new parameters: 'KafkaClientGroupId', 'KafkaClientGroupName' and 'KafkaManagementNodeSize' to support Kafka Rest Proxy
71+
* For New-AzHDInsightClusterConfig cmdlet:
72+
- Replaced parameter 'DefaultStorageAccountName' with 'StorageAccountResourceId'
73+
- Replaced parameter 'DefaultStorageAccountKey' with 'StorageAccountKey'
74+
- Replaced parameter 'DefaultStorageAccountType' with 'StorageAccountType'
75+
- Removed parameter 'PublicNetworkAccessType'
76+
- Removed parameter 'OutboundPublicNetworkAccessType'
77+
* For Set-AzHDInsightDefaultStorage cmdlet:
78+
- Replaced parameter 'StorageAccountName' with 'StorageAccountResourceId'
79+
* For Add-AzHDInsightSecurityProfile cmdlet:
80+
- Replaced parameter 'Domain' with 'DomainResourceId'
81+
- Removed the mandatory requirement for parameter 'OrganizationalUnitDN'
82+
83+
#### Az.KeyVault
84+
* [Breaking Change] Deprecated parameter DisableSoftDelete in 'New-AzKeyVault' and EnableSoftDelete in 'Update-AzKeyVault'
85+
* [Breaking Change] Removed attribute SecretValueText to avoid displaying SecretValue directly [#12266]
86+
* Supported new resource type: managed HSM
87+
- CRUD of managed HSM and cmdlets to operate keys on managed HSM
88+
- Full HSM backup/restore, AES key creation, security domain backup/restore, RBAC
89+
90+
#### Az.ManagedServices
91+
* [Breaking Change] Updated parameters naming conventions and associated examples
92+
93+
#### Az.Network
94+
* [Breaking Change] Removed parameter 'HostedSubnet' and added 'Subnet' instead
95+
* Added new cmdlets for Virtual Router Peer Routes
96+
- 'Get-AzVirtualRouterPeerLearnedRoute'
97+
- 'Get-AzVirtualRouterPeerAdvertisedRoute'
98+
* Updated New-AzFirewall cmdlet:
99+
- Added parameter '-SkuTier'
100+
- Added parameter '-SkuName' and made Sku as Alias for this
101+
- Removed parameter '-Sku'
102+
* [Breaking Change] Made 'Connectionlink' argument mandatory in 'Start-AzVpnConnectionPacketCapture' and 'Stop-AzVpnConnectionPacketCapture'
103+
* [Breaking Change] Updated 'New-AzNetworkWatcherConnectionMonitorEndPointObject' to remove parameter '-Filter'
104+
* [Breaking Change] Replaced 'New-AzNetworkWatcherConnectionMonitorEndpointFilterItemObject' cmdlet with 'New-AzNetworkWatcherConnectionMonitorEndpointScopeItemObject'
105+
* Updated 'New-AzNetworkWatcherConnectionMonitorEndPointObject' cmdlet:
106+
- Added parameter '-Type'
107+
- Added parameter '-CoverageLevel'
108+
- Added parameter '-Scope'
109+
* Updated 'New-AzNetworkWatcherConnectionMonitorProtocolConfigurationObject' cmdlet with new parameter '-DestinationPortBehavior'
110+
111+
#### Az.RecoveryServices
112+
* Fixing Workload Restore for contributor permissions.
113+
* Added new parameter sets and validations for Restore-AzRecoveryServicesBackupItem cmdlet.
114+
115+
#### Az.Resources
116+
* Fixed parsing bug
117+
* Updated ARM template What-If cmdlets to remove preview message from results
118+
* Fixed an issue where template deployment cmdlets crash if '-WhatIf' is set at a higher scope [#13038]
119+
* Fixed an issue where template deployment cmdlets does not preserve case for template parameters
120+
* Added a default API version to be used in 'Export-AzResourceGroup' cmdlet
121+
* Added cmdlets for Template Specs ('Get-AzTemplateSpec', 'Set-AzTemplateSpec', 'New-AzTemplateSpec', 'Remove-AzTemplateSpec', 'Export-AzTemplateSpec')
122+
* Added support for deploying Template Specs using existing deployment cmdlets (via the new -TemplateSpecId parameter)
123+
* Updated 'Get-AzResourceGroupDeploymentOperation' to use the SDK.
124+
* Removed '-ApiVersion' parameter from '*-AzDeployment' cmdlets.
125+
126+
#### Az.Sql
127+
* Added DiffBackupIntervalInHours to 'Set-AzSqlDatabaseBackupShortTermRetentionPolicy'
128+
* Fixed issue where New-AzSqlDatabaseExport fails if networkIsolation not specified [#13097]
129+
* Fixed issue where New-AzSqlDatabaseExport and New-AzSqlDatabaseImport were not returning OperationStatusLink in the result object [#13097]
130+
* Update Azure Paired Regions URL in Backup Storage Redundancy Warnings
131+
132+
#### Az.Storage
133+
* Removed obsolete property RestorePolicy.LastEnabledTime
134+
- 'Enable-AzStorageBlobRestorePolicy'
135+
- 'Disable-AzStorageBlobRestorePolicy'
136+
- 'Get-AzStorageBlobServiceProperty'
137+
- 'Update-AzStorageBlobServiceProperty'
138+
* Change Type of DaysAfterModificationGreaterThan from int to int?
139+
- 'Set-AzStorageAccountManagementPolicy'
140+
- 'Get-AzStorageAccountManagementPolicy'
141+
- 'Add-AzStorageAccountManagementPolicyAction'
142+
- 'New-AzStorageAccountManagementPolicyRule'
143+
* Supported create/update file share with access tier
144+
- 'New-AzRmStorageShare'
145+
- 'Update-AzRmStorageShare'
146+
* Supported set/update/remove Acl recursively on Datalake Gen2 item
147+
- 'Set-AzDataLakeGen2AclRecursive'
148+
- 'Update-AzDataLakeGen2AclRecursive'
149+
- 'Remove-AzDataLakeGen2AclRecursive'
150+
* Supported Container access policy with new permission x,t
151+
- 'New-AzStorageContainerStoredAccessPolicy'
152+
- 'Set-AzStorageContainerStoredAccessPolicy'
153+
* Changed the output of get/set Container access policy cmdlet, by change the child property Permission type from enum to String
154+
- 'Get-AzStorageContainerStoredAccessPolicy'
155+
- 'Set-AzStorageContainerStoredAccessPolicy'
156+
* Fixed a sample script issue of set management policy with json
157+
- 'Set-AzStorageAccountManagementPolicy'
158+
159+
#### Az.Websites
160+
* Added support for Premium V3 pricing tier
161+
* Updated the WebSites SDK to 3.1.0
162+
163+
### Thanks to our community contributors
164+
* @atul-ram, Update Get-AzDelegation.md (#13176)
165+
* @dineshreddy007, Get the App Roles assigned correctly in case of Stack HCI registration using WAC token. (#13249)
166+
* @kongou-ae, Update New-AzOffice365PolicyProperty.md (#13217)
167+
* Lohith Chowdary Chilukuri (@Lochiluk), Update Set-AzApplicationGateway.md (#13150)
168+
* Matthew Burleigh (@mburleigh)
169+
* Add links to PowerShell cmdlets referenced in the document (#13203)
170+
* Add links to PowerShell cmdlets referenced in the document (#13190)
171+
* Add links to PowerShell cmdlets referenced in the document (#13189)
172+
* add links to referenced cmdlets (#13137)
173+
* Add links to PowerShell cmdlets referenced in the document (#13204)
174+
* Add links to PowerShell cmdlets referenced in the document (#13205)
175+
176+
1177
## 4.8.0 - October 2020
2178
#### Az.Accounts
3179
* Fixed DateTime parse issue in common libraries [#13045]
@@ -76,6 +252,15 @@
76252
* Fixed help issue for New-AzStorageAccount parameter -Kind default value [#12189]
77253
* Fixed issue by add example to show how to set correct ContentType in blob upload [#12989]
78254

255+
### Thanks to our community contributors
256+
* @felickz, Clarify escaping special characters in Subject (#13028)
257+
* Martin Zurita (@Gorgoras), Corrected some typos in messages. (#12999)
258+
* @kingsleyAzure
259+
* Add managed hsm uri in regex matching (#12912)
260+
* Add Managed HSM support for SQL (#13073)
261+
* @MasterKuat, Fixed complaint on Managed instance's system database for vulnerability assessment (#12971)
262+
263+
79264
## 4.7.0 - September 2020
80265
#### Az.Accounts
81266
* Formatted the upcoming breaking change messages
@@ -221,6 +406,20 @@
221406
- 'New-AzStorageAccountManagementPolicyRule'
222407
* Upgraded Microsoft.Azure.Cosmos.Table SDK to 1.0.8
223408

409+
### Thanks to our community contributors
410+
* Thomas Van Laere (@ThomVanL), Add Dockerfile-alpine-3.10 (#12911)
411+
* Lohith Chowdary Chilukuri (@Lochiluk), Update Remove-AzNetworkInterfaceIpConfig.md (#12807)
412+
* Roberth Strand (@roberthstrand), Get-AzResourceGroup - New example, and cleanup (#12828)
413+
* Ravi Mishra (@inmishrar), update Azure Web App runtime stack to DOTNETCORE (#12833)
414+
* @jack-education, Updated Set-AzVirtualNetworkSubnetConfig to allow NSG and Route Table to be removed from subnet (#12351)
415+
* @hagop-globanet, Update Add-AzApplicationGatewayCustomError.md (#12784)
416+
* Joshua Van Daalen (@greenSacrifice)
417+
* Update spelling of Property to Property (#12821)
418+
* Update New-AzResourceLock.md examples (#12806)
419+
* Eragon Riddle (@eragonriddle), Corrected parameter field name in the example (#12825)
420+
* @rossifumax, Fix typo in New-AzConfigurationAssignment.md (#12701)
421+
422+
224423
## 4.6.1 - August 2020
225424
#### Az.Compute
226425
* Patched '-EncryptionAtHost' parameter in 'New-AzVm' to remove default value of false [#12776]

LICENSE.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,12 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
225225

226226
***************
227227

228-
The software includes BouncyCastle.NetCore. The MIT License set out below is provided for informational purposes only. It is not the license that governs any part of the software.
228+
The software includes Portable.BouncyCastle. The MIT License set out below is provided for informational purposes only. It is not the license that governs any part of the software.
229229

230-
BouncyCastle.NetCore
230+
Portable.BouncyCastle
231231

232232
LICENSE
233-
Copyright (c) 2000 - 2020 The Legion of the Bouncy Castle Inc. (https://www.bouncycastle.org)
233+
Copyright (c) 2000 - 2017 The Legion of the Bouncy Castle Inc. (http://www.bouncycastle.org)
234234

235235
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
236236

documentation/development-docs/azure-powershell-developer-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The Azure PowerShell Developer Guide was created to help with the development an
4444

4545
The following prerequisites should be completed before contributing to the Azure PowerShell repository:
4646

47-
- Install [Visual Studio 2017](https://www.visualstudio.com/downloads/)
47+
- Install [Visual Studio 2019 or above](https://www.visualstudio.com/downloads/)
4848
- Install the latest version of [Git](https://git-scm.com/downloads)
4949
- Install the [`platyPS` module](help-generation.md#Installing-platyPS)
5050
- Install the latest [**.NET Core SDK** and **.NET Framework Dev Pack 4.7.2**](https://dotnet.microsoft.com/download) or greater

src/Accounts/Accounts/Account/ConnectAzureRmAccount.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
using Microsoft.Azure.Commands.Common.Authentication;
2323
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
24+
using Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core;
2425
using Microsoft.Azure.Commands.Common.Authentication.Factories;
2526
using Microsoft.Azure.Commands.Common.Authentication.Models;
2627
using Microsoft.Azure.Commands.Profile.Common;
@@ -463,6 +464,12 @@ private void SetContextWithOverwritePrompt(Action<AzureRmProfile, RMProfileClien
463464
}
464465
}
465466

467+
private static IAzureContextContainer GetAzureContextContainer()
468+
{
469+
var provider = new ProtectedProfileProvider();
470+
return provider.Profile;
471+
}
472+
466473
/// <summary>
467474
/// Load global aliases for ARM
468475
/// </summary>
@@ -472,7 +479,8 @@ public void OnImport()
472479
try
473480
{
474481
#endif
475-
AzureSessionInitializer.InitializeAzureSession();
482+
AzureSessionInitializer.InitializeAzureSession();
483+
AzureSessionInitializer.MigrateAdalCache(AzureSession.Instance, GetAzureContextContainer);
476484
#if DEBUG
477485
if (!TestMockSupport.RunningMocked)
478486
{

src/Accounts/Accounts/Az.Accounts.psd1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 9/29/2020
6+
# Generated on: 10/23/2020
77
#
88

99
@{
@@ -12,7 +12,7 @@
1212
# RootModule = ''
1313

1414
# Version number of this module.
15-
ModuleVersion = '1.9.5'
15+
ModuleVersion = '2.1.0'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core', 'Desktop'
@@ -143,7 +143,8 @@ PrivateData = @{
143143
# IconUri = ''
144144

145145
# ReleaseNotes of this module
146-
ReleaseNotes = '* Fixed DateTime parse issue in common libraries [#13045]'
146+
ReleaseNotes = '* [Breaking Change] Removed ''Get-AzProfile'' and ''Select-AzProfile''
147+
* Replaced Azure Directory Authentication Library with Microsoft Authentication Library(MSAL)'
147148

148149
# Prerelease string of this module
149150
# Prerelease = ''

src/Accounts/Accounts/ChangeLog.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Fixed null reference and method case insensitive in `Invoke-AzRestMethod`
22+
23+
## Version 2.1.0
2124
* [Breaking Change] Removed `Get-AzProfile` and `Select-AzProfile`
22-
* Updated Azure.Core to 1.5.1
25+
* Replaced Azure Directory Authentication Library with Microsoft Authentication Library(MSAL)
2326

2427
## Version 1.9.5
2528
* Fixed DateTime parse issue in common libraries [#13045]

src/Accounts/Accounts/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
// You can specify all the values or you can default the Build and Revision Numbers
4444
// by using the '*' as shown below:
4545

46-
[assembly: AssemblyVersion("1.9.5")]
47-
[assembly: AssemblyFileVersion("1.9.5")]
46+
[assembly: AssemblyVersion("2.1.0")]
47+
[assembly: AssemblyFileVersion("2.1.0")]
4848
#if !SIGN
4949
[assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.Accounts.Test")]
5050
#endif

src/Accounts/Accounts/Rest/InvokeAzRestMethodCommand.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public override void ExecuteCmdlet()
108108
this.Path = ConstructPath(this.IsParameterBound(c => c.SubscriptionId) ? this.SubscriptionId : context.Subscription.Id, this.ResourceGroupName, this.ResourceProviderName, this.ResourceType, this.Name);
109109
}
110110

111-
switch (this.Method)
111+
switch (this.Method.ToUpper())
112112
{
113113
case "GET":
114114
response = ServiceClient
@@ -197,7 +197,7 @@ private string ConstructPath(string sub, string rg, string rp, string[] types, s
197197
for (int i = 0; i < types.Length; i++)
198198
{
199199
sb.Append(slash + types[i]);
200-
if (i != names.Length)
200+
if (names != null && i != names.Length)
201201
{
202202
sb.Append(slash + names[i]);
203203
}
@@ -206,4 +206,4 @@ private string ConstructPath(string sub, string rg, string rp, string[] types, s
206206
return sb.ToString();
207207
}
208208
}
209-
}
209+
}

0 commit comments

Comments
 (0)