Skip to content

Commit 66db94b

Browse files
committed
Merge branch 'master' of github.com:Azure/azure-powershell into test-build-filter
2 parents 1f321dc + 5c3a092 commit 66db94b

File tree

476 files changed

+133750
-92914
lines changed

Some content is hidden

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

476 files changed

+133750
-92914
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: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,114 @@
1+
## 2.1.0 - May 2019
2+
#### Az.ApiManagement
3+
* Created new Cmdlets for managing diagnostics at the global and API Scope
4+
- **Get-AzApiManagementDiagnostic** - Get the diagnostics configured a global or api Scope
5+
- **New-AzApiManagementDiagnostic** - Create new diagnostics at the global scope or api Scope
6+
- **New-AzApiManagementHttpMessageDiagnostic** - Create diagnostic setting for which Headers to log and the size of Body Bytes
7+
- **New-AzApiManagementPipelineDiagnosticSetting** - Create Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
8+
- **New-AzApiManagementSamplingSetting** - Create Sampling Setting for the requests/response for a diagnostic
9+
- **Remove-AzApiManagementDiagnostic** - Remove a diagnostic entity at global or api scope
10+
- **Set-AzApiManagementDiagnostic** - Update a diagnostic Entity at global or api scope
11+
* Created new Cmdlets for managing Cache in ApiManagement service
12+
- **Get-AzApiManagementCache** - Get the details of the Cache specified by identifier or all caches
13+
- **New-AzApiManagementCache** - Create a new 'default' Cache or Cache in a particular azure 'region'
14+
- **Remove-AzApiManagementCache** - Remove a cache
15+
- **Update-AzApiManagementCache** - Update a cache
16+
* Created new Cmdlets for managing API Schema
17+
- **New-AzApiManagementSchema** - Create a new Schema for an API
18+
- **Get-AzApiManagementSchema** - Get the schemas configured in the API
19+
- **Remove-AzApiManagementSchema** - Remove the schema configured in the API
20+
- **Set-AzApiManagementSchema** - Update the schema configured in the API
21+
* Created new Cmdlet for generating a User Token.
22+
- **New-AzApiManagementUserToken** - Generate a new User Token valid for 8 hours by default.Token for the 'GIT' user can be generated using this cmdlet./
23+
* Created a new cmdlet to retrieving the Network Status
24+
- **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.
25+
* Updated cmdlet **New-AzApiManagement** to manage ApiManagement service
26+
- Added support for the new 'Consumption' SKU
27+
- Added support to turn the 'EnableClientCertificate' flag on for 'Consumption' SKU
28+
- 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.
29+
- Added support for configuring the 'DeveloperPortal' hostname on ApiManagement service.
30+
* Updated cmdlets **Get-AzApiManagementSsoToken** to take 'PsApiManagement' object as input
31+
* Updated the cmdlet to display Error Messages inline
32+
- `PS D:\github\azure-powershell> Set-AzApiManagementPolicy -Context -PolicyFilePath C:\wrongpolicy.xml -ApiId httpbin`
33+
- `Set-AzApiManagementPolicy :`
34+
- `Error Code: ValidationError`
35+
- `Error Message: One or more fields contain incorrect values:`
36+
- `Error Details: [Code=ValidationError, Message=Error in element 'log-to-eventhub' on line 3, column 10: Logger not found, Target=log-to-eventhub]`
37+
* Updated cmdlet **Export-AzApiManagementApi** to export APIs in 'OpenApi 3.0' format
38+
* Updated cmdlet **Import-AzApiManagementApi**
39+
- To import Api from 'OpenApi 3.0' document specification
40+
- To override the 'PsApiManagementSchema' property specified in any ('Swagger', 'Wadl', 'Wsdl', 'OpenApi') document.
41+
- To override the 'ServiceUrl' property specified in any document.
42+
* Updated cmdlet **Get-AzApiManagementPolicy** to return policy in Non-Xml escaped 'format' using 'rawxml'
43+
* Updated cmdlet **Set-AzApiManagementPolicy** to accept policy in Non-Xml escaped 'format' using 'rawxml' and Xml escaped using 'xml'
44+
* Updated cmdlet **New-AzApiManagementApi**
45+
- To configure API with 'OpenId' authorization server.
46+
- To create an API in an 'ApiVersionSet'
47+
- To clone an API using 'SourceApiId' and 'SourceApiRevision'.
48+
- Ability to configure 'SubscriptionRequired' at the Api scope.
49+
* Updated cmdlet **Set-AzApiManagementApi**
50+
- To configure API with 'OpenId' authorization server.
51+
- To updated an API into an 'ApiVersionSet'
52+
- Ability to configure 'SubscriptionRequired' at the Api scope.
53+
* Updated cmdlet **New-AzApiManagementRevision**
54+
- To clone (copy tags, products, operations and policies) an existing revision using 'SourceApiRevision'. The new Revision assumes the 'ApiId' of the parent.
55+
- To provide an 'ApiRevisionDescription'
56+
- To override the 'ServiceUrl' when cloning an API.
57+
* Updated cmdlet **New-AzApiManagementIdentityProvider**
58+
- To configure 'AAD' or 'AADB2C' with an 'Authority'
59+
- To setup 'SignupPolicy', 'SigninPolicy', 'ProfileEditingPolicy' and 'PasswordResetPolicy'
60+
* Updated cmdlet **New-AzApiManagementSubscription**
61+
- To account for the new SubscriptonModel using 'Scope' and 'UserId'
62+
- To account for the old subscription model using 'ProductId' and 'UserId'
63+
- Add support to enable 'AllowTracing' at the subscription level.
64+
* Updated cmdlet **Set-AzApiManagementSubscription**
65+
- To account for the new SubscriptonModel using 'Scope' and 'UserId'
66+
- To account for the old subscription model using 'ProductId' and 'UserId'
67+
- Add support to enable 'AllowTracing' at the subscription level.
68+
* Updated following cmdlets to accept 'ResourceId' as input
69+
- 'New-AzApiManagementContext'
70+
- `New-AzApiManagementContext -ResourceId /subscriptions/subid/resourceGroups/rgName/providers/Microsoft.ApiManagement/service/contoso`
71+
- 'Get-AzApiManagementApiRelease'
72+
- `Get-AzApiManagementApiRelease -ResourceId /subscriptions/subid/resourceGroups/rgName/providers/Microsoft.ApiManagement/service/contoso/apis/echo-api/releases/releaseId`
73+
- 'Get-AzApiManagementApiVersionSet'
74+
- `Get-AzApiManagementApiVersionSet -ResourceId /subscriptions/subid/resourceGroups/rgName/providers/Microsoft.ApiManagement/service/constoso/apiversionsets/pathversionset`
75+
- 'Get-AzApiManagementAuthorizationServer'
76+
- 'Get-AzApiManagementBackend'
77+
- `Get-AzApiManagementBackend -ResourceId /subscriptions/subid/resourceGroups/rgName/providers/Microsoft.ApiManagement/service/contoso/backends/servicefabric`
78+
- 'Get-AzApiManagementCertificate'
79+
- 'Remove-AzApiManagementApiVersionSet'
80+
- 'Remove-AzApiManagementSubscription'
81+
82+
#### Az.Automation
83+
* Updated Get-AzAutomationJobOutputRecord to handle JSON and Text record values.
84+
- Fix for issue https://github.com/Azure/azure-powershell/issues/7977
85+
- Fix for issue https://github.com/Azure/azure-powershell/issues/8600
86+
* Changed behavior for Start-AzAutomationDscCompilationJob to just start the job instead of waiting for its completion.
87+
* Fix for issue https://github.com/Azure/azure-powershell/issues/8347
88+
* Fix for Get-AzAutomationDscNode when using -Name returns all node. Now it returns matching node only.
89+
90+
#### Az.Compute
91+
* Add ProtectFromScaleIn and ProtectFromScaleSetAction parameters to Update-AzVmssVM cmdlet.
92+
* New-AzVM wimple parameter set now uses by default an available location if 'East US' is not supported
93+
94+
#### Az.DataLakeStore
95+
* Update the ADLS sdk to use httpclient, integrate dataplane testing with azure framework
96+
97+
#### Az.Monitor
98+
* Fixed incorrect parameter names in help examples
99+
100+
#### Az.Network
101+
* Add DisableBgpRoutePropagation flag to Effective Route Table output
102+
- Updated cmdlet:
103+
- Get-AzEffectiveRouteTable
104+
* Fix double dash in New-AzApplicationGatewayTrustedRootCertificate documentation
105+
106+
#### Az.Resources
107+
* Add new cmdlet Get-AzureRmDenyAssignment for retrieving deny assignments
108+
109+
#### Az.Sql
110+
* Rename Advanced Threat Protection cmdlets to Advanced Data Security and enable Vulnerability Assessment by default
111+
1112
## 2.0.0 - May 2019
2113
#### Az.Accounts
3114
* Update Authentication Library to fix ADFS issues with username/password auth

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/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>
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"pet": {
3+
"required": [
4+
"id",
5+
"name"
6+
],
7+
"externalDocs": {
8+
"description": "findmoreinfohere",
9+
"url": "https: //helloreverb.com/about"
10+
},
11+
"properties": {
12+
"id": {
13+
"type": "integer",
14+
"format": "int64"
15+
},
16+
"name": {
17+
"type": "string"
18+
},
19+
"tag": {
20+
"type": "string"
21+
}
22+
}
23+
},
24+
"newPet": {
25+
"allOf": [
26+
{
27+
"$ref": "pet"
28+
},
29+
{
30+
"required": [
31+
"name"
32+
],
33+
"id": {
34+
"properties": {
35+
"type": "integer",
36+
"format": "int64"
37+
}
38+
}
39+
}
40+
]
41+
},
42+
"errorModel": {
43+
"required": [
44+
"code",
45+
"message"
46+
],
47+
"properties": {
48+
"code": {
49+
"type": "integer",
50+
"format": "int32"
51+
},
52+
"message": {
53+
"type": "string"
54+
}
55+
}
56+
}
57+
}

0 commit comments

Comments
 (0)