Skip to content

Commit 1e10d0a

Browse files
authored
Merge pull request #6 from Azure/master
update
2 parents b9d2fa2 + 86382dd commit 1e10d0a

File tree

1,583 files changed

+836247
-469104
lines changed

Some content is hidden

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

1,583 files changed

+836247
-469104
lines changed

.azure-pipelines/powershell-core.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ variables:
55
LinuxImage: ubuntu-18.04
66
MacOSName: macOS
77
MacOSImage: macOS-10.14
8-
TestFramework: netcoreapp2.2
8+
TestFramework: netcoreapp2.1
99
TestTarget: Test
1010
Configuration: Debug
1111
DebugLocalBuildTasks: true
@@ -22,8 +22,8 @@ jobs:
2222
linux:
2323
OSName: ${{ variables.LinuxName }}
2424
ImageName: ${{ variables.LinuxImage }}
25-
macOS:
26-
OSName: ${{ variables.MacOSName }}
25+
macOS:
26+
OSName: ${{ variables.MacOSName }}
2727
ImageName: ${{ variables.MacOSImage }}
2828
pool:
2929
vmImage: $(ImageName)
@@ -47,8 +47,8 @@ jobs:
4747
linux:
4848
OSName: ${{ variables.LinuxName }}
4949
ImageName: ${{ variables.LinuxImage }}
50-
macOS:
51-
OSName: ${{ variables.MacOSName }}
50+
macOS:
51+
OSName: ${{ variables.MacOSName }}
5252
ImageName: ${{ variables.MacOSImage }}
5353
pool:
5454
vmImage: $(ImageName)
@@ -72,8 +72,8 @@ jobs:
7272
linux:
7373
OSName: ${{ variables.LinuxName }}
7474
ImageName: ${{ variables.LinuxImage }}
75-
macOS:
76-
OSName: ${{ variables.MacOSName }}
75+
macOS:
76+
OSName: ${{ variables.MacOSName }}
7777
ImageName: ${{ variables.MacOSImage }}
7878
pool:
7979
vmImage: $(ImageName)

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ steps:
2828
- pwsh: |
2929
Install-Module -Name Pester -RequiredVersion 4.10.1 -Force
3030
Install-Module -Name Az.Accounts -Scope CurrentUser -Force
31-
$env:PSModulePath = $env:PSModulePath + ";" + (pwd).Path
31+
if ($IsWindows) { $sp = ";" } else { $sp = ":" }
32+
$env:PSModulePath = $env:PSModulePath + $sp + (pwd).Path
3233
Get-ChildItem -Directory Az.* | ForEach-Object {if (Test-Path $_/test-module.ps1) {cd $_; ./test-module.ps1}}
3334
workingDirectory: 'artifacts/Debug'
3435
displayName: 'Test for AutoGen Modules With PowerShell Core'

.azure-pipelines/windows-powershell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
variables:
22
WindowsName: windows
33
WindowsImage: VS2017-Win2016
4-
TestFramework: netcoreapp2.2
4+
TestFramework: netcoreapp2.1
55
TestTarget: Test
66
Configuration: Debug
77
DebugLocalBuildTasks: true

ChangeLog.md

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,136 @@
1+
## 4.3.0 - June 2020
2+
#### Az.Accounts
3+
* Supported discovering environment setting by default and adding environment via 'Add-AzEnvironment'
4+
* Update preloaded assemblies [#12024], [#11976]
5+
* Updated Azure.Core assembly
6+
* Fixed an issue that may cause 'Connect-AzAccount' to fail in multi-threaded execution [#11201]
7+
8+
#### Az.Aks
9+
* 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
10+
11+
#### Az.Batch
12+
* Updated Az.Batch to use 'Microsoft.Azure.Management.Batch' SDK version to 11.0.0
13+
* Added the ability to set the BatchAccount Identity in the 'New-AzBatchAccount' cmdlet
14+
15+
#### Az.CognitiveServices
16+
* Supported displaying account capabilities.
17+
* Supported modifying PublicNetworkAccess.
18+
19+
#### Az.Compute
20+
* Added SimulateEviction parameter to Set-AzVM and Set-AzVmssVM cmdlets.
21+
* Added 'Premium_LRS' to the argument completer of StorageAccountType parameter for New-AzGalleryImageVersion cmdlet.
22+
* Added Substatuses to VMCustomScriptExtension [#11297]
23+
* Added 'Delete' to the argument completer of EvictionPolicy parameter for New-AzVM and New-AzVMConfig cmdlets.
24+
* Fixed name of new VM Extension for SAP
25+
26+
#### Az.DataFactory
27+
* Updated ADF .Net SDK version to 4.9.0
28+
29+
#### Az.EventHub
30+
* Added Managed Identity parameters to 'New-AzEventHubNamespace' and 'Set-AzEventHubNamespace' cmdlets
31+
32+
#### Az.Functions
33+
* Added support to create PowerShell 7.0 and Java 11 function apps
34+
35+
#### Az.HDInsight
36+
* Supported listing hosts and restart specific hosts of the HDInsight cluster.
37+
38+
#### Az.HealthcareApis
39+
* Updated the SDK version to 1.1.0
40+
* Added support for Export settings and Managed Identity
41+
42+
#### Az.Monitor
43+
* Fixed input object parameter for 'Set-AzActivityLogAlert'
44+
* Fixed 'InputObject' parameter for 'Set-AzActionGroup' [#10868]
45+
46+
#### Az.Network
47+
* Added support for AddressPrefixType parameter to 'Remove-AzExpressRouteCircuitConnectionConfig'
48+
* Added new cmdlets for Azure FirewallPolicy
49+
- 'New-AzFirewallPolicyDnsSetting'
50+
- Support for Destination FQDN in Network Rules for Firewall Policy
51+
* Added support for backend address pool operations
52+
- 'New-AzLoadBalancerBackendAddressConfig'
53+
- 'New-AzLoadBalancerBackendAddressPool'
54+
- 'Set-AzLoadBalancerBackendAddressPool'
55+
- 'Remove-AzLoadBalancerBackendAddressPool'
56+
- 'Get-AzLoadBalancerBackendAddressPool'
57+
* Added name validation for 'New-AzIpGroup'
58+
* Added new cmdlets for Azure FirewallPolicy
59+
- 'New-AzFirewallPolicyThreatIntelWhitelist'
60+
* Updated below commands for feature: Custom dns servers set/remove on VirtualWan P2SVpnGateway.
61+
- Updated New-AzP2sVpnGateway: Added optional parameter '-CustomDnsServer' for customers to specify their dns servers to set on P2SVpnGateway, which can be used by Point to site clients.
62+
- Updated Update-AzP2sVpnGateway: Added optional parameter '-CustomDnsServer' for customers to specify their dns servers to set on P2SVpnGateway, which can be used by Point to site clients.
63+
* Updated 'Update-AzVpnGateway'
64+
- Added optional parameter '-BgpPeeringAddress' for customers to specify their custom bgps to set on VpnGateway.
65+
* Added new cmdlet to support resetting the routing state of a VirtualHub resource:
66+
- 'Reset-AzHubRouter'
67+
* Updated below things based on recent swagger change for Firewall Policy
68+
- Changes names for RuleGroup, RuleCollectionGroup and RuleType
69+
- Added support for Firewall Policy NAT Rule Collections to support multiple NAT Rule Collection
70+
* [Breaking Change] Added mandatory parameter 'SourceIpGroup' for 'New-AzFirewallPolicyApplicationRule' and 'New-AzFirewallPolicyNetworkRule'.
71+
* [Breaking Change] Fixed 'New-AzFirewallPolicyApplicationRule', parameter 'SourceAddress' to be mandatory.
72+
* [Breaking Change] Fixed 'New-AzFirewallPolicyApplicationRule', parameter 'SourceAddress' to be mandatory.
73+
* [Breaking Change] Removed mandatory parameters: 'TranslatedAddress', 'TranslatedPort' for 'New-AzFirewallPolicyNatRuleCollection'.
74+
* Added new cmdlets to support PrivateLink On Application Gateway
75+
- 'New-AzApplicationGatewayPrivateLinkConfiguration'
76+
- 'Get-AzApplicationGatewayPrivateLinkConfiguration'
77+
- 'New-AzApplicationGatewayPrivateLinkConfiguration'
78+
- 'Set-AzApplicationGatewayPrivateLinkConfiguration'
79+
- 'Remove-AzApplicationGatewayPrivateLinkConfiguration'
80+
- 'New-AzApplicationGatewayPrivateLinkIpConfiguration'
81+
* Added new cmdlets for HubRouteTables child resource of VirtualHub.
82+
- 'New-AzVHubRoute'
83+
- 'New-AzVHubRouteTable'
84+
- 'Get-AzVHubRouteTable'
85+
- 'Update-AzVHubRouteTable'
86+
- 'Remove-AzVHubRouteTable'
87+
* Updated existing cmdlets to support optional RoutingConfiguration input parameter for custom routing in VirtualWan.
88+
- 'New-AzExpressRouteConnection'
89+
- 'Set-AzExpressRouteConnection'
90+
- 'New-AzVirtualHubVnetConnection'
91+
- 'Update-AzVirtualHubVnetConnection'
92+
- 'New-AzVpnConnection'
93+
- 'Update-AzVpnConnection'
94+
- 'New-AzP2sVpnGateway'
95+
- 'Update-AzP2sVpnGateway'
96+
97+
#### Az.OperationalInsights
98+
* Fixed bug PSWorkspace doesn't implement IOperationalInsightsWorkspace [#12135]
99+
* Added 'pergb2018' to valid value set of parameter 'Sku' in 'Set-AzOperationalInsightsWorkspace'
100+
* Added alias 'FunctionParameters' for parameter 'FunctionParameter' to
101+
- 'New-AzOperationalInsightsSavedSearch'
102+
- 'Set-AzOperationalInsightsSavedSearch'
103+
104+
#### Az.RecoveryServices
105+
* Azure Backup added support for fetching MAB items.
106+
* Azure Site Recovery supports disk type 'StandardSSD_LRS'
107+
108+
#### Az.Resources
109+
* Added 'UsageLocation', 'GivenName', 'Surname', 'AccountEnabled', 'MailNickname', 'Mail' on 'PSADUser' [#10526] [#10497]
110+
* Fixed issue that '-Mail' doesn't work on 'Get-AzADUser' [#11981]
111+
* Added '-ExcludeChangeType' parameter to 'Get-AzDeploymentWhatIfResult' and 'Get-AzResourceGroupDeploymentWhatIfResult'
112+
* Added '-WhatIfExcludeChangeType' parameter to 'New-AzDeployment' and 'New-AzResourceGroupDeployment'
113+
* Updated 'Test-Az*Deployment' cmdlets to show better error messages
114+
* Fixed help message for '-Name' parameter of deployment create and What-If cmdlets
115+
116+
#### Az.Sql
117+
* Added support for service principal for Set SQL Server Azure Active Directory Admin cmdlet
118+
* Fixed sync issue in Data Classification cmdlets.
119+
* Supported searching user by mail on 'Set-AzSqlServerActiveDirectoryAdministrator' [#12192]
120+
121+
#### Az.Storage
122+
* Supported create Storage account with RequireInfrastructureEncryption
123+
- 'New-AzStorageAccount'
124+
* Moved the logic of loading Azure.Core to Az.Accounts
125+
126+
#### Az.Websites
127+
* Added safeguard to delete created webapp if restore failed in 'Restore-AzDeletedWebApp'
128+
* Added 'SourceWebApp.Location' for 'New-AzWebApp' and 'New-AzWebAppSlot'
129+
* Fixed bug that prevented changing Container settings in 'Set-AzWebApp' and 'Set-AzWebAppSlot'
130+
* Fixed bug to get SiteConfig when -Name is not given for Get-AzWebApp
131+
* Added a support to create ASP for Linux Apps
132+
* Added exceptions for clone across resource groups
133+
1134
## 4.2.0 - June 2020
2135
#### Az.Accounts
3136
* Fixed an issue that may cause Az to skip logs in Azure Automation or PowerShell jobs [#11492]

documentation/azure-powershell-modules.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Managed Services | `Az.ManagedServices`
6565
Management Partner | `Az.ManagementPartner` | [![ManagementPartner]][ManagementPartnerGallery]
6666
Maps | `Az.Maps` | [![Maps]][MapsGallery]
6767
Database for MariaDB | `Az.MariaDb` | [![MariaDb]][MariaDbGallery]
68+
Marketplace | `Az.Marketplace` | [![Marketplace]][MarketplaceGallery]
6869
Marketplace Ordering | `Az.MarketplaceOrdering` | [![MarketplaceOrdering]][MarketplaceOrderingGallery]
6970
Media | `Az.Media` | [![Media]][MediaGallery]
7071
Mixed Reality | `Az.MixedReality` | [![MixedReality]][MixedRealityGallery]
@@ -163,6 +164,7 @@ Web App Service | `Az.Websites`
163164
[ManagementPartner]: https://img.shields.io/powershellgallery/v/Az.ManagementPartner.svg?style=flat-square&label=Az.ManagementPartner
164165
[Maps]: https://img.shields.io/powershellgallery/v/Az.Maps.svg?style=flat-square&label=Az.Maps
165166
[MariaDb]: https://img.shields.io/powershellgallery/v/Az.MariaDb.svg?style=flat-square&label=Az.MariaDb
167+
[Marketplace]: https://img.shields.io/powershellgallery/v/Az.Marketplace.svg?style=flat-square&label=Az.Marketplace
166168
[MarketplaceOrdering]: https://img.shields.io/powershellgallery/v/Az.MarketplaceOrdering.svg?style=flat-square&label=Az.MarketplaceOrdering
167169
[Media]: https://img.shields.io/powershellgallery/v/Az.Media.svg?style=flat-square&label=Az.Media
168170
[MixedReality]: https://img.shields.io/powershellgallery/v/Az.MixedReality.svg?style=flat-square&label=Az.MixedReality
@@ -259,6 +261,7 @@ Web App Service | `Az.Websites`
259261
[ManagementPartnerGallery]: https://www.powershellgallery.com/packages/Az.ManagementPartner/
260262
[MapsGallery]: https://www.powershellgallery.com/packages/Az.Maps/
261263
[MariaDbGallery]: https://www.powershellgallery.com/packages/Az.MariaDb/
264+
[MarketplaceGallery]: https://www.powershellgallery.com/packages/Az.Marketplace/
262265
[MarketplaceOrderingGallery]: https://www.powershellgallery.com/packages/Az.MarketplaceOrdering/
263266
[MediaGallery]: https://www.powershellgallery.com/packages/Az.Media/
264267
[MixedRealityGallery]: https://www.powershellgallery.com/packages/Az.MixedReality/

src/Accounts/Accounts.Test/EnvironmentCmdletTests.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
1717
using Microsoft.Azure.Commands.Common.Authentication.Models;
1818
using Microsoft.Azure.Commands.Common.Authentication.ResourceManager;
19-
using Microsoft.Azure.Commands.Profile;
2019
using Microsoft.Azure.Commands.Profile.Models;
2120
using Microsoft.Azure.Commands.Profile.Utilities;
2221
using Microsoft.Azure.Commands.ResourceManager.Common;
@@ -61,7 +60,7 @@ public void AddsAzureEnvironment()
6160
var cmdlet = new AddAzureRMEnvironmentCommand()
6261
{
6362
CommandRuntime = commandRuntimeMock.Object,
64-
Name = "Katal",
63+
Name = "Katal"
6564
};
6665
var dict =new Dictionary<string, object>
6766
{
@@ -74,6 +73,7 @@ public void AddsAzureEnvironment()
7473
};
7574

7675
cmdlet.SetBoundParameters(dict);
76+
cmdlet.SetParameterSet("Name");
7777
cmdlet.InvokeBeginProcessing();
7878
cmdlet.ExecuteCmdlet();
7979
cmdlet.InvokeEndProcessing();
@@ -189,6 +189,7 @@ public void AddsEnvironmentMultipleTimes()
189189
dict["PublishSettingsFileUrl"] = "http://microsoft.com";
190190
dict["EnableAdfsAuthentication"] = true;
191191
cmdlet.SetBoundParameters(dict);
192+
cmdlet.SetParameterSet("Name");
192193

193194
cmdlet.InvokeBeginProcessing();
194195
cmdlet.ExecuteCmdlet();
@@ -211,6 +212,7 @@ public void AddsEnvironmentMultipleTimes()
211212
dict.Clear();
212213
dict["EnableAdfsAuthentication"] = true;
213214
cmdlet2.SetBoundParameters(dict);
215+
cmdlet2.SetParameterSet("Name");
214216

215217
cmdlet2.InvokeBeginProcessing();
216218
cmdlet2.ExecuteCmdlet();
@@ -229,6 +231,7 @@ public void AddsEnvironmentMultipleTimes()
229231
};
230232
dict.Clear();
231233
cmdlet3.SetBoundParameters(dict);
234+
cmdlet3.SetParameterSet("Name");
232235

233236
cmdlet3.InvokeBeginProcessing();
234237
cmdlet3.ExecuteCmdlet();
@@ -257,6 +260,7 @@ public void AddsEnvironmentWithMinimumInformation()
257260
dict["EnableAdfsAuthentication"] = true;
258261
dict["PublishSettingsFileUrl"] = "http://microsoft.com";
259262
cmdlet.SetBoundParameters(dict);
263+
cmdlet.SetParameterSet("Name");
260264
cmdlet.InvokeBeginProcessing();
261265
cmdlet.ExecuteCmdlet();
262266
cmdlet.InvokeEndProcessing();
@@ -337,6 +341,7 @@ public void AddsEnvironmentWithStorageEndpoint()
337341
StorageEndpoint = "core.windows.net",
338342
};
339343

344+
cmdlet.SetParameterSet("Name");
340345
cmdlet.InvokeBeginProcessing();
341346
cmdlet.ExecuteCmdlet();
342347
cmdlet.InvokeEndProcessing();
@@ -412,6 +417,7 @@ public void CanCreateEnvironmentWithAllProperties()
412417
dict["AzureSynapseAnalyticsEndpointResourceId"] = "AzureSynapseAnalyticsEndpointResourceId";
413418
dict["AzureSynapseAnalyticsEndpointSuffix"] = "https://AzureSynapseAnalytics";
414419
cmdlet.SetBoundParameters(dict);
420+
cmdlet.SetParameterSet("Name");
415421

416422
cmdlet.InvokeBeginProcessing();
417423
cmdlet.ExecuteCmdlet();
@@ -487,6 +493,8 @@ public void CreateEnvironmentWithTrailingSlashInActiveDirectory()
487493
var dict = new Dictionary<string, object>();
488494
dict["ActiveDirectoryEndpoint"] = "https://ActiveDirectoryEndpoint/";
489495
cmdlet.SetBoundParameters(dict);
496+
cmdlet.SetParameterSet("Name");
497+
490498
SetupConfirmation(commandRuntimeMock);
491499
cmdlet.InvokeBeginProcessing();
492500
cmdlet.ExecuteCmdlet();

src/Accounts/Accounts.Test/ErrorResolutionTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ public void HandlesExceptionError()
7272
var autorestException = new Microsoft.Rest.Azure.CloudException("exception message")
7373
{
7474
Body = new Microsoft.Rest.Azure.CloudError { Code = "AutorestCode", Message = "Autorest message" },
75-
Request = new Rest.HttpRequestMessageWrapper(request, ""),
76-
Response = new Rest.HttpResponseMessageWrapper(response, ""),
75+
Request = new Microsoft.Rest.HttpRequestMessageWrapper(request, ""),
76+
Response = new Microsoft.Rest.HttpResponseMessageWrapper(response, ""),
7777
RequestId = "AutoRestRequestId"
7878
};
7979

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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.WindowsAzure.Commands.ScenarioTest;
16+
using Xunit;
17+
using Xunit.Abstractions;
18+
19+
namespace Microsoft.Azure.Commands.Profile.Test
20+
{
21+
public class InvokeAzRestTests : AccountsTestRunner
22+
{
23+
public InvokeAzRestTests(ITestOutputHelper output)
24+
: base(output)
25+
{
26+
}
27+
28+
[Fact]
29+
[Trait(Category.AcceptanceType, Category.CheckIn)]
30+
public void TestInvokeAzRest()
31+
{
32+
TestRunner.RunTestScript("Test-InvokeAzRest");
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)