Skip to content

release-2021-08-03 #15585

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

Merged
merged 9 commits into from
Aug 2, 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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
98 changes: 98 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,101 @@
## 6.3.0 - August 2021
#### Az.Accounts
* Disabled context auto saving when token cache persistence fails on Windows and macOS
* Added PowerShell version into telemetry record
* Upgraded Microsoft.ApplicationInsights from 2.4.0 to 2.12.0
* Updated Azure.Core to 1.16.0

#### Az.Aks
* Added 'Start-AzAksCluster', 'Stop-AzAksCluster', 'Get-AzAksUpgradeProfile' and 'Get-AzAksNodePoolUpgradeProfile'. [#14194]
* Added property 'IdentityProfile' in the output of 'Get-AzAksCluster'. [#12546]

#### Az.CognitiveServices
* [Breaking Change] Changed type of PSCognitiveServicesAccount.Identity.Type from IdentityType to ResourceIdentityType.
* [Breaking Change] Changed type of PSCognitiveServicesAccount.Sku.Tier from SkuTier to string.
* [Breaking Change] Removed ActionRequired from PrivateLinkServiceConnectionState.
* Updated PowerShell to use 2021-04-30 version.
* Added 'Undo-AzCognitiveServicesAccountRemoval' cmdlet.
* Added parameters '-RestrictOutboundNetworkAccess', '-AllowedFqdnList', '-DisableLocalAuth', '-KeyVaultIdentityClientId', '-IdentityType', '-UserAssignedIdentityId' to 'New-AzureCognitiveServicesAccount' and 'Set-AzureCognitiveServicesAccount'.
* Added parameters '-InRemovedState', '-Location' to 'Remove-AzureCognitiveServicesAccount' and 'Get-AzureCognitiveServicesAccount'.

#### Az.Compute
* Fixed the warning in 'New-AzVM' cmdlet stating the sku of the VM is being defaulted even if a sku size is provided by the user. Now it only occurs when the user does not provide a sku size.
* Edited 'Set-AzVmOperatingSystem' cmdlet to no longer overwrite any existing EnableAutomaticUpdates value on the passed in virtual machine if it exists.
* Updated Compute module to use the latest .Net SDK version 48.0.0.
* Added new cmdlets for the Capacity Reservation Feature:
- 'New-AzCapacityReservationGroup'
- 'Remove-AzCapacityReservationGroup'
- 'Get-AzCapacityReservationGroup'
- 'New-AzCapacityReservation'
- 'Remove-AzCapacityReservation'
- 'Get-AzCapacityReservation'
* Added a new parameter '-CapacityReservationGroupId' to the following cmdlets:
- 'New-AzVm'
- 'New-AzVmConfig'
- 'New-AzVmss'
- 'New-AzVmssConfig'
- 'Update-AzVm'
- 'Update-AzVmss'

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

#### Az.Migrate
* Added SQL Server license type.
* Added CRN feature.
* Added resource tags feature.
* Updated to 2021-02-10 api version.

#### Az.Monitor
* Added parameter 'ResourceGroupName' back for 'Add-AzAutoscaleSetting' parameter set 'AddAzureRmAutoscaleSettingUpdateParamGroup' and made it optional [#15491]

#### Az.RecoveryServices
* Added Archive for V1 vaults.
* Added ProtectedItemsCount in Get-AzRecoveryServicesBackupProtectionPolicy.
* Azure site recovery bug fix for azure to azure in update vm properties.

#### Az.RedisCache
* Added 'RedisVersion' parameter in 'New-AzRedisCache' and 'Set-AzRedisCache'

#### Az.Resources
* Fixed bug with 'PSResource' where some constructors left 'SubscriptionId' property unassigned/null. [#10783]
* Added support for creating and updating Template Spec in Bicep file [#15313]
* Added '-ProceedIfNoChange' parameter to deployment create cmdlets.

#### Az.ServiceFabric
* Fixed Managed and Classic Application models (Application, Cluster, Service) by updating constructor to take all new properties
- This solves piping related issues where piping the results directly from a Get cmdlet call into and Update or Set call remove some intentionally set properties
- Updated appropriate test files to cover the above mentioned cases

#### Az.Sql
* Fixed identity logic in 'Set-AzSqlServer' and 'Set-AzSqlInstance'

#### Az.Storage
* Supported Blob Last Access Time
- 'Enable-AzStorageBlobLastAccessTimeTracking'
- 'Disable-AzStorageBlobLastAccessTimeTracking'
- 'Add-AzStorageAccountManagementPolicyAction'
* Made 'Get-AzDataLakeGen2ChildItem' list all datalake gen2 items by default, instead of needing user to list chunk by chunk.
* Fixed BlobProperties is empty issue when using sas without prefix '?' [#15460]
* Fixed synchronously copy small blob failure [#15548]
- 'Copy-AzStorageBlob'

#### Az.Websites
* Fixed 'Add-AzWebAppAccessRestrictionRule' failing when users does not have permissions to get Service Tag list #15316 and #14862

### Thanks to our community contributors
* Borys Generalov (@bgener), Update Get-AzPolicyState.md (#15455)
* Dean Mock (@deanmock), Update New-AzAutomationSchedule.md (#15371)
* John Bevan (@JohnLBevan), #10783 - Fix for Get-AzResource returning PSResource with null SubscriptionId (#15106)
* Michael Mejias Sanchez (@mikemej), Update - Update deployment (external VNET) (#15391)
* @mjsharma, Adding note for alternate commands (#15360)
* Ked Mardemootoo (@nocticdr), Fixed some typos for added clarity (#15428)
* Pascal Berger (@pascalberger), Fix parameter name in Sync-AzVirtualNetworkPeering examples (#15493)
* @rcabr, Doc fix in Get-AzStorageContainer (#15476)
* AAron (@S-AA-RON), Update New-AzNetworkSecurityGroup.md (#15512)
* 坂本ポテコ (@sakamoto-poteko), Update New-AzVMConfig.md (#15376)
* @Shawn-Yuen, Update Remove-AzDataLakeGen2Item.md (#15388)

## 6.2.1 - July 2021
#### Az.Accounts
* Fixed access error when subscripiton has no 'Tags' property [#15425].
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 - July 2021"
$productName = "Microsoft Azure PowerShell - August 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.5.1'; })
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.5.2'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = './bin/Az.ADDomainServices.private.dll'
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: 7/9/2021
# Generated on: 2021/7/29
#

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

# Version number of this module.
ModuleVersion = '2.5.1'
ModuleVersion = '2.5.2'

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

# ReleaseNotes of this module
ReleaseNotes = '* Fixed access error when subscripiton has no ''Tags'' property [#15425].'
ReleaseNotes = '* Disabled context auto saving when token cache persistence fails on Windows and macOS
* Added PowerShell version into telemetry record
* Upgraded Microsoft.ApplicationInsights from 2.4.0 to 2.12.0
* Updated Azure.Core to 1.16.0'

# 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,7 +19,10 @@
-->

## Upcoming Release

## Version 2.5.2
* Disabled context auto saving when token cache persistence fails on Windows and macOS
* Added PowerShell version into telemetry record
* Upgraded Microsoft.ApplicationInsights from 2.4.0 to 2.12.0
* Updated Azure.Core to 1.16.0

Expand Down
13 changes: 10 additions & 3 deletions src/Accounts/Accounts/CommonModule/AzModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Management.Automation;
using System.Net;
Expand Down Expand Up @@ -223,10 +224,16 @@ await signal(Events.Debug, cancellationToken,

internal async Task OnProcessRecordAsyncStart(string id, CancellationToken cancellationToken, GetEventData getEventData, SignalDelegate signal, string processRecordId, InvocationInfo invocationInfo, string parameterSetName, string correlationId)
{
//AzVersion is null indicates no SDK based cmdlet is invoked. Below properties needs to be filled.
if(_runtime != null && AzurePSCmdlet.AzVersion == null)
{
AzurePSCmdlet.PSHostName = _runtime.Host?.Name;
AzurePSCmdlet.PSHostVersion = _runtime.Host?.Version?.ToString();
}
var qos = _telemetry.CreateQosEvent(invocationInfo, parameterSetName, correlationId, processRecordId);
qos.PreviousEndTime = _previousEndTime;
await signal(Events.Debug, cancellationToken,
() => EventHelper.CreateLogEvent($"[{id}]: Created new QosEvent for command '{qos?.CommandName}': {qos?.ToString()}"));
() => EventHelper.CreateLogEvent($"[{id}]: Created new QosEvent for command '{qos?.CommandName}'"));
}

internal async Task OnProcessRecordAsyncEnd(string id, CancellationToken cancellationToken, GetEventData getEventData, SignalDelegate signal, string processRecordId)
Expand Down Expand Up @@ -280,9 +287,9 @@ internal async Task OnCmdletEndProcessing(string id, CancellationToken cancellat
if (_telemetry.TryGetValue(processRecordId, out qos))
{
qos.IsSuccess = (qos.Exception == null);
await signal(Events.Debug, cancellationToken,
() => EventHelper.CreateLogEvent($"[{id}]: Sending new QosEvent for command '{qos.CommandName}': {qos.ToString()}"));
await signal(Events.Debug, cancellationToken, () => EventHelper.CreateLogEvent(qos.ToString()));
_telemetry.LogEvent(processRecordId);
await signal(Events.Debug, cancellationToken, () => EventHelper.CreateLogEvent("Finish sending metric."));
_previousEndTime = DateTimeOffset.Now;
}
}
Expand Down
6 changes: 5 additions & 1 deletion src/Accounts/Accounts/CommonModule/TelemetryProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
namespace Microsoft.Azure.Commands.Common
{
/// <summary>
/// Class providing telemtry usage based on the user's data collection settings
/// Class providing telemetry usage based on the user's data collection settings
/// </summary>
public class TelemetryProvider : IDictionary<string, AzurePSQoSEvent>, IDisposable
{
Expand Down Expand Up @@ -116,6 +116,7 @@ public virtual void LogEvent(string key)
{
qos.FinishQosEvent();
_helper.LogQoSEvent(qos, enabled, enabled);
_helper.FlushMetric();
this.Remove(key);
}
}
Expand Down Expand Up @@ -158,6 +159,9 @@ public virtual AzurePSQoSEvent CreateQosEvent(InvocationInfo invocationInfo, str

qosEvent.UserAgent = AzurePSCmdlet.UserAgent;
qosEvent.AzVersion = AzurePSCmdlet.AzVersion;
qosEvent.PSVersion = AzurePSCmdlet.PowerShellVersion;
qosEvent.HostVersion = AzurePSCmdlet.PSHostVersion;
qosEvent.PSHostName = AzurePSCmdlet.PSHostName;

if (invocationInfo != null)
{
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("2.5.1")]
[assembly: AssemblyFileVersion("2.5.1")]
[assembly: AssemblyVersion("2.5.2")]
[assembly: AssemblyFileVersion("2.5.2")]
#if !SIGN
[assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.Accounts.Test")]
#endif
Expand Down
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.5.1")]
[assembly: AssemblyFileVersion("2.5.1")]
[assembly: AssemblyVersion("2.5.2")]
[assembly: AssemblyFileVersion("2.5.2")]
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.5.1")]
[assembly: AssemblyFileVersion("2.5.1")]
[assembly: AssemblyVersion("2.5.2")]
[assembly: AssemblyFileVersion("2.5.2")]
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.5.1'; })
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.5.2'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'Microsoft.Azure.Management.Advisor.dll'
Expand Down
2 changes: 1 addition & 1 deletion src/Aks/Aks.Autorest/Az.Aks.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.4.0'; })
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.5.2'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = './bin/Az.Aks.private.dll'
Expand Down
4 changes: 2 additions & 2 deletions src/Aks/Aks.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
[assembly: ComVisible(false)]
[assembly: CLSCompliant(false)]
[assembly: Guid("5970aa1c-f499-4b40-aeee-426ab8876d7e")]
[assembly: AssemblyVersion("0.1.0")]
[assembly: AssemblyFileVersion("0.1.0")]
[assembly: AssemblyVersion("2.3.0")]
[assembly: AssemblyFileVersion("2.3.0")]
12 changes: 5 additions & 7 deletions src/Aks/Aks/Az.Aks.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 7/2/2021
# Generated on: 2021/7/29
#

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

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

# Supported PSEditions
CompatiblePSEditions = 'Core', 'Desktop'
Expand Down Expand Up @@ -67,14 +67,11 @@ RequiredAssemblies = 'YamlDotNet.dll', 'AutoMapper.dll',
# TypesToProcess = @()

# Format files (.ps1xml) to be loaded when importing this module
# FormatsToProcess = @()

# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
FormatsToProcess = 'Aks.Autorest\Az.Aks.format.ps1xml'

# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.Aks.dll',
'Aks.Autorest\Az.Aks.psm1')
'Aks.Autorest\Az.Aks.psm1')

# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
FunctionsToExport = 'Get-AzAksNodePoolUpgradeProfile', 'Get-AzAksUpgradeProfile',
Expand Down Expand Up @@ -121,7 +118,8 @@ PrivateData = @{
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = '* Added parameter ''AvailabilityZone'' for ''New-AzAksNodePool''. [#14505]'
ReleaseNotes = '* Added ''Start-AzAksCluster'', ''Stop-AzAksCluster'', ''Get-AzAksUpgradeProfile'' and ''Get-AzAksNodePoolUpgradeProfile''. [#14194]
* Added property ''IdentityProfile'' in the output of ''Get-AzAksCluster''. [#12546]'

# Prerelease string of this module
# Prerelease = ''
Expand Down
2 changes: 2 additions & 0 deletions src/Aks/Aks/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 2.3.0
* Added `Start-AzAksCluster`, `Stop-AzAksCluster`, `Get-AzAksUpgradeProfile` and `Get-AzAksNodePoolUpgradeProfile`. [#14194]
* Added property `IdentityProfile` in the output of `Get-AzAksCluster`. [#12546]

Expand Down
4 changes: 2 additions & 2 deletions src/Aks/Aks/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
[assembly: ComVisible(false)]
[assembly: CLSCompliant(false)]
[assembly: Guid("a97e0c3e-e389-46a6-b73d-2b9bd6909bdb")]
[assembly: AssemblyVersion("2.2.0")]
[assembly: AssemblyFileVersion("2.2.0")]
[assembly: AssemblyVersion("2.3.0")]
[assembly: AssemblyFileVersion("2.3.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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.5.1'; })
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.5.2'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'Microsoft.Azure.Management.AlertsManagement.dll'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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.5.1'; })
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.5.2'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'Microsoft.Azure.Management.Analysis.dll'
Expand Down
2 changes: 1 addition & 1 deletion src/ApiManagement/ApiManagement/Az.ApiManagement.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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.5.1'; })
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.5.2'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'AutoMapper.dll', 'Microsoft.Azure.Management.ApiManagement.dll',
Expand Down
2 changes: 1 addition & 1 deletion src/AppConfiguration/Az.AppConfiguration.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.5.1'; })
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.5.2'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = './bin/Az.AppConfiguration.private.dll'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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.5.1'; })
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.5.2'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'Microsoft.Azure.Management.ApplicationInsights.dll'
Expand Down
2 changes: 1 addition & 1 deletion src/Attestation/Attestation/Az.Attestation.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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.5.1'; })
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.5.2'; })

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