Skip to content

Commit 700b6cf

Browse files
Merge pull request #2 from Azure/master
merge from upstream
2 parents 8a1450d + 5fe49e1 commit 700b6cf

File tree

761 files changed

+172471
-122417
lines changed

Some content is hidden

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

761 files changed

+172471
-122417
lines changed

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Feature request
33
about: Suggest a new feature or improvement
44
title: ''
5-
labels: Feature Request
5+
labels: Azure PS Team, Feature Request
66
assignees: ''
77

88
---

ChangeLog.md

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,177 @@
1+
## 2.2.0 - June 2019
2+
#### Az.Cdn
3+
* Updated cmdlets to support rulesEngine feature based on API version 2019-04-15.
4+
5+
#### Az.Compute
6+
* Added `NoWait` parameter that starts the operation and returns immediately, before the operation is completed.
7+
- Updated cmdlets:
8+
Export-AzLogAnalyticRequestRateByInterval
9+
Export-AzLogAnalyticThrottledRequest
10+
Remove-AzVM
11+
Remove-AzVMAccessExtension
12+
Remove-AzVMAEMExtension
13+
Remove-AzVMChefExtension
14+
Remove-AzVMCustomScriptExtension
15+
Remove-AzVMDiagnosticsExtension
16+
Remove-AzVMDiskEncryptionExtension
17+
Remove-AzVMDscExtension
18+
Remove-AzVMSqlServerExtension
19+
Restart-AzVM
20+
Set-AzVM
21+
Set-AzVMAccessExtension
22+
Set-AzVMADDomainExtension
23+
Set-AzVMAEMExtension
24+
Set-AzVMBginfoExtension
25+
Set-AzVMChefExtension
26+
Set-AzVMCustomScriptExtension
27+
Set-AzVMDiagnosticsExtension
28+
Set-AzVMDscExtension
29+
Set-AzVMExtension
30+
Start-AzVM
31+
Stop-AzVM
32+
Update-AzVM
33+
34+
#### Az.EventHub
35+
* Fix for #9231 - Get-AzEventHubNamespace does not return tags
36+
* Fix for #9230 - Get-AzEventHubNamespace returns ResourceGroup instead of ResourceGroupName
37+
38+
#### Az.Network
39+
* Update ResourceId and InputObject for Nat Gateway
40+
- Add alias for ResourceId and InputObject
41+
42+
#### Az.PolicyInsights
43+
* Fix Null reference issue in Get-AzPolicyEvent
44+
45+
#### Az.RecoveryServices
46+
* IaaSVM policy minimum retention in days changed to 7 from 1
47+
48+
#### Az.ServiceBus
49+
* Fix for issue #9182 - Get-AzServiceBusNamespace returns ResourceGroup instead of ResourceGroupName
50+
51+
#### Az.ServiceFabric
52+
* Fix typo in error message for 'Update-AzServiceFabricReliability'
53+
* Fix missing character in Service Fabric cmdlines
54+
55+
#### Az.Sql
56+
* Add DnsZonePartner Parameter for New-AzureSqlInstance cmdlet to support AutoDr for Managed Instance.
57+
* Deprecating Get-AzSqlDatabaseSecureConnectionPolicy cmdlet
58+
* Rename Threat Detection cmdlets to Advanced Threat Protection
59+
* New-AzSqlInstance -StorageSizeInGB and -LicenseType parameters are now optional.
60+
61+
#### Az.Websites
62+
* fixes the issue where using Set-AzWebApp and Set-AzWebAppSlot with -WebApp property was removing the tags
63+
64+
## 2.1.0 - May 2019
65+
#### Az.ApiManagement
66+
* Created new Cmdlets for managing diagnostics at the global and API Scope
67+
- **Get-AzApiManagementDiagnostic** - Get the diagnostics configured a global or api Scope
68+
- **New-AzApiManagementDiagnostic** - Create new diagnostics at the global scope or api Scope
69+
- **New-AzApiManagementHttpMessageDiagnostic** - Create diagnostic setting for which Headers to log and the size of Body Bytes
70+
- **New-AzApiManagementPipelineDiagnosticSetting** - Create Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
71+
- **New-AzApiManagementSamplingSetting** - Create Sampling Setting for the requests/response for a diagnostic
72+
- **Remove-AzApiManagementDiagnostic** - Remove a diagnostic entity at global or api scope
73+
- **Set-AzApiManagementDiagnostic** - Update a diagnostic Entity at global or api scope
74+
* Created new Cmdlets for managing Cache in ApiManagement service
75+
- **Get-AzApiManagementCache** - Get the details of the Cache specified by identifier or all caches
76+
- **New-AzApiManagementCache** - Create a new 'default' Cache or Cache in a particular azure 'region'
77+
- **Remove-AzApiManagementCache** - Remove a cache
78+
- **Update-AzApiManagementCache** - Update a cache
79+
* Created new Cmdlets for managing API Schema
80+
- **New-AzApiManagementSchema** - Create a new Schema for an API
81+
- **Get-AzApiManagementSchema** - Get the schemas configured in the API
82+
- **Remove-AzApiManagementSchema** - Remove the schema configured in the API
83+
- **Set-AzApiManagementSchema** - Update the schema configured in the API
84+
* Created new Cmdlet for generating a User Token.
85+
- **New-AzApiManagementUserToken** - Generate a new User Token valid for 8 hours by default.Token for the 'GIT' user can be generated using this cmdlet./
86+
* Created a new cmdlet to retrieving the Network Status
87+
- **Get-AzApiManagementNetworkStatus** - Get the Network status connectivity of resources on which API Management service depends on. This is useful when deploying ApiManagement service into a Virtual Network and validing whether any of the dependencies are broken.
88+
* Updated cmdlet **New-AzApiManagement** to manage ApiManagement service
89+
- Added support for the new 'Consumption' SKU
90+
- Added support to turn the 'EnableClientCertificate' flag on for 'Consumption' SKU
91+
- The new cmdlet **New-AzApiManagementSslSetting** allows configuring 'TLS/SSL' setting on the 'Backend' and 'Frontend'. This can also be used to configure 'Ciphers' like '3DES' and 'ServerProtocols' like 'Http2' on the 'Frontend' of an ApiManagement service.
92+
- Added support for configuring the 'DeveloperPortal' hostname on ApiManagement service.
93+
* Updated cmdlets **Get-AzApiManagementSsoToken** to take 'PsApiManagement' object as input
94+
* Updated the cmdlet to display Error Messages inline
95+
- `PS D:\github\azure-powershell> Set-AzApiManagementPolicy -Context -PolicyFilePath C:\wrongpolicy.xml -ApiId httpbin`
96+
- `Set-AzApiManagementPolicy :`
97+
- `Error Code: ValidationError`
98+
- `Error Message: One or more fields contain incorrect values:`
99+
- `Error Details: [Code=ValidationError, Message=Error in element 'log-to-eventhub' on line 3, column 10: Logger not found, Target=log-to-eventhub]`
100+
* Updated cmdlet **Export-AzApiManagementApi** to export APIs in 'OpenApi 3.0' format
101+
* Updated cmdlet **Import-AzApiManagementApi**
102+
- To import Api from 'OpenApi 3.0' document specification
103+
- To override the 'PsApiManagementSchema' property specified in any ('Swagger', 'Wadl', 'Wsdl', 'OpenApi') document.
104+
- To override the 'ServiceUrl' property specified in any document.
105+
* Updated cmdlet **Get-AzApiManagementPolicy** to return policy in Non-Xml escaped 'format' using 'rawxml'
106+
* Updated cmdlet **Set-AzApiManagementPolicy** to accept policy in Non-Xml escaped 'format' using 'rawxml' and Xml escaped using 'xml'
107+
* Updated cmdlet **New-AzApiManagementApi**
108+
- To configure API with 'OpenId' authorization server.
109+
- To create an API in an 'ApiVersionSet'
110+
- To clone an API using 'SourceApiId' and 'SourceApiRevision'.
111+
- Ability to configure 'SubscriptionRequired' at the Api scope.
112+
* Updated cmdlet **Set-AzApiManagementApi**
113+
- To configure API with 'OpenId' authorization server.
114+
- To updated an API into an 'ApiVersionSet'
115+
- Ability to configure 'SubscriptionRequired' at the Api scope.
116+
* Updated cmdlet **New-AzApiManagementRevision**
117+
- To clone (copy tags, products, operations and policies) an existing revision using 'SourceApiRevision'. The new Revision assumes the 'ApiId' of the parent.
118+
- To provide an 'ApiRevisionDescription'
119+
- To override the 'ServiceUrl' when cloning an API.
120+
* Updated cmdlet **New-AzApiManagementIdentityProvider**
121+
- To configure 'AAD' or 'AADB2C' with an 'Authority'
122+
- To setup 'SignupPolicy', 'SigninPolicy', 'ProfileEditingPolicy' and 'PasswordResetPolicy'
123+
* Updated cmdlet **New-AzApiManagementSubscription**
124+
- To account for the new SubscriptonModel using 'Scope' and 'UserId'
125+
- To account for the old subscription model using 'ProductId' and 'UserId'
126+
- Add support to enable 'AllowTracing' at the subscription level.
127+
* Updated cmdlet **Set-AzApiManagementSubscription**
128+
- To account for the new SubscriptonModel using 'Scope' and 'UserId'
129+
- To account for the old subscription model using 'ProductId' and 'UserId'
130+
- Add support to enable 'AllowTracing' at the subscription level.
131+
* Updated following cmdlets to accept 'ResourceId' as input
132+
- 'New-AzApiManagementContext'
133+
- `New-AzApiManagementContext -ResourceId /subscriptions/subid/resourceGroups/rgName/providers/Microsoft.ApiManagement/service/contoso`
134+
- 'Get-AzApiManagementApiRelease'
135+
- `Get-AzApiManagementApiRelease -ResourceId /subscriptions/subid/resourceGroups/rgName/providers/Microsoft.ApiManagement/service/contoso/apis/echo-api/releases/releaseId`
136+
- 'Get-AzApiManagementApiVersionSet'
137+
- `Get-AzApiManagementApiVersionSet -ResourceId /subscriptions/subid/resourceGroups/rgName/providers/Microsoft.ApiManagement/service/constoso/apiversionsets/pathversionset`
138+
- 'Get-AzApiManagementAuthorizationServer'
139+
- 'Get-AzApiManagementBackend'
140+
- `Get-AzApiManagementBackend -ResourceId /subscriptions/subid/resourceGroups/rgName/providers/Microsoft.ApiManagement/service/contoso/backends/servicefabric`
141+
- 'Get-AzApiManagementCertificate'
142+
- 'Remove-AzApiManagementApiVersionSet'
143+
- 'Remove-AzApiManagementSubscription'
144+
145+
#### Az.Automation
146+
* Updated Get-AzAutomationJobOutputRecord to handle JSON and Text record values.
147+
- Fix for issue https://github.com/Azure/azure-powershell/issues/7977
148+
- Fix for issue https://github.com/Azure/azure-powershell/issues/8600
149+
* Changed behavior for Start-AzAutomationDscCompilationJob to just start the job instead of waiting for its completion.
150+
* Fix for issue https://github.com/Azure/azure-powershell/issues/8347
151+
* Fix for Get-AzAutomationDscNode when using -Name returns all node. Now it returns matching node only.
152+
153+
#### Az.Compute
154+
* Add ProtectFromScaleIn and ProtectFromScaleSetAction parameters to Update-AzVmssVM cmdlet.
155+
* New-AzVM wimple parameter set now uses by default an available location if 'East US' is not supported
156+
157+
#### Az.DataLakeStore
158+
* Update the ADLS sdk to use httpclient, integrate dataplane testing with azure framework
159+
160+
#### Az.Monitor
161+
* Fixed incorrect parameter names in help examples
162+
163+
#### Az.Network
164+
* Add DisableBgpRoutePropagation flag to Effective Route Table output
165+
- Updated cmdlet:
166+
- Get-AzEffectiveRouteTable
167+
* Fix double dash in New-AzApplicationGatewayTrustedRootCertificate documentation
168+
169+
#### Az.Resources
170+
* Add new cmdlet Get-AzureRmDenyAssignment for retrieving deny assignments
171+
172+
#### Az.Sql
173+
* Rename Advanced Threat Protection cmdlets to Advanced Data Security and enable Vulnerability Assessment by default
174+
1175
## 2.0.0 - May 2019
2176
#### Az.Accounts
3177
* Update Authentication Library to fix ADFS issues with username/password auth

documentation/migration-guides/Az.2.0.0-migration-guide.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,16 +251,33 @@ This document describes the changes between the 1.0.0 and 2.0.0 versions of Az
251251
```
252252

253253
### Az.HDInsight
254-
- Removed cmdlet `Grant-AzHDInsightHttpServicesAccess` and replaced with `Set-AzHDInsightGatewayCredential`
254+
- Removed the `Grant-AzHDInsightHttpServicesAccess` and `Revoke-AzHDInsightHttpServicesAccess` cmdlets. These are no longer necessary because HTTP access is always enabled on all HDInsight clusters.
255+
- Added a new `Set-AzHDInsightGatewayCredential` cmdlet. Use this cmdlet to change the gateway HTTP username and password (replaces `Grant-AzHDInsightHttpServicesAccess`).
256+
- Updated the `Get-AzHDInsightJobOutput` cmdlet to support granular role-based access to the storage key.
257+
- Users with HDInsight Cluster Operator, Contributor, or Owner roles will not be affected.
258+
- Users with only the Reader role will need to specify `DefaultStorageAccountKey` parameter explicitly.
259+
260+
For more information about these role-based access changes, see [aka.ms/hdi-config-update](http://aka.ms/hdi-config-update)
261+
255262
#### Before
256263
```powershell
257-
Grant-AzHDInsightHttpServicesAccess ...
264+
Grant-AzHDInsightHttpServicesAccess -ClusterName $cluster -HttpCredential $credential
265+
```
266+
#### After
267+
```powershell
268+
Set-AzHDInsightGatewayCredential -ClusterName $cluster -HttpCredential $credential
269+
```
270+
271+
### Users with only Reader role for cmdlet Get-AzHDInsightJobOutput
272+
273+
#### Before
274+
```powershell
275+
Get-AzHDInsightJobOutput -ClusterName $clusterName -JobId $jobId
258276
```
259277
#### After
260278
```powershell
261-
Set-AzHDInsightGatewayCredential ...
279+
Get-AzHDInsightJobOutput -ClusterName $clusterName -JobId $jobId -DefaultStorageAccountKey $storageAccountKey
262280
```
263-
- Removed cmdlet `Revoke-AzHDInsightHttpServicesAccess`
264281

265282
### Az.Storage
266283
- Namespaces for types returned from Blob, Queue, and File cmdlets have changed their namespace from `Microsoft.WindowsAzure.Storage` to `Microsoft.Azure.Storage`. While this is not technically a breaking change according to the breaking change policy, it may require some changes in code that uses the methods from the Storage .Net SDK to interact with the objects returned from these cmdlets.

documentation/troubleshoot-module-load.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,12 @@ If you see a version of Az.Accounts installed in the session, you can resolve th
156156

157157
Azure PowerShell is a set of binary modules, meaning that cmdlets are defined and implemented in .NET Standard code. PowerShell loads cmdlet assemblies into a single AppDomain, and these assemblies cannot be unloaded, even if the module is removed. Therefore, a module assembly and all its dependent assemblies remain loaded in the PowerShell session once it is imported until the PowerShell session is closed. Additionally, the types defined in a .NET Standard assembly are strongly tied to the assembly version, so that the types from version `A` and version `B` of the same assembly will appear as different types in the PowerShell session. When these types are used in common by multiple assemblies (as in the authentication types in Az.Accounts), then the types that are meant to be common are actually different for each module version. This causes problems when authentication information is instantiated using types from version `X` of Az.Accounts, but an assembly requires version `Y` of these types.
158158

159-
This underlying problem is solved in Az by requiring all authentication types used by the modules to be fully backward compatible.
159+
This underlying problem is solved in Az by requiring all authentication types used by the modules to be fully backward compatible.
160+
161+
### Newtonsoft.Json versions per PowerShell edition
162+
163+
The library `Newtonsoft.Json` is used throughout our cmdlets to handle JSON information. However, we do not have control of the version of this library that is loaded in PowerShell. To troubleshoot serialization issues, here is a table of the versions of `Newtonsoft.Json` that are loaded by the various editions of PowerShell.
164+
165+
| | Windows PowerShell 5.1 | PowerShell Core 6.0 | PowerShell Core 6.1 | PowerShell Core 6.2
166+
| - | - | - | - | - |
167+
| **Newtonsoft.Json** | 6.0.8 | 10.0.3 | 11.0.2 | 12.0.1

src/Accounts/Authentication.Test/LongRunningCmdletTests.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,21 @@ public void JobCopiesCmdletParameterSet()
208208
}
209209

210210

211+
[Fact]
212+
[Trait(Category.AcceptanceType, Category.CheckIn)]
213+
public void NoWaitWithAsJob()
214+
{
215+
var mock = new Mock<ICommandRuntime>();
216+
var cmdlet = new AzureStreamTestCmdlet();
217+
cmdlet.MyInvocation.BoundParameters["AsJob"] = true;
218+
cmdlet.MyInvocation.BoundParameters["NoWait"] = true;
219+
220+
mock.Setup(m => m.WriteObject(It.IsAny<object>())).Throws(new InvalidOperationException("Should not execute as job"));
221+
222+
cmdlet.CommandRuntime = mock.Object;
223+
cmdlet.ExecuteSynchronouslyOrAsJob();
224+
}
225+
211226
AzureStreamTestCmdlet SetupCmdlet(bool CallShouldProcess, bool CallShouldContinue, out Mock<ICommandRuntime> mockRuntime)
212227
{
213228
var cmdlet = new AzureStreamTestCmdlet();

src/Advisor/Advisor/Az.Advisor.psd1

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

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

1414
# Version number of this module.
15-
ModuleVersion = '0.1.0'
15+
ModuleVersion = '0.1.1'
1616

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

2020
# ID used to uniquely identify this module
21-
GUID = '860B550A-20CE-4FB1-BAE7-EF10E9221BCE'
21+
GUID = '860b550a-20ce-4fb1-bae7-ef10e9221bce'
2222

2323
# Author of this module
2424
Author = 'Microsoft Corporation'
@@ -32,13 +32,13 @@ Copyright = '(c) 2017 Microsoft Corporation. All rights reserved.'
3232
# Description of the functionality provided by this module
3333
Description = 'Microsoft Azure PowerShell - Azure Advisor Cmdlets for Advisor in Windows PowerShell and PowerShell Core. Get Advisor recommendations, Manage Advisor configurations.'
3434

35-
# Minimum version of the Windows PowerShell engine required by this module
35+
# Minimum version of the PowerShell engine required by this module
3636
PowerShellVersion = '5.1'
3737

38-
# Name of the Windows PowerShell host required by this module
38+
# Name of the PowerShell host required by this module
3939
# PowerShellHostName = ''
4040

41-
# Minimum version of the Windows PowerShell host required by this module
41+
# Minimum version of the PowerShell host required by this module
4242
# PowerShellHostVersion = ''
4343

4444
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
@@ -73,8 +73,8 @@ FunctionsToExport = @()
7373

7474
# Cmdlets 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 cmdlets to export.
7575
CmdletsToExport = 'Get-AzAdvisorRecommendation', 'Enable-AzAdvisorRecommendation',
76-
'Disable-AzAdvisorRecommendation','Get-AzAdvisorConfiguration',
77-
'Set-AzAdvisorConfiguration'
76+
'Disable-AzAdvisorRecommendation', 'Get-AzAdvisorConfiguration',
77+
'Set-AzAdvisorConfiguration'
7878

7979
# Variables to export from this module
8080
# VariablesToExport = @()
@@ -97,7 +97,7 @@ PrivateData = @{
9797
PSData = @{
9898

9999
# Tags applied to this module. These help with module discovery in online galleries.
100-
Tags = 'Azure', 'Advisor'
100+
Tags = 'Azure','Advisor'
101101

102102
# A URL to the license for this module.
103103
LicenseUri = 'https://aka.ms/azps-license'
@@ -109,20 +109,20 @@ PrivateData = @{
109109
# IconUri = ''
110110

111111
# ReleaseNotes of this module
112-
ReleaseNotes = 'First release of Advisor cmdlets'
112+
ReleaseNotes = '* Updated utils to be extensible for future changes'
113113

114114
# Prerelease string of this module
115115
# Prerelease = ''
116116

117-
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
117+
# Flag to indicate whether the module requires explicit user acceptance for install/update
118118
# RequireLicenseAcceptance = $false
119119

120120
# External dependent modules of this module
121121
# ExternalModuleDependencies = @()
122122

123123
} # End of PSData hashtable
124124

125-
} # End of PrivateData hashtable
125+
} # End of PrivateData hashtable
126126

127127
# HelpInfo URI of this module
128128
# HelpInfoURI = ''

src/Advisor/Advisor/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
- Additional information about change #1
2020
-->
2121
## Upcoming Release
22+
23+
## Version 0.1.1
2224
* Updated utils to be extensible for future changes
2325

2426
## Version 0.1.0

src/Advisor/Advisor/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
[assembly: CLSCompliant(false)]
2626
[assembly: Guid("860B550A-20CE-4FB1-BAE7-EF10E9221BCE")]
2727

28-
[assembly: AssemblyVersion("0.1.0")]
29-
[assembly: AssemblyFileVersion("0.1.0")]
28+
[assembly: AssemblyVersion("0.1.1")]
29+
[assembly: AssemblyFileVersion("0.1.1")]

src/ApiManagement/ApiManagement.ServiceManagement.Test/ApiManagement.ServiceManagement.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.Azure.Management.ApiManagement" Version="4.0.6-preview" />
14+
<PackageReference Include="Microsoft.Azure.Management.ApiManagement" Version="4.10.0-preview" />
1515
</ItemGroup>
1616

1717
<ItemGroup>

0 commit comments

Comments
 (0)