Skip to content

Commit 136f773

Browse files
committed
Merge branch 'master' of github.com:Azure/azure-powershell into test-build-filter
2 parents b24490e + 6350c76 commit 136f773

File tree

1,148 files changed

+517935
-381043
lines changed

Some content is hidden

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

1,148 files changed

+517935
-381043
lines changed

.azure-pipelines/windows-powershell.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,36 @@ jobs:
1919
testFramework: ${{ variables.TestFramework }}
2020
configuration: ${{ variables.Configuration }}
2121

22+
- job: Analyze
23+
displayName: Analyze
24+
dependsOn: Build
25+
condition: succeeded()
26+
pool:
27+
vmImage: ${{ variables.WindowsImage }}
28+
29+
steps:
30+
- template: util/analyze-steps.yml
31+
parameters:
32+
osName: ${{ variables.WindowsName }}
33+
configuration: ${{ variables.Configuration }}
34+
- task: PowerShell@2
35+
displayName: 'Cleanup Build'
36+
inputs:
37+
targetType: filePath
38+
filePath: tools/CleanupBuild.ps1
39+
pwsh: true
40+
- task: NuGetCommand@2
41+
displayName: 'Download BinSkim'
42+
inputs:
43+
command: custom
44+
arguments: 'install Microsoft.CodeAnalysis.BinSkim -OutputDirectory $(System.DefaultWorkingDirectory)/tools/SecurityTools'
45+
- task: PowerShell@2
46+
displayName: 'Run BinSkim'
47+
inputs:
48+
targetType: filePath
49+
filePath: tools/SecurityTools/RunBinSkim.ps1
50+
pwsh: true
51+
2252
- job: Test
2353
displayName: Test
2454
dependsOn: Build

.github/ISSUE_TEMPLATE/az-module-bug-report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ assignees: ''
3737

3838
## Module versions
3939

40-
<!-- Please run (Get-Module -Name Az.* -ListAvailable) and paste the output in the below code block -->
40+
<!-- Please run (Get-Module -ListAvailable) and paste the output in the below code block -->
4141

4242
```powershell
4343
@@ -53,7 +53,7 @@ assignees: ''
5353

5454
## Error output
5555

56-
<!-- Please run Resolve-AzureRmError and paste the output in the below code block -->
56+
<!-- Please run Resolve-AzError and paste the output in the below code block -->
5757

5858
```
5959

ChangeLog.md

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,119 @@
1+
## 2.0.0 - May 2019
2+
#### Az.Accounts
3+
* Update Authentication Library to fix ADFS issues with username/password auth
4+
5+
#### Az.CognitiveServices
6+
* Only display Bing disclaimer for Bing Search Services.
7+
* Improve error when create account failed.
8+
9+
#### Az.Compute
10+
* Proximity placement group feature.
11+
- The following new cmdlets are added:
12+
New-AzProximityPlacementGroup
13+
Get-AzProximityPlacementGroup
14+
Remove-AzProximityPlacementGroup
15+
- The new parameter, ProximityPlacementGroupId, is added to the following cmdlets:
16+
New-AzAvailabilitySet
17+
New-AzVMConfig
18+
New-AzVmssConfig
19+
* StorageAccountType parameter is added to New-AzGalleryImageVersion.
20+
* TargetRegion of New-AzGalleryImageVersion can contain StorageAccountType.
21+
* SkipShutdown switch parameter is added to Stop-AzVM and Stop-AzVmss
22+
* Breaking changes
23+
- Set-AzVMBootDiagnostics is changed to Set-AzVMBootDiagnostic.
24+
- Export-AzLogAnalyticThrottledRequests is changed to Export-AzLogAnalyticThrottledRequests.
25+
26+
#### Az.DeploymentManager
27+
* First Generally Available release of Azure Deployment Manager cmdlets
28+
29+
#### Az.Dns
30+
* Automatic DNS NameServer Delegation
31+
- Create DNS zone cmdlet accepts parent zone name as additional optional parameter.
32+
- Adds NS records in the parent zone for newly created child zone.
33+
34+
#### Az.FrontDoor
35+
* First Generally Available Release of Azure FrontDoor cmdlets
36+
* Rename WAF cmdlets to include 'Waf'
37+
- `Get-AzFrontDoorFireWallPolicy --> Get-AzFrontDoorWafPolicy`
38+
- `New-AzFrontDoorCustomRuleObject --> New-AzFrontDoorWafCustomRuleObject`
39+
- `New-AzFrontDoorFireWallPolicy --> New-AzFrontDoorWafPolicy`
40+
- `New-AzFrontDoorManagedRuleObject --> New-AzFrontDoorWafManagedRuleObject`
41+
- `New-AzFrontDoorManagedRuleOverrideObject --> New-AzFrontDoorWafManagedRuleOverrideObject`
42+
- `New-AzFrontDoorMatchConditionObject --> New-AzFrontDoorWafMatchConditionObject`
43+
- `New-AzFrontDoorRuleGroupOverrideObject --> New-AzFrontDoorWafRuleGroupOverrideObject`
44+
- `Remove-AzFrontDoorFireWallPolicy --> Remove-AzFrontDoorWafPolicy`
45+
- `Update-AzFrontDoorFireWallPolicy --> Update-AzFrontDoorWafPolicy`
46+
#### Az.HDInsight
47+
* Removed two cmdlets:
48+
- Grant-AzHDInsightHttpServicesAccess
49+
- Revoke-AzHDInsightHttpServicesAccess
50+
* Added a new cmdlet Set-AzHDInsightGatewayCredential to replace Grant-AzHDInsightHttpServicesAccess
51+
* Update cmdlet Get-AzHDInsightJobOutput to distinguish reader role and hdinsight operator role:
52+
- Users with reader role need to specify 'DefaultStorageAccountKey' parameter explicitly, otherwise error occurs.
53+
- Users with hdinsight operator role will not be affected.
54+
55+
#### Az.Monitor
56+
* New cmdlets for SQR API (Scheduled Query Rule)
57+
- New-AzScheduledQueryRuleAlertingAction
58+
- New-AzScheduledQueryRuleAznsActionGroup
59+
- New-AzScheduledQueryRuleLogMetricTrigger
60+
- New-AzScheduledQueryRuleSchedule
61+
- New-AzScheduledQueryRuleSource
62+
- New-AzScheduledQueryRuleTriggerCondition
63+
- New-AzScheduledQueryRule
64+
- Get-AzScheduledQueryRule
65+
- Set-AzScheduledQueryRule
66+
- Update-AzScheduledQueryRule
67+
- Remove-AzScheduledQueryRule
68+
- [More](https://docs.microsoft.com/en-us/rest/api/monitor/scheduledqueryrules) information about SQR API
69+
- Updated Az.Monitor.md to include cmdlets for GenV2(non classic) metric-based alert rule
70+
71+
#### Az.Network
72+
* Add support for Nat Gateway Resource
73+
- New cmdlets
74+
- New-AzNatGateway
75+
- Get-AzNatGateway
76+
- Set-AzNatGateway
77+
- Remove-AzNatGateway
78+
- Updated cmdlets
79+
- New-AzureVirtualNetworkSubnetConfigCommand
80+
- Add-AzureVirtualNetworkSubnetConfigCommand
81+
* Updated below commands for feature: Custom routes set/remove on Brooklyn Gateway.
82+
- Updated New-AzVirtualNetworkGateway: Added optional parameter -CustomRoute to set the address prefixes as custom routes to set on Gateway.
83+
- Updated Set-AzVirtualNetworkGateway: Added optional parameter -CustomRoute to set the address prefixes as custom routes to set on Gateway.
84+
85+
#### Az.PolicyInsights
86+
* Support for querying policy evaluation details.
87+
- Add '-Expand' parameter to Get-AzPolicyState. Support '-Expand PolicyEvaluationDetails'.
88+
89+
#### Az.RecoveryServices
90+
* Support for Cross subscription Azure to Azure site recovery.
91+
* Marking upcoming breaking changes for Azure Site Recovery.
92+
* Fix for Azure Site Recovery recovery plan end action plan.
93+
* Fix for Azure Site Recovery Update network mapping for Azure to Azure.
94+
* Fix for Azure Site Recovery update protection direction for Azure to Azure for managed disk.
95+
* Other minor fixes.
96+
97+
#### Az.Relay
98+
* Fix typos in customer-facing messages
99+
100+
#### Az.ServiceBus
101+
* Added new cmdlets for NetworkRuleSet of Namespace
102+
103+
#### Az.Storage
104+
* Upgrade to Storage Client Library 10.0.1 (the namespace of all objects from this SDK change from 'Microsoft.WindowsAzure.Storage.*' to 'Microsoft.Azure.Storage.*')
105+
* Upgrade to Microsoft.Azure.Management.Storage 11.0.0, to support new API version 2019-04-01.
106+
* The default Storage account Kind in Create Storage account change from 'Storage' to 'StorageV2'
107+
- New-AzStorageAccount
108+
* Change the Storage account cmdlet output Sku.Name to be aligned with input SkuName by add '-', like 'StandardLRS' change to 'Standard_LRS'
109+
- New-AzStorageAccount
110+
- Get-AzStorageAccount
111+
- Set-AzStorageAccount
112+
113+
#### Az.Websites
114+
* 'Kind' property will now be set for PSSite objects returned by Get-AzWebApp
115+
* Get-AzWebApp*Metrics and Get-AzAppServicePlanMetrics marked deprecated
116+
1117
## 1.8.0 - April 2019
2118
### Highlights since the last major release
3119
* General availability of `Az` module

src/Accounts/Accounts/Az.Accounts.psd1

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#
2-
# Module manifest for module 'PSGet_Az.Accounts'
2+
# Module manifest for module 'Az.Accounts'
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 4/18/2019
6+
# Generated on: 4/30/2019
77
#
88

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

1414
# Version number of this module.
15-
ModuleVersion = '1.5.1'
15+
ModuleVersion = '1.5.2'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core', 'Desktop'
@@ -74,7 +74,6 @@ RequiredAssemblies = '.\Microsoft.Azure.PowerShell.Authentication.Abstractions.d
7474
'.\Microsoft.Azure.Common.dll',
7575
'.\Microsoft.Rest.ClientRuntime.dll',
7676
'.\Microsoft.Rest.ClientRuntime.Azure.dll',
77-
'.\Microsoft.Rest.ClientRuntime.Azure.Authentication.dll',
7877
'.\Microsoft.WindowsAzure.Storage.dll',
7978
'.\Microsoft.WindowsAzure.Storage.DataMovement.dll',
8079
'.\Microsoft.Azure.PowerShell.Clients.Aks.dll',
@@ -143,12 +142,12 @@ PrivateData = @{
143142
# IconUri = ''
144143

145144
# ReleaseNotes of this module
146-
ReleaseNotes = '* Update Uninstall-AzureRm to correctly delete modules in Mac'
145+
ReleaseNotes = '* Update Authentication Library to fix ADFS issues with username/password auth'
147146

148147
# Prerelease string of this module
149148
# Prerelease = ''
150149

151-
# Flag to indicate whether the module requires explicit user acceptance for install/update
150+
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
152151
# RequireLicenseAcceptance = $false
153152

154153
# External dependent modules of this module

src/Accounts/Accounts/AzureRmAlias/Mappings.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -947,14 +947,15 @@
947947
"New-AzFrontDoorFrontendEndpointObject": "New-AzureRmFrontDoorFrontendEndpointObject",
948948
"New-AzFrontDoorHealthProbeSettingObject": "New-AzureRmFrontDoorHealthProbeSettingObject",
949949
"New-AzFrontDoorLoadBalancingSettingObject": "New-AzureRmFrontDoorLoadBalancingSettingObject",
950-
"New-AzFrontDoorMatchConditionObject": "New-AzureRmFrontDoorMatchConditionObject",
951-
"New-AzFrontDoorCustomRuleObject": "New-AzureRmFrontDoorCustomRuleObject",
952-
"New-AzFrontDoorManagedRuleObject": "New-AzureRmFrontDoorManagedRuleObject",
953-
"New-AzFrontDoorFireWallPolicy": "New-AzureRmFrontDoorFireWallPolicy",
954-
"Get-AzFrontDoorFireWallPolicy": "Get-AzureRmFrontDoorFireWallPolicy",
955-
"Set-AzFrontDoorFireWallPolicy": "Set-AzureRmFrontDoorFireWallPolicy",
956-
"Remove-AzFrontDoorFireWallPolicy": "Remove-AzureRmFrontDoorFireWallPolicy",
957-
"New-AzFrontDoorRuleGroupOverrideObject": "New-AzureRmFrontDoorRuleGroupOverrideObject",
950+
"New-AzFrontDoorWafMatchConditionObject": "New-AzureRmFrontDoorMatchConditionObject",
951+
"New-AzFrontDoorWafCustomRuleObject": "New-AzureRmFrontDoorCustomRuleObject",
952+
"New-AzFrontDoorWafManagedRuleObject": "New-AzureRmFrontDoorManagedRuleObject",
953+
"New-AzFrontDoorWafManagedRuleOverrideObject": "New-AzureRmFrontDoorManagedRuleOverrideObject",
954+
"New-AzFrontDoorWafPolicy": "New-AzureRmFrontDoorFireWallPolicy",
955+
"Get-AzFrontDoorWafPolicy": "Get-AzureRmFrontDoorFireWallPolicy",
956+
"Set-AzFrontDoorWafPolicy": "Set-AzureRmFrontDoorFireWallPolicy",
957+
"Remove-AzFrontDoorWafPolicy": "Remove-AzureRmFrontDoorFireWallPolicy",
958+
"New-AzFrontDoorWafRuleGroupOverrideObject": "New-AzureRmFrontDoorRuleGroupOverrideObject",
958959
"Remove-AzFrontDoorContent": "Remove-AzureRmFrontDoorContent",
959960
"Enable-AzFrontDoorCustomDomainHttps": "Enable-AzureRmFrontDoorCustomDomainHttps",
960961
"Disable-AzFrontDoorCustomDomainHttps": "Disable-AzureRmFrontDoorCustomDomainHttps",

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.5.2
23+
* Update Authentication Library to fix ADFS issues with username/password auth
24+
2225
## Version 1.5.1
2326
* Update Uninstall-AzureRm to correctly delete modules in Mac
2427

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

src/Accounts/Authentication/AdalLogger.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace Microsoft.Azure.Commands.Common.Authentication
2222
/// Implements logging callback for ADAL - since only a single logger is allowed, allow
2323
/// reporting logs to multiple logging mechanisms
2424
/// </summary>
25-
public class AdalLogger : IAdalLogCallback, IDisposable
25+
public class AdalLogger : IDisposable
2626
{
2727
Action<string> _logger;
2828

@@ -74,7 +74,7 @@ public void Log(LogLevel level, string message)
7474
/// <summary>
7575
/// Central logging mechanism - allows registering multiple logging callbacks
7676
/// </summary>
77-
class AdalCompositeLogger : IAdalLogCallback
77+
class AdalCompositeLogger
7878
{
7979
static object _lockObject = new object();
8080
IList<AdalLogger> _loggers = new List<AdalLogger>();
@@ -96,7 +96,8 @@ internal static void Enable(AdalLogger logger)
9696
lock (_lockObject)
9797
{
9898
Instance._loggers.Add(logger);
99-
LoggerCallbackHandler.Callback = Instance;
99+
LoggerCallbackHandler.LogCallback = Instance.Log;
100+
LoggerCallbackHandler.PiiLoggingEnabled = true;
100101
}
101102
}
102103

@@ -129,7 +130,7 @@ internal static void Disable(AdalLogger logger)
129130
/// </summary>
130131
/// <param name="level">The log level</param>
131132
/// <param name="message">The log message</param>
132-
public void Log(LogLevel level, string message)
133+
public void Log(LogLevel level, string message, bool containsPII)
133134
{
134135
foreach (var logger in _loggers)
135136
{

src/Accounts/Authentication/Authentication.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
</PropertyGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="Microsoft.Rest.ClientRuntime.Azure.Authentication" Version="2.3.5" />
16-
<PackageReference Include="Microsoft.IdentityModel.Clients.ActiveDirectory" Version="3.14.0" />
15+
<PackageReference Include="Microsoft.IdentityModel.Clients.ActiveDirectory" Version="3.19.2" />
1716
</ItemGroup>
1817

1918
</Project>

src/Accounts/Authentication/Authentication/CertificateApplicationCredentialProvider.cs

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)