Skip to content

Commit 85895e5

Browse files
committed
Merge branch 'master' of https://github.com/Azure/azure-powershell into jikma/adddataflow
2 parents 92c62dc + a511475 commit 85895e5

File tree

292 files changed

+89554
-33475
lines changed

Some content is hidden

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

292 files changed

+89554
-33475
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
name: Az 4.x preview bug report
3+
about: Report errors or unexpected behaviors specifically for the Az 4.0 module in preview
4+
title: ''
5+
labels: 'Az 4.x Preview', 'Azure PS Team'
6+
assignees: ''
7+
---
8+
9+
<!--
10+
11+
- This issue is specifically for reporting issues related to the preview versions of the Az 4.0 PowerShell module
12+
- Please search the existing issues to see if there has been a similar issue filed
13+
- For issue related to importing a module, please refer to our troubleshooting guide:
14+
- https://github.com/Azure/azure-powershell/blob/master/documentation/troubleshoot-module-load.md
15+
16+
-->
17+
18+
## Description
19+
20+
21+
22+
## Steps to reproduce
23+
24+
```powershell
25+
26+
```
27+
28+
## Environment data
29+
30+
<!-- Please run $PSVersionTable and paste the output in the below code block -->
31+
32+
```
33+
34+
```
35+
36+
## Module version
37+
38+
<!-- Please run (Get-Module -ListAvailable) and paste the output in the below code block -->
39+
40+
```powershell
41+
42+
```
43+
44+
## Azure Profile
45+
46+
<!-- Please indicate the selected Azure profile, if any -->
47+
48+
```powershell
49+
50+
```
51+
52+
## Debug output
53+
54+
<!-- Set $DebugPreference='Continue' before running the repro and paste the resulting debug stream in the below code block -->
55+
56+
```
57+
58+
```
59+
60+
## Error output
61+
62+
<!-- Please run Resolve-AzError and paste the output in the below code block -->
63+
64+
```
65+
66+
```

ChangeLog.md

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,132 @@
1+
## 2.7.0 - September 2019
2+
#### Az.ApiManagement
3+
* Update '-Format' parameter description in 'Set-AzApiManagementPolicy' reference documentation
4+
* Removed references of deprecated cmdlet 'Update-AzApiManagementDeployment' from reference documentation. Use 'Set-AzApiManagement' instead.
5+
6+
#### Az.Automation
7+
* Fixed example typo in reference documentation for 'Register-AzAutomationDscNode'
8+
* Added clarification on OS restriction to Register-AzAutomationDSCNode
9+
* Fixed Start-AzAutomationRunbook cmdlet Null reference exception for -Wait option.
10+
11+
#### Az.Compute
12+
* Add UploadSizeInBytes parameter tp New-AzDiskConfig
13+
* Add Incremental parameter to New-AzSnapshotConfig
14+
* Add a low priority virtual machine feature:
15+
- MaxPrice, EvictionPolicy and Priority parameters are added to New-AzVMConfig.
16+
- MaxPrice parameter is added to New-AzVmssConfig, Update-AzVM and Update-AzVmss cmdlets.
17+
* Fix VM reference issue for Get-AzAvailabilitySet cmdlet when it lists all availability sets in the subscription.
18+
* Fix the null exception for Get-AzRemoteDesktopFile.
19+
* Fix VHD Seek method for end-relative position.
20+
* Fix UltraSSD issue for New-AzVM and Update-AzVM.
21+
22+
#### Az.DataFactory
23+
* Adding 3 new commands for ADF V2 - Add-AzDataFactoryV2TriggerSubscription, Remove-AzDataFactoryV2TriggerSubscription, and Get-AzDataFactoryV2TriggerSubscriptionStatus
24+
* Updated ADF .Net SDK version to 4.1.3
25+
26+
#### Az.HDInsight
27+
* Call out breaking changes
28+
29+
#### Az.IotHub
30+
* Add support to invoke failover for an IotHub to the geo-paired disaster recovery region.
31+
* Add support to manage message enrichment for an IotHub. New cmdlets are:
32+
- Add-AzIotHubMessageEnrichment
33+
- Get-AzIotHubMessageEnrichment
34+
- Remove-AzIotHubMessageEnrichment
35+
- Set-AzIotHubMessageEnrichment
36+
37+
#### Az.Monitor
38+
* Pointing to the most recent Monitor SDK, i.e. 0.24.1-preview
39+
- Adds non-braking changes to the Metrics cmdlets, i.e. the Unit enumeration supports several new values. These are read-only cmdlets, so there would be no change in the input of the cmdlets.
40+
- The api-version of the **ActionGroups** requests is now **2019-06-01**, before it was **2018-03-01**. The scenario tests have been updated to accommodate for this change.
41+
- The constructors for the classes **EmailReceiver** and **WebhookReceiver** added one new mandatory argument, i.e. a Boolean value called **useCommonAlertSchema**. Currently, the value is fixed to **false** to hide this breaking change from the cmdlets. **NOTE**: this is a temporary change that must be validated by the Alerts team.
42+
- The order of the arguments for the constructor of the class **Source** (related to the **ScheduledQueryRuleSource** class) changed from the previous SDK. This change required two unit tests to the be fixed: they compiled, but failed to pass the tests.
43+
- The order of the arguments for the constructor of the class **AlertingAction** (related to the **ScheduledQueryRuleSource** class) changed from the previous SDK. This change required two unit tests to the be fixed: they compiled, but failed to pass the tests.
44+
* Support Dynamic Threshold criteria for metric alert V2
45+
- New-AzMetricAlertRuleV2Criteria: now creats dynamic threshold criteria also
46+
- Add-AzMetricAlertRuleV2: now accept dynamic threshold criteria also
47+
* Improvements in Scheduled Query Rule cmdlets (SQR)
48+
- Cmdlets will accept 'Location' paramater in both formats, either the location (e.g. eastus) or the location display name (e.g. East US)
49+
- Illustrated 'Enabled' parameter in help files properly
50+
- Added examples for 'ActionGroup' optional parameter
51+
- Overall improved help files
52+
* Fix bug in determining scope type for 'Set-AzActionRule'
53+
54+
#### Az.Network
55+
* Fix incorrect example in 'New-AzApplicationGateway' reference documentation
56+
* Add note in 'Get-AzNetworkWatcherPacketCapture' reference documentation about retrieving all properties for a packet capture
57+
* Fixed example in 'Test-AzNetworkWatcherIPFlow' reference documentation to correctly enumerate NICs
58+
* Improved cloud exception parsing to display additional details if they are present
59+
* Improved cloud exception parsing to handle additional type of SDK exception
60+
* Fixed incorrect mapping of Security Rule models
61+
* Added properties to network interface for private ip feature
62+
- Added property 'PrivateEndpoint' as type of PSResourceId to PSNetworkInterface
63+
- Added property 'PrivateLinkConnectionProperties' as type of PSIpConfigurationConnectivityInformation to PSNetworkInterfaceIPConfiguration
64+
- Added new model class PSIpConfigurationConnectivityInformation
65+
* Added new ApplicationRuleProtocolType 'mssql' for Azure Firewall resource
66+
* MultiLink support in Virtual WAN
67+
- New cmdlets
68+
- New-AzVpnSiteLink
69+
- New-AzVpnSiteLinkConnection
70+
- Updated cmdlet:
71+
- New-VpnSite
72+
- Update-VpnSite
73+
- New-VpnConnection
74+
- Update-VpnConnection
75+
* Fixed documents for some PowerShell examples to use Az cmdlets instead of AzureRM cmdlets
76+
77+
#### Az.RecoveryServices
78+
* Update AzureVMpolicy Object with ProtectedItemsCount Attribute
79+
* Added Tests for VM policy and Original Storage Account Restore
80+
81+
#### Az.Resources
82+
* Fix bug where New-AzRoleAssignment could not be called without parameter Scope.
83+
84+
#### Az.ServiceFabric
85+
* Fixed typo in example for 'Update-AzServiceFabricReliability' reference documentation
86+
* Adding new cmdlets to manage appliaction and services:
87+
- New-AzServiceFabricApplication
88+
- New-AzServiceFabricApplicationType
89+
- New-AzServiceFabricApplicationTypeVersion
90+
- New-AzServiceFabricService
91+
- Update-AzServiceFabricApplication
92+
- Get-AzServiceFabricApplication
93+
- Get-AzServiceFabricApplicationType
94+
- Get-AzServiceFabricApplicationTypeVersion
95+
- Get-AzServiceFabricService
96+
- Remove-AzServiceFabricApplication
97+
- Remove-AzServiceFabricApplicationType
98+
- Remove-AzServiceFabricApplicationTypeVersion
99+
- Remove-AzServiceFabricServic
100+
* Upgraded Service Fabric SDK to version 1.2.0 which uses service fabric resource provider api-version 2019-03-01.
101+
102+
#### Az.SignalR
103+
* Add Update, Restart, CheckNameAvailability, GetUsage Cmdlets
104+
105+
#### Az.Sql
106+
* Update example in reference documentation for 'Get-AzSqlElasticPool'
107+
* Added vCore example to creating an elastic pool (New-AzSqlElasticPool).
108+
* Remove the validation of EmailAddresses and the check that EmailAdmins is not false in case EmailAddresses is empty in Set-AzSqlServerAdvancedThreatProtectionPolicy and Set-AzSqlDatabaseAdvancedThreatProtectionPolicy
109+
* Enabled removal of server/database auditing settings when multiple diagnostic settings that enable audit category exist.
110+
* Fix email addresses validation in multiple Sql Vulnerability Assessment cmdlets (Update-AzSqlDatabaseVulnerabilityAssessmentSetting, Update-AzSqlServerVulnerabilityAssessmentSetting, Update-AzSqlInstanceDatabaseVulnerabilityAssessmentSetting and Update-AzSqlInstanceVulnerabilityAssessmentSetting).
111+
112+
#### Az.Storage
113+
* Updated example in reference documentation for 'Get-AzStorageAccountKey'
114+
* In upload/Downalod Azure File,support perserve the source File SMB properties (File Attributtes, File Creation Time, File Last Write Time) in the destination file
115+
- Set-AzStorageFileContent
116+
- Get-AzStorageFileContent
117+
* Fix Upload block blob with properties/metadate fail on container enabled ImmutabilityPolicy.
118+
- Set-AzStorageBlobContent
119+
* Support manage Azure File shares with Management plane API
120+
- New-AzRmStorageShare
121+
- Get-AzRmStorageShare
122+
- Update-AzRmStorageShare
123+
- Remove-AzRmStorageShare
124+
125+
#### Az.Websites
126+
* Fixing issue where webapp Tags were getting deleted when migrating App to new ASPwhere webapp Tags were getting deleted when migrating App to new ASP
127+
* Fixing the Publish-AzureWebapp to work across Linux and windows
128+
* Update example in 'Get-AzWebAppPublishingProfile' reference documentation
129+
1130
## 2.6.0 - August 2019
2131
#### General
3132
* Fixed miscellaneous typos across numerous modules

src/Accounts/Accounts/Az.Accounts.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# RootModule = ''
1313

1414
# Version number of this module.
15-
ModuleVersion = '1.6.2'
15+
ModuleVersion = '1.6.3'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core', 'Desktop'

src/Accounts/Accounts/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
-->
2020
## Upcoming Release
2121

22+
## Version 1.6.3
23+
* Update telemetry and url rewriting for generated modules, fix windows unit tests.
24+
2225
## Version 1.6.2
2326
* Fixed miscellaneous typos across module
2427
* Support user-assigned MSI in Azure Functions Authentication (#9479)

src/Accounts/Accounts/CommonModule/EnvironmentExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ internal static Uri PatchHost(this Uri baseUri, string newBase)
237237
if (baseUri.IsAbsoluteUri)
238238
{
239239
output.Path = output.Uri.AppendPathRemoveDuplicates(baseUri.AbsolutePath);
240-
output.Query = baseUri.Query;
241-
output.Fragment = baseUri.Fragment;
240+
output.Query = baseUri.Query?.TrimStart('?');
241+
output.Fragment = baseUri.Fragment?.TrimStart('#');
242242
return output.Uri;
243243
}
244244

src/Accounts/Accounts/CommonModule/TelemetryProvider.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,11 @@ public virtual AzurePSQoSEvent CreateQosEvent(InvocationInfo invocationInfo, str
139139
SessionId = correlationId,
140140
ParameterSetName = parameterSetName,
141141
InvocationName = invocationInfo?.InvocationName,
142-
InputFromPipeline = invocationInfo?.PipelineLength > 0,
142+
InputFromPipeline = invocationInfo?.PipelineLength > 0
143143
};
144144

145+
data.CustomProperties.Add("PSPreviewVersion", "4.0.0");
146+
145147
if (invocationInfo != null)
146148
{
147149
data.Parameters = string.Join(",", invocationInfo?.BoundParameters?.Keys?.ToArray());

src/Accounts/Accounts/CommonModule/UniqueId.cs

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
using System.Threading;
1717
using System.Threading.Tasks;
1818
using System.Net.Http;
19-
using Microsoft.Azure.Commands.Common.Authentication;
20-
using System.Net.Http.Headers;
21-
using System.Management.Automation;
2219

2320
namespace Microsoft.Azure.Commands.Common
2421
{
@@ -28,19 +25,12 @@ namespace Microsoft.Azure.Commands.Common
2825
/// <summary>
2926
/// Pipeline step for adding x-ms-unique-id header
3027
/// </summary>
31-
public class UserAgent
28+
public class UniqueId
3229
{
33-
Version _version;
30+
private static UniqueId _instance;
31+
public static UniqueId Instance => UniqueId._instance ?? (UniqueId._instance = new UniqueId());
3432

35-
public UserAgent(InvocationInfo invocation)
36-
: this(invocation?.MyCommand?.Module?.Version ?? new Version("1.0.0"))
37-
{
38-
}
39-
40-
public UserAgent(Version moduleVersion)
41-
{
42-
_version = moduleVersion;
43-
}
33+
private int count;
4434

4535
/// <summary>
4636
/// Pipeline delegate to add a unique id header to an outgoing request
@@ -53,13 +43,8 @@ public UserAgent(Version moduleVersion)
5343
/// <returns>Amended pipeline for retrieving a response</returns>
5444
public Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken token, Action cancel, SignalDelegate signal, NextDelegate next)
5545
{
56-
var userAgents = AzureSession.Instance?.ClientFactory?.UserAgents ?? new ProductInfoHeaderValue[] { new ProductInfoHeaderValue("AzurePowerShell", $"Az{_version.ToString()}") };
57-
// add user agent haeaders
58-
59-
foreach (var userAgent in userAgents)
60-
{
61-
request.Headers.UserAgent.Add(userAgent);
62-
}
46+
// add a header...
47+
request.Headers.Add("x-ms-unique-id", Interlocked.Increment(ref this.count).ToString());
6348

6449
// continue with pipeline.
6550
return next(request, token, cancel, signal);

src/Accounts/Accounts/CommonModule/UserAgent.cs

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
using System.Threading;
1717
using System.Threading.Tasks;
1818
using System.Net.Http;
19+
using Microsoft.Azure.Commands.Common.Authentication;
20+
using System.Net.Http.Headers;
21+
using System.Management.Automation;
1922

2023
namespace Microsoft.Azure.Commands.Common
2124
{
@@ -25,12 +28,19 @@ namespace Microsoft.Azure.Commands.Common
2528
/// <summary>
2629
/// Pipeline step for adding x-ms-unique-id header
2730
/// </summary>
28-
public class UniqueId
31+
public class UserAgent
2932
{
30-
private static UniqueId _instance;
31-
public static UniqueId Instance => UniqueId._instance ?? (UniqueId._instance = new UniqueId());
33+
Version _version;
3234

33-
private int count;
35+
public UserAgent(InvocationInfo invocation)
36+
: this(invocation?.MyCommand?.Module?.Version ?? new Version("1.0.0"))
37+
{
38+
}
39+
40+
public UserAgent(Version moduleVersion)
41+
{
42+
_version = moduleVersion;
43+
}
3444

3545
/// <summary>
3646
/// Pipeline delegate to add a unique id header to an outgoing request
@@ -43,8 +53,13 @@ public class UniqueId
4353
/// <returns>Amended pipeline for retrieving a response</returns>
4454
public Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken token, Action cancel, SignalDelegate signal, NextDelegate next)
4555
{
46-
// add a header...
47-
request.Headers.Add("x-ms-unique-id", Interlocked.Increment(ref this.count).ToString());
56+
var userAgents = new ProductInfoHeaderValue[] { new ProductInfoHeaderValue("AzurePowerShell", $"Az4.0.0-preview") };
57+
// add user agent haeaders
58+
59+
foreach (var userAgent in userAgents)
60+
{
61+
request.Headers.UserAgent.Add(userAgent);
62+
}
4863

4964
// continue with pipeline.
5065
return next(request, token, cancel, signal);

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

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

5656
# Assemblies that must be loaded prior to importing this module
5757
RequiredAssemblies = '.\Microsoft.Azure.Management.Advisor.dll'

src/Aks/Aks/Az.Aks.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2'
5353
# ProcessorArchitecture = ''
5454

5555
# Modules that must be imported into the global environment prior to importing this module
56-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.6.2'; })
56+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.6.3'; })
5757

5858
# Assemblies that must be loaded prior to importing this module
5959
RequiredAssemblies = '.\YamlDotNet.dll', '.\AutoMapper.dll'

src/AlertsManagement/AlertsManagement/Az.AlertsManagement.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2'
5353
# ProcessorArchitecture = ''
5454

5555
# Modules that must be imported into the global environment prior to importing this module
56-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.6.2'; })
56+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.6.3'; })
5757

5858
# Assemblies that must be loaded prior to importing this module
5959
RequiredAssemblies = '.\Microsoft.Azure.Management.AlertsManagement.dll'

src/AnalysisServices/AnalysisServices/Az.AnalysisServices.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2'
5353
# ProcessorArchitecture = ''
5454

5555
# Modules that must be imported into the global environment prior to importing this module
56-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.6.2'; })
56+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.6.3'; })
5757

5858
# Assemblies that must be loaded prior to importing this module
5959
RequiredAssemblies = '.\Microsoft.Azure.Management.Analysis.dll'

0 commit comments

Comments
 (0)