Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NO SQUASH] Merge release-2021-06-15 to main #15258

Merged
merged 8 commits into from
Jun 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 130 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,133 @@
## 6.1.0 - June 2021
#### Az.Accounts
* Added cmdlet 'Open-AzSurveyLink'
* Supported certificate file as input parameter of Connect-AzAccount

#### Az.Aks
* Fixed the issue that 'Set-AzAks' will fail in Automation Runbook. [#15006]

#### Az.ApplicationInsights
* Fixed issue that 'ResourcegroupName' is missed when executing below cmdlets with 'InputObject' parameter [#14848]
* 'Get-AzApplicationInsightsLinkedStorageAccount'
* 'New-AzApplicationInsightsLinkedStorageAccount'
* 'Update-AzApplicationInsightsLinkedStorageAccount'
* 'Remove-AzApplicationInsightsLinkedStorageAccount'

#### Az.Cdn
* Fixed profile missing issue in 'Remove-AzCdnProfile' cmdlet

#### Az.Compute
* Updated Compute module to use the latest .Net SDK version 47.0.0.

#### Az.ContainerInstance
* Removed the display of file share credential [#15224]

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

#### Az.EventHub
* Added functionality to accept input from pipeline for 'Get-AzEventHub' from 'Get-AzEventHubNamespace'.

#### Az.HDInsight
* Support new azure monitor feature in HDInsight:
- Add cmdlet 'Get-AzHDInsightAzureMonitor' to allow customer to get the Azure Monitor status of HDInsight cluster.
- Add cmdlet 'Enable-AzHDInsightAzureMonitor' to allow customer to enable the Azure Monitor in HDInsight cluster.
- Add cmdlet 'Disable-AzHDInsightAzureMonitor' to allow customer to disable the Azure Monitor in HDInsight cluster.

#### Az.KeyVault
* Removed duplicate list item in 'Get-AzKeyVault' [#15164]
* Added 'SecretManagement' tag to 'Az.KeyVault' module [#15173]

#### Az.Network
* Updated cmdlets for route server for a more stable way to add IP configuration.
* Added support for getting a single private link resource.
* Added more detailed description about GroupId in 'New-AzPrivateLinkServiceConnection'
* Updated cmdlets to enable setting of PrivateRange on AzureFirewallPolicy.
- 'New-AzFirewallPolicy'
- 'Set-AzFirewallPolicy'
* Updated cmdlets to add NatRules in VirtualNetworkGateway and BgpRouteTranslationForNat.
- 'New-AzVirtualNetworkGateway'
- 'Set-AzVirtualNetworkGateway'
* Updated cmdlets to add EngressNatRules and EgressNatRules in VirtualNetworkGateway Connection.
- 'New-AzVirtualNetworkGatewayConnection'
- 'Set-AzVirtualNetworkGatewayConnection'
* Updated cmdlet to enable setting of FlowTimeout in VirtualNetwork.
- 'New-AzVirtualNetwork'
* Added cmdlets for Get/Create/Update/Delete VirtualNetworkGatewayNatRules.
- 'New-AzVirtualNetworkGatewayNatRule'
- 'Update-AzVirtualNetworkGatewayNatRule'
- 'Get-AzVirtualNetworkGatewayNatRule'
- 'Remove-AzVirtualNetworkGatewayNatRule'
* Added a new cmdlet for Sync on VirtualNetworkPeering
- 'Sync-AzVirtualNetworkPeering'
* Updated cmdlets to add new properties and redefined an existing property in the VirtualNetworkPeering
- 'Add-AzVirtualNetworkPeering'
- 'Get-AzVirtualNetworkPeering'
* Updated cmdlets to enable setting of PreferredRoutingGateway on VirtualHub.
- 'New-AzVirtualHub'
- 'Update-AzVirtualHub'
* Updated cmdlets to expose two read-only properties of client certificate.
- 'Get-AzApplicationGatewayTrustedClientCertificate'

#### Az.RecoveryServices
* Added cross tenant DS Move.
* Removed restriction to fetch recovery points only for a 30 days time range.
* Enabled CRR for new regions.

#### Az.Resources
* Allowed naming the deployment when testing deployments [#11497]

#### Az.SignalR
* Changed to 'Allow' and 'Deny' parameters of 'Update-AzSignalRNetworkAcl' cmdlet:
- Accepted 'Trace' as a valid value.
- Accepted '@()' as empty collection to clear the list.
* Supported 'ResourceGroupCompleter' and 'ResourceNameCompleter' in the applicable cmdlets.
* Deprecated the 'HostNamePrefix' property of output type 'PSSignalRResource' of following cmdlets:
- 'Get-AzSignalR'
- 'New-AzSignalR'
- 'Update-AzSignalR'

#### Az.Sql
* Added option to support short version of maintenance configuration id for Managed Instance in 'New-AzSqlInstance' and 'Set-AzSqlInstance' cmdlets
* Added HighAvailabilityReplicaCount to 'New-AzSqlDatabaseSecondary'
* Added External Administrator and AAD Only Properties to AzSqlServer and AzSqlInstance
- Added option to specify '-ExternalAdminName', '-ExternalAdminSid', '-EnableActiveDirectoryOnlyAuthentication' in 'New-AzSqlInstance' and 'Set-AzSqlInstance' cmdlets
- Added option to expand external administrators information using '-ExpandActiveDirectoryAdministrator' in 'Get-AzSqlServer' and 'Get-AzSqlInstance' cmdlets
* Fixed 'Set-AzSqlDatabase' to no longer default ReadScale to Disabled when not specified
* Fixed 'Set-AzSqlServer' and 'Set-AzSqlInstance' for partial PUT with only identity and null properties
* Added parameters related to UMI in 'New-AzSqlServer', 'New-AzSqlInstance', 'Set-AzSqlServer' and 'Set-AzSqlInstance' cmdlets.
* Added -AutoRotationEnabled parameter to following cmdlets:
- 'Set-AzSqlServerTransparentDataEncryptionProtector'
- 'Get-AzSqlServerTransparentDataEncryptionProtector'
- 'Set-AzSqlInstanceTransparentDataEncryptionProtector'
- 'Get-AzSqlInstanceTransparentDataEncryptionProtector'

#### Az.Storage
* Supported create file share with NFS/SMB enabledEnabledProtocol and RootSquash, and update share with RootSquash
- 'New-AzRmStorageShare'
- 'Update-AzRmStorageShare'
* Supported enable Smb Multichannel on File service
- 'Update-AzStorageFileServiceProperty'
* Fixed copy inside same account issue by access source with anonymous credential, when copy Blob inside same account with Oauth credential
* Removed StorageFileDataSmbShareOwner from value set of parameter DefaultSharePermission in create/update storage account
- 'New-AzStorageAccount'
- 'Set-AzStorageAccount'

#### Az.Websites
* Fixed issue that prevented removing rules by name and unique identifier in 'Remove-AzWebAppAccessRestrictionRule'
* Fixed issue that defaults AlwaysOn to false in 'Set-AzWebAppSlot'

### Thanks to our community contributors
* Andy Roberts (@andyr8939), Removing unused TimeGrain variable from example (#15062)
* Ashley Roll (@AshleyRoll), Remove Write-Host leaking file share credentials (#15225)
* Kailash Mandal (@KaishM), Update New-AzPublicIpAddress.md (#15040)
* Olivier Miossec (@omiossec), Update Get-AzExpressRouteCircuitRouteTable.md (#15054)
* Scott (@S-T-S), Update Set-AzNetworkInterface.md (#15112)
* @sohaibMSFT, Application Gateway AutoScale Example (#15071)
* @Srihsu, Update Split-AzReservation.md (#15049)
* @srozemuller, typo in examples resourcegroup parameter (#15146)


## 6.0.0 - May 2021
Az 6.0.0 (Az.Accounts 2.3.0) is only supported on Windows PowerShell 5.1, PowerShell 7.0 version 7.0.6 or greater and PowerShell 7.1 version 7.1.3 or greater, open https://aka.ms/install-powershell to learn how to upgrade. For further information, go to http://aka.ms/azpslifecyle.

Expand Down
2 changes: 1 addition & 1 deletion setup/generate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if( (-not (get-command -ea 0 light)) -or (-not (get-command -ea 0 heat)) -or (-n
$outputName ="Az-Cmdlets"

# generate the product name from the current month/year.
$productName = "Microsoft Azure PowerShell - May 2021"
$productName = "Microsoft Azure PowerShell - June 2021"

# where to put temp files
$tmp = Join-Path $env:temp azure-cmdlets-tmp
Expand Down
2 changes: 1 addition & 1 deletion src/ADDomainServices/Az.ADDomainServices.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 = '2.2.8'; })
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.4.0'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = './bin/Az.ADDomainServices.private.dll'
Expand Down
20 changes: 9 additions & 11 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/20/2021
# Generated on: 6/11/2021
#

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

# Version number of this module.
ModuleVersion = '2.3.0'
ModuleVersion = '2.4.0'

# Supported PSEditions
CompatiblePSEditions = 'Core', 'Desktop'
Expand Down Expand Up @@ -47,7 +47,7 @@ PowerShellVersion = '5.1'
DotNetFrameworkVersion = '4.7.2'

# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
# CLRVersion = ''
# ClrVersion = ''

# Processor architecture (None, X86, Amd64) required by this module
# ProcessorArchitecture = ''
Expand Down Expand Up @@ -78,7 +78,8 @@ RequiredAssemblies = 'Microsoft.Azure.PowerShell.Authentication.Abstractions.dll
'Microsoft.WindowsAzure.Storage.dll',
'Microsoft.WindowsAzure.Storage.DataMovement.dll',
'Microsoft.Azure.PowerShell.Clients.Aks.dll',
'Microsoft.Azure.PowerShell.Strategies.dll'
'Microsoft.Azure.PowerShell.Strategies.dll',
'Microsoft.Azure.PowerShell.Common.Share.dll'

# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()
Expand Down Expand Up @@ -106,7 +107,8 @@ CmdletsToExport = 'Disable-AzDataCollection', 'Disable-AzContextAutosave',
'Disconnect-AzAccount', 'Get-AzContextAutosaveSetting',
'Set-AzDefault', 'Get-AzDefault', 'Clear-AzDefault',
'Register-AzModule', 'Enable-AzureRmAlias', 'Disable-AzureRmAlias',
'Uninstall-AzureRm', 'Invoke-AzRestMethod', 'Get-AzAccessToken'
'Uninstall-AzureRm', 'Invoke-AzRestMethod', 'Get-AzAccessToken',
'Open-AzSurveyLink'

# Variables to export from this module
# VariablesToExport = @()
Expand Down Expand Up @@ -143,12 +145,8 @@ PrivateData = @{
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = '* Upgraded Azure.Identity to 1.4 and MSAL to 4.30.1
* Removed obsolete parameters ''ManagedServiceHostName'', ''ManagedServicePort'' and ''ManagedServiceSecret'' of cmdlet ''Connect-AzAccount'', environment variables ''MSI_ENDPOINT'' and ''MSI_SECRET'' could be used instead
* Customize display format of PSAzureRmAccount to hide secret of service principal [#14208]
* Added optional parameter ''AuthScope'' to ''Connect-AzAccount'' to support enhanced authentication of data plane features
* Set retry times by environment variable [#14748]
* Supported subject name issuer authentication'
ReleaseNotes = '* Added cmdlet ''Open-AzSurveyLink''
* Supported certificate file as input parameter of Connect-AzAccount'

# Prerelease string of this module
# Prerelease = ''
Expand Down
3 changes: 3 additions & 0 deletions src/Accounts/Accounts/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
-->

## Upcoming Release

## Version 2.4.0
* Added cmdlet `Open-AzSurveyLink`
* Supported certificate file as input parameter of Connect-AzAccount

## Version 2.3.0
Expand Down
66 changes: 66 additions & 0 deletions src/Accounts/Accounts/Feedback/OpenAzSurveyLinkCmdlet.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
using Microsoft.WindowsAzure.Commands.Utilities.Common;
using System;
using System.Diagnostics;
using System.Management.Automation;
using System.Runtime.InteropServices;

namespace Microsoft.Azure.Commands.Profile.Survey
{
[Cmdlet(VerbsCommon.Open, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SurveyLink"), OutputType(typeof(void))]
public class OpenAzSurveyLinkCmdlet : AzurePSCmdlet
{
private const string _surveyLinkFormat = "https://aka.ms/azpssurvey?Q_CHL=INTERCEPT";

protected override IAzureContext DefaultContext => null;

protected override string DataCollectionWarning => null;

public override void ExecuteCmdlet()
{
WriteInformation(new HostInformationMessage() { Message = $"Opening the default browser to {_surveyLinkFormat}" }, new string[] { "PSHOST" });
OpenBrowser(_surveyLinkFormat);
}

private void OpenBrowser(string url)
{
try
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
url = url.Replace("&", "^&");
Process.Start(new ProcessStartInfo("cmd", $"/c start {url}") { CreateNoWindow = true });
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
{
Process.Start("xdg-open", url);
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
Process.Start("open", url);
}
else
{
throw new PlatformNotSupportedException(RuntimeInformation.OSDescription);
}
}
catch
{
}
}
}
}
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("2.3.0")]
[assembly: AssemblyFileVersion("2.3.0")]
[assembly: AssemblyVersion("2.4.0")]
[assembly: AssemblyFileVersion("2.4.0")]
#if !SIGN
[assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.Accounts.Test")]
#endif
Expand Down
3 changes: 3 additions & 0 deletions src/Accounts/Accounts/help/Az.Accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ Loads Azure authentication information from a file.
### [Invoke-AzRestMethod](Invoke-AzRestMethod.md)
Construct and perform HTTP request to Azure resource management endpoint only

### [Open-AzSurveyLink](Open-AzSurveyLink.md)
Open survey link in default browser.

### [Register-AzModule](Register-AzModule.md)
FOR INTERNAL USE ONLY - Provide Runtime Support for AutoRest Generated cmdlets

Expand Down
58 changes: 58 additions & 0 deletions src/Accounts/Accounts/help/Open-AzSurveyLink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
external help file: Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll-Help.xml
Module Name: Az.Accounts
online version: https://docs.microsoft.com/powershell/module/az.accounts/open-azsurveylink
schema: 2.0.0
---

# Open-AzSurveyLink

## SYNOPSIS
Open survey link in default browser.

## SYNTAX

```
Open-AzSurveyLink [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
```

## DESCRIPTION
Open survey link in default browser.

## EXAMPLES

### Example 1
```
Open-AzSurveyLink
Opening the default browser to https://aka.ms/azpssurvey?Q_CHL=INTERCEPT
```

## PARAMETERS

### -DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.

```yaml
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Parameter Sets: (All)
Aliases: AzContext, AzureRmContext, AzureCredential

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### None

## OUTPUTS

## NOTES

## RELATED LINKS
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("2.3.0")]
[assembly: AssemblyFileVersion("2.3.0")]
[assembly: AssemblyVersion("2.4.0")]
[assembly: AssemblyFileVersion("2.4.0")]
4 changes: 2 additions & 2 deletions src/Accounts/Authenticators/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,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("2.3.0")]
[assembly: AssemblyFileVersion("2.3.0")]
[assembly: AssemblyVersion("2.4.0")]
[assembly: AssemblyFileVersion("2.4.0")]
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 = '2.2.8'; })
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.4.0'; })

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