Skip to content

Commit 81d01c5

Browse files
authored
Merge pull request #13769 from hiaga/Az.RecoveryServices-preview
[DO NOT SQUASH] [Az.RecoveryServices.Backup] Updating Az.recovery services preview branch with Origin master
2 parents 3a197cb + 42b6219 commit 81d01c5

File tree

4,970 files changed

+1026618
-533741
lines changed

Some content is hidden

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

4,970 files changed

+1026618
-533741
lines changed

.azure-pipelines/windows-powershell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
displayName: 'Download BinSkim'
4646
inputs:
4747
command: custom
48-
arguments: 'install Microsoft.CodeAnalysis.BinSkim -OutputDirectory $(System.DefaultWorkingDirectory)/tools/SecurityTools'
48+
arguments: 'install Microsoft.CodeAnalysis.BinSkim -OutputDirectory $(System.DefaultWorkingDirectory)/tools/SecurityTools -Version 1.7.0'
4949
- task: PowerShell@2
5050
displayName: 'Run BinSkim'
5151
inputs:

ChangeLog.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,90 @@
1+
## 5.2.0 - December 2020
2+
#### Az.Accounts
3+
* Managed to parse ExpiresOn time from raw token if could not get from underlying library
4+
* Improved warning message if Interactive authentication is unavailable
5+
6+
#### Az.ApiManagement
7+
* [Breaking change] 'New-AzApiManagementProduct' by default has no subscription limit.
8+
9+
#### Az.Compute
10+
* Edited Get-AzVm to filter by '-Name' prior to checking for throttling due to too many resources.
11+
* New cmdlet 'Start-AzVmssRollingExtensionUpgrade'.
12+
13+
#### Az.ContainerRegistry
14+
* Supported parameter 'Name' for and value from pipeline input for 'Get-AzContainerRegistryUsage' [#13605]
15+
* Polished exceptions for 'Connect-AzContainerRegistry'
16+
17+
#### Az.DataFactory
18+
* Updated ADF .Net SDK version to 4.13.0
19+
20+
#### Az.HealthcareApis
21+
* Added support for customer managed keys
22+
23+
#### Az.IotHub
24+
* Fixed an issue of SAS token.
25+
26+
#### Az.KeyVault
27+
* Supported 'all' as an option when setting key vault access policies
28+
* Supported new version of SecretManagement module [#13366]
29+
* Supported ByteArray, String, PSCredential and Hashtable for 'SecretValue' in SecretManagementModule [#12190]
30+
* [Breaking change] redesigned the API surface of cmdlets related to managed HSM.
31+
32+
#### Az.Monitor
33+
* Changed parameter 'Rule' of 'New-AzAutoscaleProfile' to accept empty list. [#12903]
34+
* Added new cmdlets to support creating diagnostic settings more flexible:
35+
* 'Get-AzDiagnosticSettingCategory'
36+
* 'New-AzDiagnosticSetting'
37+
* 'New-AzDiagnosticDetailSetting'
38+
39+
#### Az.RecoveryServices
40+
* Made help text and parameter set name changes to 'Restore-AzRecoveryServicesBackupItem' cmdlet.
41+
42+
#### Az.Resources
43+
* Added '-Tag' parameter support to 'Set-AzTemplateSpec' and 'New-AzTemplateSpec'
44+
* Added Tag display support to default formatter for Template Specs
45+
46+
#### Az.ServiceFabric
47+
* Added example to 'Set-AzServiceFabricSetting' with SettingsSectionDescription param
48+
* Updated application related cmdlets to call out that support is only for ARM deployed resources
49+
* Marked for deprecation cluster cert cmdlets 'Add-AzureRmServiceFabricClusterCertificate' and 'Remove-AzureRmServiceFabricClusterCertificate'
50+
51+
#### Az.Sql
52+
* Added SecondaryType to the following:
53+
- 'New-AzSqlDatabase'
54+
- 'Set-AzSqlDatabase'
55+
- 'New-AzSqlDatabaseSecondary'
56+
* Added HighAvailabilityReplicaCount to the following:
57+
- 'New-AzSqlDatabase'
58+
- 'Set-AzSqlDatabase'
59+
* Made ReadReplicaCount an alias of HighAvailabilityReplicaCount in the following:
60+
- 'New-AzSqlDatabase'
61+
- 'Set-AzSqlDatabase'
62+
63+
#### Az.Storage
64+
* Supported upload Azure File size up to 4 TiB
65+
- 'Set-AzStorageFileContent'
66+
* Upgraded Azure.Storage.Blobs to 12.7.0
67+
* Upgraded Azure.Storage.Files.Shares to 12.5.0
68+
* Upgraded Azure.Storage.Files.DataLake to 12.5.0
69+
70+
#### Az.StorageSync
71+
* Added Sync tiering policy feature with download policy and local cache mode
72+
73+
#### Az.Websites
74+
* Prevent duplicate access restriction rules
75+
76+
### Thanks to our community contributors
77+
* Andrew Dawson (@dawsonar802), Update Get-AzKeyVaultCertificate.md - Get cert and save it as pfx section to work with PowerShell Core (#13557)
78+
* @iviark, Healthcare APIs Powershell BYOK Updates (#13518)
79+
* John Duckmanton (@johnduckmanton), Correct spelling of TagPatchOperation (#13508)
80+
* Michael James (@mikejwhat)
81+
* Get-AzLogicAppRunHistory Help Tidy (#13513)
82+
* Richard de Zwart (@mountain65)
83+
* Update Update-AzAppConfigurationStore.md (#13485)
84+
* Update New-AzCosmosDBAccount.md (#13490)
85+
* @SteppingRazor, New-AzApiManagementProduct: Change SubscriptionsLimit parameter default value to None (#13457)
86+
* Steve Burkett (@SteveBurkettNZ), Fix Typo for WorkspaceResourceId parameter in example (#13589)
87+
188
## 5.1.0 - November 2020
289
#### Az.Accounts
390
* Fixed an issue that TenantId may be not respected if using 'Connect-AzAccount -DeviceCode'[#13477]

documentation/azure-powershell-modules.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,16 @@ Billing | `Az.Billing`
2525
Blockchain | `Az.Blockchain` | [![Blockchain]][BlockchainGallery]
2626
Blueprints | `Az.Blueprint` | [![Blueprint]][BlueprintGallery]
2727
Content Delivery Network | `Az.Cdn` | [![Cdn]][CdnGallery]
28+
Cloud Service | `Az.CloudService` | [![CloudService]][CloudServiceGallery]
2829
Cognitive Services | `Az.CognitiveServices` | [![CognitiveServices]][CognitiveServicesGallery]
2930
Compute | `Az.Compute` | [![Compute]][ComputeGallery]
31+
Communication | `Az.Communication` | [![Communication]][CommunicationGallery]
3032
Connected Kubernetes | `Az.ConnectedKubernetes` | [![ConnectedKubernetes]][ConnectedKubernetesGallery]
3133
Connected Machine | `Az.ConnectedMachine` | [![ConnectedMachine]][ConnectedMachineGallery]
3234
Container Instance | `Az.ContainerInstance` | [![ContainerInstance]][ContainerInstanceGallery]
3335
Container Registry | `Az.ContainerRegistry` | [![ContainerRegistry]][ContainerRegistryGallery]
3436
Cosmos DB | `Az.CosmosDB` | [![CosmosDB]][CosmosDBGallery]
37+
Cost Management | `Az.CostManagement` | [![CostManagement]][CostManagementGallery]
3538
Custom Resource Providers | `Az.CustomProviders` | [![CustomProviders]][CustomProvidersGallery]
3639
Data Box | `Az.DataBox` | [![DataBox]][DataBoxGallery]
3740
Data Box Edge (Stack Edge) | `Az.DataBoxEdge` | [![DataBoxEdge]][DataBoxEdgeGallery]
@@ -93,13 +96,15 @@ Power BI Embedded | `Az.PowerBIEmbedded`
9396
Private Dns | `Az.PrivateDns` | [![PrivateDns]][PrivateDnsGallery]
9497
Recovery Services | `Az.RecoveryServices` | [![RecoveryServices]][RecoveryServicesGallery]
9598
Redis Cache | `Az.RedisCache` | [![RedisCache]][RedisCacheGallery]
99+
Redis Enterprise Cache | `Az.RedisEnterpriseCache` | [![RedisEnterpriseCache]][RedisEnterpriseCacheGallery]
96100
Relay | `Az.Relay` | [![Relay]][RelayGallery]
97101
Reservations | `Az.Reservations` | [![Reservations]][ReservationsGallery]
98102
Resource Graph | `Az.ResourceGraph` | [![ResourceGraph]][ResourceGraphGallery]
99103
Resource Mover | `Az.ResourceMover` | [![ResourceMover]][ResourceMoverGallery]
100104
Resources | `Az.Resources` | [![Resources]][ResourcesGallery]
101105
Search | `Az.Search` | [![Search]][SearchGallery]
102106
Security | `Az.Security` | [![Security]][SecurityGallery]
107+
Sentinel (SecurityInsights) | `Az.SecurityInsights` | [![SecurityInsights]][SecurityInsightsGallery]
103108
Service Bus | `Az.ServiceBus` | [![ServiceBus]][ServiceBusGallery]
104109
Service Fabric | `Az.ServiceFabric` | [![ServiceFabric]][ServiceFabricGallery]
105110
SignalR | `Az.SignalR` | [![SignalR]][SignalRGallery]
@@ -118,7 +123,7 @@ Time Series Insights | `Az.TimeSeriesInsights`
118123
Traffic Manager | `Az.TrafficManager` | [![TrafficManager]][TrafficManagerGallery]
119124
VMWare Virtual Stream | `Az.VMWare` | [![VMWare]][VMWareGallery]
120125
Web App Service | `Az.Websites` | [![Websites]][WebsitesGallery]
121-
126+
Windows Iot Services | `Az.WindowsIotServices` | [![WindowsIotServices]][WindowsIotServicesGallery]
122127

123128
<!-- References -->
124129

@@ -139,13 +144,16 @@ Web App Service | `Az.Websites`
139144
[Blockchain]: https://img.shields.io/powershellgallery/v/Az.Blockchain.svg?style=flat-square&label=Az.Blockchain
140145
[Blueprint]: https://img.shields.io/powershellgallery/v/Az.Blueprint.svg?style=flat-square&label=Az.Blueprint
141146
[Cdn]: https://img.shields.io/powershellgallery/v/Az.Cdn.svg?style=flat-square&label=Az.Cdn
147+
[CloudService]: https://img.shields.io/powershellgallery/v/Az.CloudService.svg?style=flat-square&label=Az.CloudService
142148
[CognitiveServices]: https://img.shields.io/powershellgallery/v/Az.CognitiveServices.svg?style=flat-square&label=Az.CognitiveServices
143149
[Compute]: https://img.shields.io/powershellgallery/v/Az.Compute.svg?style=flat-square&label=Az.Compute
150+
[Communication]: https://img.shields.io/powershellgallery/v/Az.Communication.svg?style=flat-square&label=Az.Communication
144151
[ConnectedKubernetes]: https://img.shields.io/powershellgallery/v/Az.ConnectedKubernetes.svg?style=flat-square&label=Az.ConnectedKubernetes
145152
[ConnectedMachine]: https://img.shields.io/powershellgallery/v/Az.ConnectedMachine.svg?style=flat-square&label=Az.ConnectedMachine
146153
[ContainerInstance]: https://img.shields.io/powershellgallery/v/Az.ContainerInstance.svg?style=flat-square&label=Az.ContainerInstance
147154
[ContainerRegistry]: https://img.shields.io/powershellgallery/v/Az.ContainerRegistry.svg?style=flat-square&label=Az.ContainerRegistry
148155
[CosmosDB]: https://img.shields.io/powershellgallery/v/Az.CosmosDB.svg?style=flat-square&label=Az.CosmosDB
156+
[CostManagement]: https://img.shields.io/powershellgallery/v/Az.CostManagement.svg?style=flat-square&label=Az.CostManagement
149157
[CustomProviders]: https://img.shields.io/powershellgallery/v/Az.CustomProviders.svg?style=flat-square&label=Az.CustomProviders
150158
[DataBox]: https://img.shields.io/powershellgallery/v/Az.DataBox.svg?style=flat-square&label=Az.DataBox
151159
[DataBoxEdge]: https://img.shields.io/powershellgallery/v/Az.DataBoxEdge.svg?style=flat-square&label=Az.DataBoxEdge
@@ -207,13 +215,15 @@ Web App Service | `Az.Websites`
207215
[PrivateDns]: https://img.shields.io/powershellgallery/v/Az.PrivateDns.svg?style=flat-square&label=Az.PrivateDns
208216
[RecoveryServices]: https://img.shields.io/powershellgallery/v/Az.RecoveryServices.svg?style=flat-square&label=Az.RecoveryServices
209217
[RedisCache]: https://img.shields.io/powershellgallery/v/Az.RedisCache.svg?style=flat-square&label=Az.RedisCache
218+
[RedisEnterpriseCache]: https://img.shields.io/powershellgallery/v/Az.RedisEnterpriseCache.svg?style=flat-square&label=Az.RedisEnterpriseCache
210219
[Relay]: https://img.shields.io/powershellgallery/v/Az.Relay.svg?style=flat-square&label=Az.Relay
211220
[Reservations]: https://img.shields.io/powershellgallery/v/Az.Reservations.svg?style=flat-square&label=Az.Reservations
212221
[ResourceGraph]: https://img.shields.io/powershellgallery/v/Az.ResourceGraph.svg?style=flat-square&label=Az.ResourceGraph
213222
[ResourceMover]: https://img.shields.io/powershellgallery/v/Az.ResourceMover.svg?style=flat-square&label=Az.ResourceMover
214223
[Resources]: https://img.shields.io/powershellgallery/v/Az.Resources.svg?style=flat-square&label=Az.Resources
215224
[Search]: https://img.shields.io/powershellgallery/v/Az.Search.svg?style=flat-square&label=Az.Search
216225
[Security]: https://img.shields.io/powershellgallery/v/Az.Security.svg?style=flat-square&label=Az.Security
226+
[SecurityInsights]: https://img.shields.io/powershellgallery/v/Az.SecurityInsights.svg?style=flat-square&label=Az.SecurityInsights
217227
[ServiceBus]: https://img.shields.io/powershellgallery/v/Az.ServiceBus.svg?style=flat-square&label=Az.ServiceBus
218228
[ServiceFabric]: https://img.shields.io/powershellgallery/v/Az.ServiceFabric.svg?style=flat-square&label=Az.ServiceFabric
219229
[SignalR]: https://img.shields.io/powershellgallery/v/Az.SignalR.svg?style=flat-square&label=Az.SignalR
@@ -232,6 +242,7 @@ Web App Service | `Az.Websites`
232242
[TrafficManager]: https://img.shields.io/powershellgallery/v/Az.TrafficManager.svg?style=flat-square&label=Az.TrafficManager
233243
[VMWare]: https://img.shields.io/powershellgallery/v/Az.VMWare.svg?style=flat-square&label=Az.VMWare
234244
[Websites]: https://img.shields.io/powershellgallery/v/Az.Websites.svg?style=flat-square&label=Az.Websites
245+
[WindowsIotServices]: https://img.shields.io/powershellgallery/v/Az.WindowsIotServices.svg?style=flat-square&label=Az.WindowsIotServices
235246

236247
<!-- PS Gallery -->
237248
[AzGallery]: https://www.powershellgallery.com/packages/Az/
@@ -250,13 +261,16 @@ Web App Service | `Az.Websites`
250261
[BlockchainGallery]: https://www.powershellgallery.com/packages/Az.Blockchain/
251262
[BlueprintGallery]: https://www.powershellgallery.com/packages/Az.Blueprint/
252263
[CdnGallery]: https://www.powershellgallery.com/packages/Az.Cdn/
264+
[CloudServiceGallery]: https://www.powershellgallery.com/packages/Az.CloudService/
253265
[CognitiveServicesGallery]: https://www.powershellgallery.com/packages/Az.CognitiveServices/
254266
[ComputeGallery]: https://www.powershellgallery.com/packages/Az.Compute/
267+
[CommunicationGallery]: https://www.powershellgallery.com/packages/Az.Communication/
255268
[ConnectedKubernetesGallery]: https://www.powershellgallery.com/packages/Az.ConnectedKubernetes/
256269
[ConnectedMachineGallery]: https://www.powershellgallery.com/packages/Az.ConnectedMachine/
257270
[ContainerInstanceGallery]: https://www.powershellgallery.com/packages/Az.ContainerInstance/
258271
[ContainerRegistryGallery]: https://www.powershellgallery.com/packages/Az.ContainerRegistry/
259272
[CosmosDBGallery]: https://www.powershellgallery.com/packages/Az.CosmosDB/
273+
[CostManagementGallery]: https://www.powershellgallery.com/packages/Az.CostManagement/
260274
[CustomProvidersGallery]: https://www.powershellgallery.com/packages/Az.CustomProviders/
261275
[DataBoxGallery]: https://www.powershellgallery.com/packages/Az.DataBox/
262276
[DataBoxEdgeGallery]: https://www.powershellgallery.com/packages/Az.DataBoxEdge/
@@ -318,13 +332,15 @@ Web App Service | `Az.Websites`
318332
[PrivateDnsGallery]: https://www.powershellgallery.com/packages/Az.PrivateDns/
319333
[RecoveryServicesGallery]: https://www.powershellgallery.com/packages/Az.RecoveryServices/
320334
[RedisCacheGallery]: https://www.powershellgallery.com/packages/Az.RedisCache/
335+
[RedisEnterpriseCacheGallery]: https://www.powershellgallery.com/packages/Az.RedisEnterpriseCache/
321336
[RelayGallery]: https://www.powershellgallery.com/packages/Az.Relay/
322337
[ReservationsGallery]: https://www.powershellgallery.com/packages/Az.Reservations/
323338
[ResourceGraphGallery]: https://www.powershellgallery.com/packages/Az.ResourceGraph/
324339
[ResourceMoverGallery]: https://www.powershellgallery.com/packages/Az.ResourceMover/
325340
[ResourcesGallery]: https://www.powershellgallery.com/packages/Az.Resources/
326341
[SearchGallery]: https://www.powershellgallery.com/packages/Az.Search/
327342
[SecurityGallery]: https://www.powershellgallery.com/packages/Az.Security/
343+
[SecurityInsightsGallery]: https://www.powershellgallery.com/packages/Az.SecurityInsights/
328344
[ServiceBusGallery]: https://www.powershellgallery.com/packages/Az.ServiceBus/
329345
[ServiceFabricGallery]: https://www.powershellgallery.com/packages/Az.ServiceFabric/
330346
[SignalRGallery]: https://www.powershellgallery.com/packages/Az.SignalR/
@@ -342,4 +358,5 @@ Web App Service | `Az.Websites`
342358
[TimeSeriesInsightsGallery]: https://www.powershellgallery.com/packages/Az.TimeSeriesInsights/
343359
[TrafficManagerGallery]: https://www.powershellgallery.com/packages/Az.TrafficManager/
344360
[VMWareGallery]: https://www.powershellgallery.com/packages/Az.VMWare/
345-
[WebsitesGallery]: https://www.powershellgallery.com/packages/Az.Websites/
361+
[WebsitesGallery]: https://www.powershellgallery.com/packages/Az.Websites/
362+
[WindowsIotServicesGallery]: https://www.powershellgallery.com/packages/Az.WindowsIotServices/

setup/generate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if( (-not (get-command -ea 0 light)) -or (-not (get-command -ea 0 heat)) -or (-n
3737
$outputName ="Az-Cmdlets"
3838

3939
# generate the product name from the current month/year.
40-
$productName = "Microsoft Azure PowerShell - November 2020"
40+
$productName = "Microsoft Azure PowerShell - December 2020"
4141

4242
# where to put temp files
4343
$tmp = Join-Path $env:temp azure-cmdlets-tmp
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Commands.Common.Authentication;
16+
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
17+
using Microsoft.Azure.Commands.Common.Authentication.Models;
18+
using Microsoft.Azure.PowerShell.Authenticators;
19+
using Microsoft.Azure.PowerShell.Authenticators.Factories;
20+
21+
namespace Microsoft.Azure.Commands.Profile.Test
22+
{
23+
internal class AzureSessionTestInitializer
24+
{
25+
public static void Initialize()
26+
{
27+
AzureSession.Instance.DataStore = new MemoryDataStore();
28+
AzureRmProfileProvider.Instance.Profile = new AzureRmProfile();
29+
30+
PowerShellTokenCacheProvider tokenCacheProvider = new InMemoryTokenCacheProvider();
31+
AzureSession.Instance.RegisterComponent(PowerShellTokenCacheProvider.PowerShellTokenCacheProviderKey, () => tokenCacheProvider);
32+
AzureSession.Instance.RegisterComponent(nameof(PowerShellTokenCache), () => tokenCacheProvider.GetTokenCache());
33+
IAuthenticatorBuilder builder = new DefaultAuthenticatorBuilder();
34+
AzureSession.Instance.RegisterComponent(AuthenticatorBuilder.AuthenticatorBuilderKey, () => builder);
35+
AzureSession.Instance.RegisterComponent(nameof(AzureCredentialFactory), () => new AzureCredentialFactory());
36+
AzureSession.Instance.RegisterComponent(nameof(MsalAccessTokenAcquirerFactory), () => new MsalAccessTokenAcquirerFactory());
37+
}
38+
39+
}
40+
}

0 commit comments

Comments
 (0)