Skip to content

Commit 66bc609

Browse files
committed
2 parents a00914c + 59a32b7 commit 66bc609

File tree

333 files changed

+45602
-9450
lines changed

Some content is hidden

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

333 files changed

+45602
-9450
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ steps:
1919
- powershell: |
2020
Install-Module -Name Pester -RequiredVersion 4.10.1 -Force -SkipPublisherCheck
2121
Install-Module -Name Az.Accounts -Scope CurrentUser -Force
22+
$env:PSModulePath = $env:PSModulePath + ";" + (pwd).Path
2223
Get-ChildItem -Directory Az.* | ForEach-Object {if (Test-Path $_/test-module.ps1) {cd $_; ./test-module.ps1}}
2324
workingDirectory: 'artifacts/Debug'
2425
displayName: Test for AutoGen Modules With Windows PowerShell
@@ -27,6 +28,7 @@ steps:
2728
- pwsh: |
2829
Install-Module -Name Pester -RequiredVersion 4.10.1 -Force
2930
Install-Module -Name Az.Accounts -Scope CurrentUser -Force
31+
$env:PSModulePath = $env:PSModulePath + ";" + (pwd).Path
3032
Get-ChildItem -Directory Az.* | ForEach-Object {if (Test-Path $_/test-module.ps1) {cd $_; ./test-module.ps1}}
3133
workingDirectory: 'artifacts/Debug'
3234
displayName: 'Test for AutoGen Modules With PowerShell Core'

ChangeLog.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,62 @@
1+
## 4.2.0 - June 2020
2+
#### Az.Accounts
3+
* Fixed an issue that may cause Az to skip logs in Azure Automation or PowerShell jobs [#11492]
4+
5+
#### Az.AnalysisServices
6+
* Updated assembly version of data plane cmdlets
7+
8+
#### Az.ApiManagement
9+
* Updated assembly version of service management cmdlets
10+
11+
#### Az.Billing
12+
* Updated assembly version of consumption cmdlets
13+
14+
#### Az.CognitiveServices
15+
* Support PrivateEndpoint and PublicNetworkAccess control.
16+
17+
#### Az.DataFactory
18+
* Updated assembly version of data factory V2 cmdlets
19+
20+
#### Az.DataShare
21+
* General availability of ''Az.DataShare'' module
22+
23+
#### Az.DesktopVirtualization
24+
* General availability of ''Az.DesktopVirtualization'' module
25+
26+
#### Az.OperationalInsights
27+
* Upgraded SDK to 0.21.0
28+
* Added optional parameters to
29+
- 'New-AzOperationalInsightsSavedSearch'
30+
- 'Set-AzOperationalInsightsSavedSearch'
31+
32+
#### Az.PolicyInsights
33+
* Corrected example 3 for 'Start-AzPolicyComplianceScan'
34+
35+
#### Az.PowerBIEmbedded
36+
* Updated assembly version of PowerBI cmdlets
37+
38+
#### Az.PrivateDns
39+
* Corrected verbose output string formatting for Remove-AzPrivateDnsRecordSet
40+
41+
#### Az.RecoveryServices
42+
* Azure Site Recovery support for creating recovery plan for zone to zone replication from xml input.
43+
* Updated assembly version of SiteRecovery and Backup cmdlets
44+
45+
#### Az.Resources
46+
* Added Tail parameter to Get-AzDeploymentScriptLog and Save-AzDeploymentScriptLog cmdlets
47+
* Formatted Output property and show it on the Get-AzDeploymentScript cmdlet output
48+
* Renamed -DeploymentScriptInputObject parameter to -DeploymentScriptObject
49+
* Fixed missing file/target name in cmdlet messages.
50+
* Updated assembly version of resource manager and tags cmdlets
51+
52+
#### Az.Sql
53+
* Added UsePrivateLinkConnection to 'New-AzSqlSyncGroup', 'Update-AzSqlSyncGroup', 'New-AzSqlSyncMember' and 'Update-AzSqlSyncMember'
54+
* Added SyncMemberAzureDatabaseResourceId to 'New-AzSqlSyncMember' and 'Update-AzSqlSyncMember'
55+
* Added Guest user lookup support to Set SQL Server Azure Active Directory Admin cmdlet
56+
57+
#### Az.Storage
58+
* Updated assembly version of data plane cmdlets
59+
160
## 4.1.0 - May 2020
261
### Highlights since the last release
362
* Supported PowerShell versions: Windows PowerShell 5.1, PowerShell Core 6.2.4+, PowerShell 7

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 - $((Get-Culture).DateTimeFormat.GetMonthName((get-date).month)) $((get-date).year)"
40+
$productName = "Microsoft Azure PowerShell - June 2020"
4141

4242
# where to put temp files
4343
$tmp = Join-Path $env:temp azure-cmdlets-tmp

src/Accounts/Accounts/Az.Accounts.psd1

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

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

1414
# Version number of this module.
15-
ModuleVersion = '1.8.0'
15+
ModuleVersion = '1.8.1'
1616

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

144144
# ReleaseNotes of this module
145-
ReleaseNotes = '* Updated ''Add-AzEnvironment'' and ''Set-AzEnvironment'' to accept parameters ''AzureSynapseAnalyticsEndpointResourceId'' and ''AzureSynapseAnalyticsEndpointSuffix''
146-
* Added Azure.Core related assemblies into Az.Accounts, supported PowerShell platforms include Windows PowerShell 5.1, PowerShell Core 6.2.4, PowerShell 7+'
145+
ReleaseNotes = '* Fixed an issue that may cause Az to skip logs in Azure Automation or PowerShell jobs [#11492]'
147146

148147
# Prerelease string of this module
149148
# Prerelease = ''

src/Accounts/Accounts/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Fixed an issue that may cause `Connect-AzAccount` to fail in multi-threaded execution [#11201]
22+
23+
## Version 1.8.1
2124
* Fixed an issue that may cause Az to skip logs in Azure Automation or PowerShell jobs [#11492]
2225

2326
## Version 1.8.0

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.8.0")]
47-
[assembly: AssemblyFileVersion("1.8.0")]
46+
[assembly: AssemblyVersion("1.8.1")]
47+
[assembly: AssemblyFileVersion("1.8.1")]
4848
#if !SIGN
4949
[assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.Accounts.Test")]
5050
#endif

src/Accounts/Authentication/AzureSessionInitializer.cs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,18 +254,24 @@ public override SourceLevels AuthenticationTraceSourceLevel
254254
/// <summary>
255255
/// Adal Logger for Adal 3.x +
256256
/// </summary>
257-
public AdalLogger AdalLogger { get; private set; }
257+
public AdalLogger AdalLogger { get; private set; }
258258

259259
/// <summary>
260260
/// Write messages to the existing trace listeners when log messages occur
261261
/// </summary>
262262
/// <param name="message"></param>
263263
private void WriteToTraceListeners(string message)
264264
{
265-
foreach (var listener in AuthenticationTraceListeners)
265+
for (var i = 0; i < AuthenticationTraceListeners.Count; ++i) // don't use foreach, enumerator is not thread safe
266266
{
267-
var trace = listener as TraceListener;
268-
trace.WriteLine(message);
267+
try
268+
{
269+
AuthenticationTraceListeners[i].WriteLine(message);
270+
}
271+
catch
272+
{
273+
// ignroe any exception
274+
}
269275
}
270276
}
271277
#endif

src/Accounts/Authentication/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ----------------------------------------------------------------------------------
1+
// ----------------------------------------------------------------------------------
22
//
33
// Copyright Microsoft Corporation
44
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -43,5 +43,5 @@
4343
// You can specify all the values or you can default the Build and Revision Numbers
4444
// by using the '*' as shown below:
4545
// [assembly: AssemblyVersion("1.0.*")]
46-
[assembly: AssemblyVersion("1.0.0")]
47-
[assembly: AssemblyFileVersion("1.1.13")]
46+
[assembly: AssemblyVersion("1.8.1")]
47+
[assembly: AssemblyFileVersion("1.8.1")]

src/Advisor/Advisor/Az.Advisor.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2'
5151
# ProcessorArchitecture = ''
5252

5353
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.8.0'; })
54+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.8.1'; })
5555

5656
# Assemblies that must be loaded prior to importing this module
5757
RequiredAssemblies = 'Microsoft.Azure.Management.Advisor.dll'

src/Aks/Aks.Test/ScenarioTests/KubernetesTests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function Test-NewAzAks
7979
$resourceGroupName = Get-RandomResourceGroupName
8080
$kubeClusterName = Get-RandomClusterName
8181
$location = Get-ProviderLocation "Microsoft.ContainerService/managedClusters"
82-
$kubeVersion = "1.15.7"
82+
$kubeVersion = "1.15.10"
8383
$nodeVmSize = "Standard_A2"
8484
$maxPodCount = 25
8585
$nodeName = "defnode"
@@ -95,7 +95,7 @@ function Test-NewAzAks
9595
$loadBalancerSku = "Standard"
9696
$linuxAdminUser = "linuxuser"
9797
$dnsNamePrefix = "mypre"
98-
$updatedKubeVersion = "1.15.10"
98+
$updatedKubeVersion = "1.15.11"
9999

100100
try
101101
{

src/Aks/Aks.Test/SessionRecords/Commands.Aks.Test.ScenarioTests.KubernetesTests/TestAzureKubernetes.json

Lines changed: 493 additions & 1291 deletions
Large diffs are not rendered by default.

src/Aks/Aks.Test/SessionRecords/Commands.Aks.Test.ScenarioTests.KubernetesTests/TestSimpleAzureKubernetes.json

Lines changed: 548 additions & 1460 deletions
Large diffs are not rendered by default.

src/Aks/Aks/Az.Aks.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2'
5353
# ProcessorArchitecture = ''
5454

5555
# Modules that must be imported into the global environment prior to importing this module
56-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.8.0'; })
56+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.8.1'; })
5757

5858
# Assemblies that must be loaded prior to importing this module
5959
RequiredAssemblies = 'YamlDotNet.dll', 'AutoMapper.dll',

src/Aks/Aks/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
-->
2020
## Upcoming Release
2121

22+
* Replaced usage of old [AccessProfile API](https://docs.microsoft.com/rest/api/aks/managedclusters/getaccessprofile) with calls to [ListClusterAdmin](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) and [ListClusterUser](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) APIs
23+
2224
## Version 1.1.1
2325
* Upgraded API Version to 2019-10-01
2426
* Supported to create AKS using Windows container

src/Aks/Aks/Commands/ImportAzureRmAksCredential.cs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
2626
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2727
using YamlDotNet.RepresentationModel;
28+
using Microsoft.Azure.Management.ContainerService.Models;
2829

2930
namespace Microsoft.Azure.Commands.Aks
3031
{
@@ -140,11 +141,20 @@ public override void ExecuteCmdlet()
140141
WriteVerbose(Admin
141142
? Resources.FetchingTheClusterAdminKubectlConfig
142143
: Resources.FetchingTheDefaultClusterUserKubectlConfig);
143-
var accessProfile = Client.ManagedClusters.GetAccessProfile(ResourceGroupName, Name,
144-
Admin ? "clusterAdmin" : "clusterUser");
144+
145+
CredentialResult credentialResult = null;
146+
147+
if(Admin)
148+
{
149+
credentialResult = Client.ManagedClusters.ListClusterAdminCredentials(ResourceGroupName, Name).Kubeconfigs[0];
150+
}
151+
else
152+
{
153+
credentialResult = Client.ManagedClusters.ListClusterUserCredentials(ResourceGroupName, Name).Kubeconfigs[0];
154+
}
145155

146156
var decodedKubeConfig =
147-
Encoding.UTF8.GetString(accessProfile.KubeConfig);
157+
Encoding.UTF8.GetString(credentialResult.Value);
148158
if (ConfigPath == "-")
149159
{
150160
WriteObject(decodedKubeConfig);

src/AlertsManagement/AlertsManagement/Az.AlertsManagement.psd1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 12/11/2019
6+
# Generated on: 5/28/2020
77
#
88

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

1414
# Version number of this module.
15-
ModuleVersion = '0.1.1'
15+
ModuleVersion = '0.1.2'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core', 'Desktop'
@@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2'
5353
# ProcessorArchitecture = ''
5454

5555
# Modules that must be imported into the global environment prior to importing this module
56-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.8.0'; })
56+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.8.1'; })
5757

5858
# Assemblies that must be loaded prior to importing this module
5959
RequiredAssemblies = 'Microsoft.Azure.Management.AlertsManagement.dll'
@@ -114,7 +114,7 @@ PrivateData = @{
114114
# IconUri = ''
115115

116116
# ReleaseNotes of this module
117-
ReleaseNotes = '* Update references in .psd1 to use relative path'
117+
ReleaseNotes = '* Updated help messages and document for ''Get-AzActionRule'''
118118

119119
# Prerelease string of this module
120120
# Prerelease = ''

src/AlertsManagement/AlertsManagement/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
22+
## Version 0.1.2
2123
* Updated help messages and document for `Get-AzActionRule`
2224

2325
## Version 0.1.1

src/AlertsManagement/AlertsManagement/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424
[assembly: ComVisible(false)]
2525
[assembly: CLSCompliant(false)]
2626
[assembly: Guid("4381ecdd-5486-46fb-bef0-c0b2fb16bd54")]
27-
[assembly: AssemblyVersion("0.1.1")]
28-
[assembly: AssemblyFileVersion("0.1.1")]
27+
[assembly: AssemblyVersion("0.1.2")]
28+
[assembly: AssemblyFileVersion("0.1.2")]

src/AnalysisServices/AnalysisServices.Dataplane/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@
3535
// by using the '*' as shown below:
3636

3737

38-
[assembly: AssemblyVersion("1.0.1")]
39-
[assembly: AssemblyFileVersion("1.0.1")]
38+
[assembly: AssemblyVersion("1.1.3")]
39+
[assembly: AssemblyFileVersion("1.1.3")]

src/AnalysisServices/AnalysisServices/Az.AnalysisServices.psd1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 12/11/2019
6+
# Generated on: 5/28/2020
77
#
88

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

1414
# Version number of this module.
15-
ModuleVersion = '1.1.2'
15+
ModuleVersion = '1.1.3'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core', 'Desktop'
@@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2'
5353
# ProcessorArchitecture = ''
5454

5555
# Modules that must be imported into the global environment prior to importing this module
56-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.8.0'; })
56+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.8.1'; })
5757

5858
# Assemblies that must be loaded prior to importing this module
5959
RequiredAssemblies = 'Microsoft.Azure.Management.Analysis.dll'
@@ -123,7 +123,7 @@ PrivateData = @{
123123
# IconUri = ''
124124

125125
# ReleaseNotes of this module
126-
ReleaseNotes = '* Update references in .psd1 to use relative path'
126+
ReleaseNotes = '* Updated assembly version of data plane cmdlets'
127127

128128
# Prerelease string of this module
129129
# Prerelease = ''

src/AnalysisServices/AnalysisServices/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
22+
## Version 1.1.3
2123
* Updated assembly version of data plane cmdlets
2224

2325
## Version 1.1.2

src/AnalysisServices/AnalysisServices/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@
3434
// You can specify all the values or you can default the Build and Revision Numbers
3535
// by using the '*' as shown below:
3636

37-
[assembly: AssemblyVersion("1.1.2")]
38-
[assembly: AssemblyFileVersion("1.1.2")]
37+
[assembly: AssemblyVersion("1.1.3")]
38+
[assembly: AssemblyFileVersion("1.1.3")]

src/ApiManagement/ApiManagement.ServiceManagement/Properties/AssemblyInfo.cs

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

45-
[assembly: AssemblyVersion("1.0.0")]
46-
[assembly: AssemblyFileVersion("1.0.0")]
45+
[assembly: AssemblyVersion("2.0.1")]
46+
[assembly: AssemblyFileVersion("2.0.1")]

0 commit comments

Comments
 (0)