Skip to content

Commit 4a2d902

Browse files
authored
Merge pull request #15598 from VeryEarly/mergestorage
[Do not Squash][storage] merge latest change from main to storage
2 parents eea118a + e990f36 commit 4a2d902

File tree

3,662 files changed

+456132
-126368
lines changed

Some content is hidden

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

3,662 files changed

+456132
-126368
lines changed

.azure-pipelines/daily-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Please don't use ADO UI defined scheduled triggers because it takes precedence over YAML scheduled triggers.
22
# https://docs.microsoft.com/en-us/azure/devops/pipelines/process/scheduled-triggers
33
schedules:
4-
- cron: "0 0 * * *"
5-
displayName: Daily Midnight Build
4+
- cron: "0 18 * * *"
5+
displayName: 2:00 AM (UTC + 8:00) China Daily Build
66
branches:
77
include:
88
- main
@@ -153,4 +153,4 @@ jobs:
153153
inputs:
154154
artifactName: artifacts
155155
targetPath: artifacts
156-
condition: succeededOrFailed()
156+
condition: succeededOrFailed()

ChangeLog.md

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,101 @@
1+
## 6.3.0 - August 2021
2+
#### Az.Accounts
3+
* Disabled context auto saving when token cache persistence fails on Windows and macOS
4+
* Added PowerShell version into telemetry record
5+
* Upgraded Microsoft.ApplicationInsights from 2.4.0 to 2.12.0
6+
* Updated Azure.Core to 1.16.0
7+
8+
#### Az.Aks
9+
* Added 'Start-AzAksCluster', 'Stop-AzAksCluster', 'Get-AzAksUpgradeProfile' and 'Get-AzAksNodePoolUpgradeProfile'. [#14194]
10+
* Added property 'IdentityProfile' in the output of 'Get-AzAksCluster'. [#12546]
11+
12+
#### Az.CognitiveServices
13+
* [Breaking Change] Changed type of PSCognitiveServicesAccount.Identity.Type from IdentityType to ResourceIdentityType.
14+
* [Breaking Change] Changed type of PSCognitiveServicesAccount.Sku.Tier from SkuTier to string.
15+
* [Breaking Change] Removed ActionRequired from PrivateLinkServiceConnectionState.
16+
* Updated PowerShell to use 2021-04-30 version.
17+
* Added 'Undo-AzCognitiveServicesAccountRemoval' cmdlet.
18+
* Added parameters '-RestrictOutboundNetworkAccess', '-AllowedFqdnList', '-DisableLocalAuth', '-KeyVaultIdentityClientId', '-IdentityType', '-UserAssignedIdentityId' to 'New-AzureCognitiveServicesAccount' and 'Set-AzureCognitiveServicesAccount'.
19+
* Added parameters '-InRemovedState', '-Location' to 'Remove-AzureCognitiveServicesAccount' and 'Get-AzureCognitiveServicesAccount'.
20+
21+
#### Az.Compute
22+
* 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.
23+
* Edited 'Set-AzVmOperatingSystem' cmdlet to no longer overwrite any existing EnableAutomaticUpdates value on the passed in virtual machine if it exists.
24+
* Updated Compute module to use the latest .Net SDK version 48.0.0.
25+
* Added new cmdlets for the Capacity Reservation Feature:
26+
- 'New-AzCapacityReservationGroup'
27+
- 'Remove-AzCapacityReservationGroup'
28+
- 'Get-AzCapacityReservationGroup'
29+
- 'New-AzCapacityReservation'
30+
- 'Remove-AzCapacityReservation'
31+
- 'Get-AzCapacityReservation'
32+
* Added a new parameter '-CapacityReservationGroupId' to the following cmdlets:
33+
- 'New-AzVm'
34+
- 'New-AzVmConfig'
35+
- 'New-AzVmss'
36+
- 'New-AzVmssConfig'
37+
- 'Update-AzVm'
38+
- 'Update-AzVmss'
39+
40+
#### Az.DataFactory
41+
* Updated ADF .Net SDK version to 4.21.0
42+
43+
#### Az.Migrate
44+
* Added SQL Server license type.
45+
* Added CRN feature.
46+
* Added resource tags feature.
47+
* Updated to 2021-02-10 api version.
48+
49+
#### Az.Monitor
50+
* Added parameter 'ResourceGroupName' back for 'Add-AzAutoscaleSetting' parameter set 'AddAzureRmAutoscaleSettingUpdateParamGroup' and made it optional [#15491]
51+
52+
#### Az.RecoveryServices
53+
* Added Archive for V1 vaults.
54+
* Added ProtectedItemsCount in Get-AzRecoveryServicesBackupProtectionPolicy.
55+
* Azure site recovery bug fix for azure to azure in update vm properties.
56+
57+
#### Az.RedisCache
58+
* Added 'RedisVersion' parameter in 'New-AzRedisCache' and 'Set-AzRedisCache'
59+
60+
#### Az.Resources
61+
* Fixed bug with 'PSResource' where some constructors left 'SubscriptionId' property unassigned/null. [#10783]
62+
* Added support for creating and updating Template Spec in Bicep file [#15313]
63+
* Added '-ProceedIfNoChange' parameter to deployment create cmdlets.
64+
65+
#### Az.ServiceFabric
66+
* Fixed Managed and Classic Application models (Application, Cluster, Service) by updating constructor to take all new properties
67+
- 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
68+
- Updated appropriate test files to cover the above mentioned cases
69+
70+
#### Az.Sql
71+
* Fixed identity logic in 'Set-AzSqlServer' and 'Set-AzSqlInstance'
72+
73+
#### Az.Storage
74+
* Supported Blob Last Access Time
75+
- 'Enable-AzStorageBlobLastAccessTimeTracking'
76+
- 'Disable-AzStorageBlobLastAccessTimeTracking'
77+
- 'Add-AzStorageAccountManagementPolicyAction'
78+
* Made 'Get-AzDataLakeGen2ChildItem' list all datalake gen2 items by default, instead of needing user to list chunk by chunk.
79+
* Fixed BlobProperties is empty issue when using sas without prefix '?' [#15460]
80+
* Fixed synchronously copy small blob failure [#15548]
81+
- 'Copy-AzStorageBlob'
82+
83+
#### Az.Websites
84+
* Fixed 'Add-AzWebAppAccessRestrictionRule' failing when users does not have permissions to get Service Tag list #15316 and #14862
85+
86+
### Thanks to our community contributors
87+
* Borys Generalov (@bgener), Update Get-AzPolicyState.md (#15455)
88+
* Dean Mock (@deanmock), Update New-AzAutomationSchedule.md (#15371)
89+
* John Bevan (@JohnLBevan), #10783 - Fix for Get-AzResource returning PSResource with null SubscriptionId (#15106)
90+
* Michael Mejias Sanchez (@mikemej), Update - Update deployment (external VNET) (#15391)
91+
* @mjsharma, Adding note for alternate commands (#15360)
92+
* Ked Mardemootoo (@nocticdr), Fixed some typos for added clarity (#15428)
93+
* Pascal Berger (@pascalberger), Fix parameter name in Sync-AzVirtualNetworkPeering examples (#15493)
94+
* @rcabr, Doc fix in Get-AzStorageContainer (#15476)
95+
* AAron (@S-AA-RON), Update New-AzNetworkSecurityGroup.md (#15512)
96+
* 坂本ポテコ (@sakamoto-poteko), Update New-AzVMConfig.md (#15376)
97+
* @Shawn-Yuen, Update Remove-AzDataLakeGen2Item.md (#15388)
98+
199
## 6.2.1 - July 2021
2100
#### Az.Accounts
3101
* Fixed access error when subscripiton has no 'Tags' property [#15425].

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 - July 2021"
40+
$productName = "Microsoft Azure PowerShell - August 2021"
4141

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

src/ADDomainServices/Az.ADDomainServices.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 = '2.5.1'; })
54+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.5.2'; })
5555

5656
# Assemblies that must be loaded prior to importing this module
5757
RequiredAssemblies = './bin/Az.ADDomainServices.private.dll'

src/Accounts/Accounts/Az.Accounts.psd1

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 7/9/2021
6+
# Generated on: 2021/7/29
77
#
88

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

1414
# Version number of this module.
15-
ModuleVersion = '2.5.1'
15+
ModuleVersion = '2.5.2'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core', 'Desktop'
@@ -145,7 +145,10 @@ PrivateData = @{
145145
# IconUri = ''
146146

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

150153
# Prerelease string of this module
151154
# Prerelease = ''

src/Accounts/Accounts/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
-->
2020

2121
## Upcoming Release
22+
23+
## Version 2.5.2
2224
* Disabled context auto saving when token cache persistence fails on Windows and macOS
25+
* Added PowerShell version into telemetry record
2326
* Upgraded Microsoft.ApplicationInsights from 2.4.0 to 2.12.0
2427
* Updated Azure.Core to 1.16.0
2528

src/Accounts/Accounts/CommonModule/AzModule.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
using Newtonsoft.Json;
2323
using System;
2424
using System.Collections.Generic;
25+
using System.Collections.ObjectModel;
2526
using System.Linq;
2627
using System.Management.Automation;
2728
using System.Net;
@@ -223,10 +224,16 @@ await signal(Events.Debug, cancellationToken,
223224

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

232239
internal async Task OnProcessRecordAsyncEnd(string id, CancellationToken cancellationToken, GetEventData getEventData, SignalDelegate signal, string processRecordId)
@@ -280,9 +287,9 @@ internal async Task OnCmdletEndProcessing(string id, CancellationToken cancellat
280287
if (_telemetry.TryGetValue(processRecordId, out qos))
281288
{
282289
qos.IsSuccess = (qos.Exception == null);
283-
await signal(Events.Debug, cancellationToken,
284-
() => EventHelper.CreateLogEvent($"[{id}]: Sending new QosEvent for command '{qos.CommandName}': {qos.ToString()}"));
290+
await signal(Events.Debug, cancellationToken, () => EventHelper.CreateLogEvent(qos.ToString()));
285291
_telemetry.LogEvent(processRecordId);
292+
await signal(Events.Debug, cancellationToken, () => EventHelper.CreateLogEvent("Finish sending metric."));
286293
_previousEndTime = DateTimeOffset.Now;
287294
}
288295
}

src/Accounts/Accounts/CommonModule/TelemetryProvider.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
namespace Microsoft.Azure.Commands.Common
3333
{
3434
/// <summary>
35-
/// Class providing telemtry usage based on the user's data collection settings
35+
/// Class providing telemetry usage based on the user's data collection settings
3636
/// </summary>
3737
public class TelemetryProvider : IDictionary<string, AzurePSQoSEvent>, IDisposable
3838
{
@@ -116,6 +116,7 @@ public virtual void LogEvent(string key)
116116
{
117117
qos.FinishQosEvent();
118118
_helper.LogQoSEvent(qos, enabled, enabled);
119+
_helper.FlushMetric();
119120
this.Remove(key);
120121
}
121122
}
@@ -158,6 +159,9 @@ public virtual AzurePSQoSEvent CreateQosEvent(InvocationInfo invocationInfo, str
158159

159160
qosEvent.UserAgent = AzurePSCmdlet.UserAgent;
160161
qosEvent.AzVersion = AzurePSCmdlet.AzVersion;
162+
qosEvent.PSVersion = AzurePSCmdlet.PowerShellVersion;
163+
qosEvent.HostVersion = AzurePSCmdlet.PSHostVersion;
164+
qosEvent.PSHostName = AzurePSCmdlet.PSHostName;
161165

162166
if (invocationInfo != null)
163167
{

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

src/Accounts/Authentication/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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("2.5.1")]
47-
[assembly: AssemblyFileVersion("2.5.1")]
46+
[assembly: AssemblyVersion("2.5.2")]
47+
[assembly: AssemblyFileVersion("2.5.2")]

0 commit comments

Comments
 (0)