Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
3f61839
Fix bug that StartupScripts call function that not loaded
erich-wang Jun 17, 2020
08ec671
Update common lib (#12194)
dingmeng-xue Jun 17, 2020
01fd0a7
Merge branch 'release-2020-06-23' into erich/startup-script-error
erich-wang Jun 17, 2020
af708ad
Fix bug that StartupScripts call function that not loaded (#12196)
dingmeng-xue Jun 17, 2020
aa915d1
release-2020-06-23
dingmeng-xue Jun 17, 2020
1e79c35
Switch to SDK use in ResourceGroup Deployments cmdlets (#12141)
Xynoclafe Jun 18, 2020
884fd52
Add preview message on module home page (#12204)
dingmeng-xue Jun 18, 2020
0741a34
[DeviceProvisioningService] Fix #12154: Enrollment cmdlet does not as…
anusapan Jun 19, 2020
62f5052
Failover managed instance (#12210)
milanbrkic-ms Jun 19, 2020
d537bef
Example was missing Update-AzVM cmdlet (#12205)
michawets Jun 19, 2020
cf6c290
Merge branch 'release-2020-06-23' into internal/release
dingmeng-xue Jun 19, 2020
cd0e16a
release-2020-06-23
dingmeng-xue Jun 19, 2020
5fed746
#12015 Set-AzWebAppSlot incorrectly formats serverFarmId causing Serv…
Kotasudhakarreddy Jun 18, 2020
d4fa13d
Switch to SDK use in ResourceGroup Deployments cmdlets (#12141)
Xynoclafe Jun 18, 2020
106a2d5
[DeviceProvisioningService] Fix #12154: Enrollment cmdlet does not as…
anusapan Jun 19, 2020
f921772
Failover managed instance (#12210)
milanbrkic-ms Jun 19, 2020
e5eab34
Example was missing Update-AzVM cmdlet (#12205)
michawets Jun 19, 2020
8170d4f
Merge branch 'master' of https://github.com/Azure/azure-powershell
dingmeng-xue Jun 20, 2020
1b4f7dd
"-Force" parameter in example breaks functionality (#12219)
eelcokos Jun 22, 2020
a631223
Introducing Az.Security SecurityTopology cmdlets (#12198)
ariklin Jun 22, 2020
31bfa03
Fix typos in traffic routing example 1 (#12209)
VitalyShakh Jun 22, 2020
9a18892
Fix the seperator issue in Linux and Mac (#12241)
dolauli Jun 23, 2020
1c32960
Onboard Application Gateway to Private Link Common Cmdlets (#12242)
jaishals Jun 23, 2020
c9e93a7
fix release notes in ChangeLog.md (#12238)
VeryEarly Jun 23, 2020
030b6a2
Documentation update for Az.Support module (#12239)
shahbj79 Jun 24, 2020
f9c7a8c
[PrivateLink] Update StorageSync SDK with 2020-03-01 (#12249)
ankushbindlish2 Jun 24, 2020
a77b31e
[SQL MI]Add support for Service principal and guest users in Set-AzSq…
amolagar5 Jun 24, 2020
10b4d7b
[Network] Added Cmdlets for Network Virtual Appliance (NVA) and NVA s…
3vilbuff3r Jun 24, 2020
bb5cf7e
Upgrade common reference (#12250)
VeryEarly Jun 24, 2020
ab8b080
Temporary fix for Mac image issues (#12274)
markcowl Jun 27, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 1 addition & 10 deletions .azure-pipelines/powershell-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ variables:
LinuxImage: ubuntu-18.04
MacOSName: macOS
MacOSImage: macOS-10.14
TestFramework: netcoreapp2.2
TestFramework: netcoreapp2.1
TestTarget: Test
Configuration: Debug
DebugLocalBuildTasks: true
Expand All @@ -22,9 +22,6 @@ jobs:
linux:
OSName: ${{ variables.LinuxName }}
ImageName: ${{ variables.LinuxImage }}
macOS:
OSName: ${{ variables.MacOSName }}
ImageName: ${{ variables.MacOSImage }}
pool:
vmImage: $(ImageName)

Expand All @@ -47,9 +44,6 @@ jobs:
linux:
OSName: ${{ variables.LinuxName }}
ImageName: ${{ variables.LinuxImage }}
macOS:
OSName: ${{ variables.MacOSName }}
ImageName: ${{ variables.MacOSImage }}
pool:
vmImage: $(ImageName)

Expand All @@ -72,9 +66,6 @@ jobs:
linux:
OSName: ${{ variables.LinuxName }}
ImageName: ${{ variables.LinuxImage }}
macOS:
OSName: ${{ variables.MacOSName }}
ImageName: ${{ variables.MacOSImage }}
pool:
vmImage: $(ImageName)

Expand Down
3 changes: 2 additions & 1 deletion .azure-pipelines/util/test-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ steps:
- pwsh: |
Install-Module -Name Pester -RequiredVersion 4.10.1 -Force
Install-Module -Name Az.Accounts -Scope CurrentUser -Force
$env:PSModulePath = $env:PSModulePath + ";" + (pwd).Path
if ($IsWindows) { $sp = ";" } else { $sp = ":" }
$env:PSModulePath = $env:PSModulePath + $sp + (pwd).Path
Get-ChildItem -Directory Az.* | ForEach-Object {if (Test-Path $_/test-module.ps1) {cd $_; ./test-module.ps1}}
workingDirectory: 'artifacts/Debug'
displayName: 'Test for AutoGen Modules With PowerShell Core'
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/windows-powershell.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
variables:
WindowsName: windows
WindowsImage: VS2017-Win2016
TestFramework: netcoreapp2.2
TestFramework: netcoreapp2.1
TestTarget: Test
Configuration: Debug
DebugLocalBuildTasks: true
Expand Down
133 changes: 133 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,136 @@
## 4.3.0 - June 2020
#### Az.Accounts
* Supported discovering environment setting by default and adding environment via 'Add-AzEnvironment'
* Update preloaded assemblies [#12024], [#11976]
* Updated Azure.Core assembly
* Fixed an issue that may cause 'Connect-AzAccount' to fail in multi-threaded execution [#11201]

#### Az.Aks
* 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

#### Az.Batch
* Updated Az.Batch to use 'Microsoft.Azure.Management.Batch' SDK version to 11.0.0
* Added the ability to set the BatchAccount Identity in the 'New-AzBatchAccount' cmdlet

#### Az.CognitiveServices
* Supported displaying account capabilities.
* Supported modifying PublicNetworkAccess.

#### Az.Compute
* Added SimulateEviction parameter to Set-AzVM and Set-AzVmssVM cmdlets.
* Added 'Premium_LRS' to the argument completer of StorageAccountType parameter for New-AzGalleryImageVersion cmdlet.
* Added Substatuses to VMCustomScriptExtension [#11297]
* Added 'Delete' to the argument completer of EvictionPolicy parameter for New-AzVM and New-AzVMConfig cmdlets.
* Fixed name of new VM Extension for SAP

#### Az.DataFactory
* Updated ADF .Net SDK version to 4.9.0

#### Az.EventHub
* Added Managed Identity parameters to 'New-AzEventHubNamespace' and 'Set-AzEventHubNamespace' cmdlets

#### Az.Functions
* Added support to create PowerShell 7.0 and Java 11 function apps

#### Az.HDInsight
* Supported listing hosts and restart specific hosts of the HDInsight cluster.

#### Az.HealthcareApis
* Updated the SDK version to 1.1.0
* Added support for Export settings and Managed Identity

#### Az.Monitor
* Fixed input object parameter for 'Set-AzActivityLogAlert'
* Fixed 'InputObject' parameter for 'Set-AzActionGroup' [#10868]

#### Az.Network
* Added support for AddressPrefixType parameter to 'Remove-AzExpressRouteCircuitConnectionConfig'
* Added new cmdlets for Azure FirewallPolicy
- 'New-AzFirewallPolicyDnsSetting'
- Support for Destination FQDN in Network Rules for Firewall Policy
* Added support for backend address pool operations
- 'New-AzLoadBalancerBackendAddressConfig'
- 'New-AzLoadBalancerBackendAddressPool'
- 'Set-AzLoadBalancerBackendAddressPool'
- 'Remove-AzLoadBalancerBackendAddressPool'
- 'Get-AzLoadBalancerBackendAddressPool'
* Added name validation for 'New-AzIpGroup'
* Added new cmdlets for Azure FirewallPolicy
- 'New-AzFirewallPolicyThreatIntelWhitelist'
* Updated below commands for feature: Custom dns servers set/remove on VirtualWan P2SVpnGateway.
- 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.
- 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.
* Updated 'Update-AzVpnGateway'
- Added optional parameter '-BgpPeeringAddress' for customers to specify their custom bgps to set on VpnGateway.
* Added new cmdlet to support resetting the routing state of a VirtualHub resource:
- 'Reset-AzHubRouter'
* Updated below things based on recent swagger change for Firewall Policy
- Changes names for RuleGroup, RuleCollectionGroup and RuleType
- Added support for Firewall Policy NAT Rule Collections to support multiple NAT Rule Collection
* [Breaking Change] Added mandatory parameter 'SourceIpGroup' for 'New-AzFirewallPolicyApplicationRule' and 'New-AzFirewallPolicyNetworkRule'.
* [Breaking Change] Fixed 'New-AzFirewallPolicyApplicationRule', parameter 'SourceAddress' to be mandatory.
* [Breaking Change] Fixed 'New-AzFirewallPolicyApplicationRule', parameter 'SourceAddress' to be mandatory.
* [Breaking Change] Removed mandatory parameters: 'TranslatedAddress', 'TranslatedPort' for 'New-AzFirewallPolicyNatRuleCollection'.
* Added new cmdlets to support PrivateLink On Application Gateway
- 'New-AzApplicationGatewayPrivateLinkConfiguration'
- 'Get-AzApplicationGatewayPrivateLinkConfiguration'
- 'New-AzApplicationGatewayPrivateLinkConfiguration'
- 'Set-AzApplicationGatewayPrivateLinkConfiguration'
- 'Remove-AzApplicationGatewayPrivateLinkConfiguration'
- 'New-AzApplicationGatewayPrivateLinkIpConfiguration'
* Added new cmdlets for HubRouteTables child resource of VirtualHub.
- 'New-AzVHubRoute'
- 'New-AzVHubRouteTable'
- 'Get-AzVHubRouteTable'
- 'Update-AzVHubRouteTable'
- 'Remove-AzVHubRouteTable'
* Updated existing cmdlets to support optional RoutingConfiguration input parameter for custom routing in VirtualWan.
- 'New-AzExpressRouteConnection'
- 'Set-AzExpressRouteConnection'
- 'New-AzVirtualHubVnetConnection'
- 'Update-AzVirtualHubVnetConnection'
- 'New-AzVpnConnection'
- 'Update-AzVpnConnection'
- 'New-AzP2sVpnGateway'
- 'Update-AzP2sVpnGateway'

#### Az.OperationalInsights
* Fixed bug PSWorkspace doesn't implement IOperationalInsightsWorkspace [#12135]
* Added 'pergb2018' to valid value set of parameter 'Sku' in 'Set-AzOperationalInsightsWorkspace'
* Added alias 'FunctionParameters' for parameter 'FunctionParameter' to
- 'New-AzOperationalInsightsSavedSearch'
- 'Set-AzOperationalInsightsSavedSearch'

#### Az.RecoveryServices
* Azure Backup added support for fetching MAB items.
* Azure Site Recovery supports disk type 'StandardSSD_LRS'

#### Az.Resources
* Added 'UsageLocation', 'GivenName', 'Surname', 'AccountEnabled', 'MailNickname', 'Mail' on 'PSADUser' [#10526] [#10497]
* Fixed issue that '-Mail' doesn't work on 'Get-AzADUser' [#11981]
* Added '-ExcludeChangeType' parameter to 'Get-AzDeploymentWhatIfResult' and 'Get-AzResourceGroupDeploymentWhatIfResult'
* Added '-WhatIfExcludeChangeType' parameter to 'New-AzDeployment' and 'New-AzResourceGroupDeployment'
* Updated 'Test-Az*Deployment' cmdlets to show better error messages
* Fixed help message for '-Name' parameter of deployment create and What-If cmdlets

#### Az.Sql
* Added support for service principal for Set SQL Server Azure Active Directory Admin cmdlet
* Fixed sync issue in Data Classification cmdlets.
* Supported searching user by mail on 'Set-AzSqlServerActiveDirectoryAdministrator' [#12192]

#### Az.Storage
* Supported create Storage account with RequireInfrastructureEncryption
- 'New-AzStorageAccount'
* Moved the logic of loading Azure.Core to Az.Accounts

#### Az.Websites
* Added safeguard to delete created webapp if restore failed in 'Restore-AzDeletedWebApp'
* Added 'SourceWebApp.Location' for 'New-AzWebApp' and 'New-AzWebAppSlot'
* Fixed bug that prevented changing Container settings in 'Set-AzWebApp' and 'Set-AzWebAppSlot'
* Fixed bug to get SiteConfig when -Name is not given for Get-AzWebApp
* Added a support to create ASP for Linux Apps
* Added exceptions for clone across resource groups

## 4.2.0 - June 2020
#### Az.Accounts
* Fixed an issue that may cause Az to skip logs in Azure Automation or PowerShell jobs [#11492]
Expand Down
9 changes: 6 additions & 3 deletions src/Accounts/Accounts/Az.Accounts.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 5/28/2020
# Generated on: 6/17/2020
#

@{
Expand All @@ -12,7 +12,7 @@
# RootModule = ''

# Version number of this module.
ModuleVersion = '1.8.1'
ModuleVersion = '1.9.0'

# Supported PSEditions
CompatiblePSEditions = 'Core', 'Desktop'
Expand Down Expand Up @@ -142,7 +142,10 @@ PrivateData = @{
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = '* Fixed an issue that may cause Az to skip logs in Azure Automation or PowerShell jobs [#11492]'
ReleaseNotes = '* Supported discovering environment setting by default and adding environment via ''Add-AzEnvironment''
* Update preloaded assemblies [#12024], [#11976]
* Updated Azure.Core assembly
* Fixed an issue that may cause ''Connect-AzAccount'' to fail in multi-threaded execution [#11201]'

# Prerelease string of this module
# Prerelease = ''
Expand Down
2 changes: 2 additions & 0 deletions src/Accounts/Accounts/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
- Additional information about change #1
-->
## Upcoming Release

## Version 1.9.0
* Supported discovering environment setting by default and adding environment via `Add-AzEnvironment`
* Update preloaded assemblies [#12024], [#11976]
* Updated Azure.Core assembly
Expand Down
4 changes: 2 additions & 2 deletions src/Accounts/Accounts/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:

[assembly: AssemblyVersion("1.8.1")]
[assembly: AssemblyFileVersion("1.8.1")]
[assembly: AssemblyVersion("1.9.0")]
[assembly: AssemblyFileVersion("1.9.0")]
#if !SIGN
[assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.Accounts.Test")]
#endif
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
if ($PSEdition -eq 'Desktop') {
try {
[Microsoft.Azure.Commands.Profile.Utilities.CustomAssemblyResolver]::Initialize()
} catch {}
} catch {
Write-Warning $_
}
}
55 changes: 0 additions & 55 deletions src/Accounts/Accounts/Utilities/CustomAssemblyResolver.cs

This file was deleted.

4 changes: 2 additions & 2 deletions src/Accounts/Authentication/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.8.1")]
[assembly: AssemblyFileVersion("1.8.1")]
[assembly: AssemblyVersion("1.9.0")]
[assembly: AssemblyFileVersion("1.9.0")]
69 changes: 69 additions & 0 deletions src/Accounts/Authentication/Utilities/CustomAssemblyResolver.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;

namespace Microsoft.Azure.Commands.Profile.Utilities
{
public static class CustomAssemblyResolver
{
private static IDictionary<string, Version> NetFxPreloadAssemblies =
new Dictionary<string, Version>(StringComparer.InvariantCultureIgnoreCase)
{
{"Azure.Core", new Version("1.2.1.0")},
{"Microsoft.Bcl.AsyncInterfaces", new Version("1.0.0.0")},
{"Microsoft.IdentityModel.Clients.ActiveDirectory", new Version("3.19.2.6005")},
{"Microsoft.IdentityModel.Clients.ActiveDirectory.Platform", new Version("3.19.2.6005")},
{"Newtonsoft.Json", new Version("10.0.0.0")},
{"System.Buffers", new Version("4.0.2.0")},
{"System.Diagnostics.DiagnosticSource", new Version("4.0.4.0")},
{"System.Memory", new Version("4.0.1.1")},
{"System.Net.Http.WinHttpHandler", new Version("4.0.2.0")},
{"System.Numerics.Vectors", new Version("4.1.3.0")},
{"System.Private.ServiceModel", new Version("4.1.2.1")},
{"System.Reflection.DispatchProxy", new Version("4.0.3.0")},
{"System.Runtime.CompilerServices.Unsafe", new Version("4.0.5.0")},
{"System.Security.AccessControl", new Version("4.1.1.0")},
{"System.Security.Permissions", new Version("4.0.1.0")},
{"System.Security.Principal.Windows", new Version("4.1.1.0")},
{"System.ServiceModel.Primitives", new Version("4.2.0.0")},
{"System.Text.Encodings.Web", new Version("4.0.4.0")},
{"System.Text.Json", new Version("4.0.0.0")},
{"System.Threading.Tasks.Extensions", new Version("4.2.0.0")},
{"System.Xml.ReaderWriter", new Version("4.1.0.0")}
};

private static string PreloadAssemblyFolder { get; set; }

public static void Initialize()
{
//This function is call before loading assemblies in PreloadAssemblies folder, so NewtonSoft.Json could not be used here
var accountFolder = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
PreloadAssemblyFolder = Path.Combine(accountFolder, "PreloadAssemblies");
AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve;
}

/// <summary>
/// When the resolution of an assembly fails, if will try to redirect to the higher version
/// </summary>
public static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
{
try
{
AssemblyName name = new AssemblyName(args.Name);
if (NetFxPreloadAssemblies.TryGetValue(name.Name, out Version version))
{
if (version >= name.Version && version.Major == name.Version.Major)
{
string requiredAssembly = Path.Combine(PreloadAssemblyFolder, $"{name.Name}.dll");
return Assembly.LoadFrom(requiredAssembly);
}
}
}
catch
{
}
return null;
}
}
}
2 changes: 1 addition & 1 deletion src/Advisor/Advisor/Az.Advisor.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2'
# ProcessorArchitecture = ''

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

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