Skip to content

Commit c9294e5

Browse files
authored
Merge branch 'master' into master
2 parents c9a6048 + 0de6068 commit c9294e5

File tree

293 files changed

+75211
-34564
lines changed

Some content is hidden

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

293 files changed

+75211
-34564
lines changed

ChangeLog.md

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,135 @@
1+
## 2.3.2 - June 2019
2+
#### Az.Accounts
3+
* Fix bug with incorrect URL being used in some cases for Functions calls
4+
- More information here: https://github.com/Azure/azure-powershell/issues/8983
5+
* Fix Issue with aliases from AzureRM to Az cmdlets
6+
- Set-AzureRmVMBootDiagnostics -> Set-AzVMBootDiagnostic
7+
- Export-AzureRMLogAnalyticThrottledRequests -> Export-AzLogAnalyticThrottledRequest
8+
9+
#### Az.Compute
10+
* New-AzVm and New-AzVmss simple parameter sets now accept the 'ProximityPlacementGroup' parameter.
11+
* Fix typo in 'New-AzVM' reference documentation
12+
13+
#### Az.Dns
14+
* Fixed a typo in 'Set-AzDnsZone' help examples.
15+
16+
#### Az.EventGrid
17+
* Updated to use the 2019-06-01 API version.
18+
* New cmdlets:
19+
- New-AzureRmEventGridDomain
20+
- Creates a new Azure Event Grid Domain.
21+
- Get-AzureRmEventGridDomain
22+
- Gets the details of an Event Grid Domain, or gets a list of all Event Grid Domains in the current Azure subscription.
23+
- Remove-AzureRmEventGridDomain
24+
- Removes an Azure Event Grid Domain.
25+
- New-AzureRmEventGridDomainKey
26+
- Regenerates the shared access key for an Azure Event Grid Domain.
27+
- Get-AzureRmEventGridDomainKey
28+
- Gets the shared access keys used to publish events to an Event Grid Domain.
29+
- New-AzureRmEventGridDomainTopic:
30+
- Creates a new Azure Event Grid Domain Topic.
31+
- Get-AzureRmEventGridDomainTopic
32+
- Gets the details of an Event Grid Domain Topic, or gets a list of all Event Grid Domain Topics under specific Event Grid Domain in the current Azure
33+
- Remove-AzureRmEventGridDomainTopic:
34+
- Removes an existing Azure Event Grid Domain Topic.
35+
* Updated cmdlets:
36+
- New-AzureRmEventGridSubscription/Update-AzureRmEventGridSubscription:
37+
- Add new mandatory parameters to support piping for the new Event Grid Domain and Event Grid Domain Topic to allow creating new event subscription under these resources.
38+
- Add new mandatory parameters for specifying the new Event Grid Domain name and/or Event Grid Domain Topic name to allow creating new event subscription under these resources.
39+
- Add new Parameter sets for domains and domain topics to allow reusing existing parameters (e.g., EndPointType, SubjectBeginsWith, etc).
40+
- Add new optional parameters for specifying:
41+
- Event subscription expiration date,
42+
- Advanced filtering parameters.
43+
- Add new enum for servicebusqueue as destination.
44+
- Disallow usage of 'All' in -IncludedEventType option and replace it with
45+
- Get-AzEventGridTopic, Get-AzEventGridDomain, Get-AzEventGridDomainTopic, Get-AzEventGridSubscription:
46+
- Add new optional parameters (Top, ODataQuery and NextLink) to support results pagination and filtering.
47+
- Remove-AzureRmEventGridSubscription
48+
- Add new mandatory parameters to support piping for Event Grid Domain and Event Grid Domain Topic to allow removing existing event subscription under these resources.
49+
- Add new mandatory parameters for specifying the Event Grid Domain name and/or Event Grid Domain Topic name to allow removing existing event subscription under these resources.
50+
51+
#### Az.FrontDoor
52+
* New-AzFrontDoorWafMatchConditionObject
53+
- Add transforms support and new operator auto-complete value (RegEx)
54+
* New-AzFrontDoorWafManagedRuleObject
55+
- Add new auto-complete values
56+
57+
#### Az.Network
58+
* Add support for Virtual Network Gateway Resource
59+
- New cmdlets
60+
- Get-AzVirtualNetworkGatewayVpnClientConnectionHealth
61+
* Add AvailablePrivateEndpointType
62+
- New cmdlets
63+
- Get-AzAvailablePrivateEndpointType
64+
* Add PrivatePrivateLinkService
65+
- New cmdlets
66+
- Get-AzPrivateLinkService
67+
- New-AzPrivateLinkService
68+
- Remove-AzPrivateLinkService
69+
- New-AzPrivateLinkServiceIpConfig
70+
- Set-AzPrivateEndpointConnection
71+
* Add PrivateEndpoint
72+
- New cmdlets
73+
- Get-AzPrivateEndpoint
74+
- New-AzPrivateEndpoint
75+
- Remove-AzPrivateEndpoint
76+
- New-AzPrivateLinkServiceConnection
77+
* Updated below commands for feature: UseLocalAzureIpAddress flag on VpnConnection
78+
- Updated New-AzVpnConnection: Added optional parameter -UseLocalAzureIpAddress to indicate that local azure ip address should be used as source address while initiating connection.
79+
- Updated Set-AzVpnConnection: Added optional parameter -UseLocalAzureIpAddress to indicate that local azure ip address should be used as source address while initiating connection.
80+
* Added readonly field PeeredConnections in ExpressRoute peering.
81+
* Added readonly field GlobalReachEnabled in ExpressRoute.
82+
* Added breaking change attribute to call out deprecation of AllowGlobalReach field in ExpressRouteCircuit model
83+
* Fixed Issue 8756 Error using TargetListenerID with AzApplicationGatewayRedirectConfiguration cmdlets
84+
* Fixed bug in New-AzApplicationGatewayPathRuleConfig that prevented the rewrite ruleset from being set.
85+
* Fixed displaying of VirtualNetworkTaps in NetworkInterfaceIpConfiguration
86+
* Fixed Cortex Get cmdlets for list all part
87+
* Fixed VirtualHub reference creation for ExpressRouteGateways, VpnGateway
88+
* Added support for Availability Zones in AzureFirewall and NatGateway
89+
* Added cmdlet Get-AzNetworkServiceTag
90+
* Add support for multiple public IP addresses for Azure Firewall
91+
- Updated New-AzFirewall cmdlet:
92+
- Added parameter -PublicIpAddress which accepts one or more Public IP Address objects
93+
- Added parameter -VirtualNetwork which accepts a Virtual Network object
94+
- Added methods AddPublicIpAddress and RemovePublicIpAddress on firewall object - these accept a Public IP Address object as input
95+
- Deprecated parameters -PublicIpName and -VirtualNetworkName
96+
* Updated below commands for feature: Set VpnClient AAD authentication options to Virtual network gateway resource.
97+
- Updated New-AzVirtualNetworkGateway: Added optional parameters AadTenantUri,AadAudienceId,AadIssuerUri to set VpnClient AAD authentication options on Gateway.
98+
- Updated Set-AzVirtualNetworkGateway: Added optional parameter AadTenantUri,AadAudienceId,AadIssuerUri to set VpnClient AAD authentication options on Gateway.
99+
- Updated Set-AzVirtualNetworkGateway: Added optional switch parameter RemoveAadAuthentication to remove VpnClient AAD authentication options from Gateway.
100+
101+
#### Az.OperationalInsights
102+
* Enable **pergb2018** pricing tier in 'New-AzureRmOperationalInsightsWorkspace' command
103+
104+
#### Az.Resources
105+
* Support for additional Template Export options
106+
- Add '-SkipResourceNameParameterization' parameter to Export-AzResourceGroup
107+
- Add '-SkipAllParameterization' parameter to Export-AzResourceGroup
108+
- Add '-Resource' parameter to Export-AzResourceGroup for exported resource filtering
109+
110+
#### Az.ServiceFabric
111+
* Fix add certificate ByExistingKeyVault getting the wrong thumbprint in some cases
112+
113+
#### Az.Sql
114+
* Fix Advanced Threat Protection storage endpoint suffix
115+
* Fix Advanced Data Security enable overrides Advanced Threat Protection policy
116+
* New Cmdlets for Management.Sql to allow customers to add TDE keys and set TDE protector for managed instances
117+
- Add-AzSqlInstanceKeyVaultKey
118+
- Get-AzSqlInstanceKeyVaultKey
119+
- Remove-AzSqlInstanceKeyVaultKey
120+
- Get-AzSqlInstanceTransparentDataEncryptionProtector
121+
- Set-AzSqlInstanceTransparentDataEncryptionProtector
122+
123+
#### Az.Storage
124+
* Support Kind FileStorage and SkuName Premium_ZRS when create Storage account
125+
- New-AzStorageAccount
126+
* Clarified description of blob immutability cmdlet
127+
- Remove-AzRmStorageContainerImmutabilityPolicy
128+
129+
#### Az.Websites
130+
* Optimizes Get-AzWebAppCertificate to filter by resource group on the server instead of the client
131+
* Adds -UseDisasterRecovery switch parameter to Get-AzWebAppSnapshot
132+
1133
## 2.2.0 - June 2019
2134
#### Az.Cdn
3135
* Updated cmdlets to support rulesEngine feature based on API version 2019-04-15.

build.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
<RuntimeDllsIncludeList>Microsoft.Powershell.*.dll,System*.dll,Microsoft.VisualBasic.dll,Microsoft.CSharp.dll,Microsoft.CodeAnalysis.dll,Microsoft.CodeAnalysis.CSharp.dll</RuntimeDllsIncludeList>
171171
<RuntimeDllsExcludeList>System.Security.Cryptography.ProtectedData.dll,System.Configuration.ConfigurationManager.dll,System.Runtime.CompilerServices.Unsafe.dll,System.IO.FileSystem.AccessControl.dll,System.Buffers.dll,System.Text.Encodings.Web.dll,System.CodeDom.dll</RuntimeDllsExcludeList>
172172
</PropertyGroup>
173-
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;Get-ChildItem -Path $(RepoArtifacts)/$(Configuration) -Recurse -Include $(RuntimeDllsIncludeList) -Exclude $(RuntimeDllsExcludeList) | Remove-Item -Recurse -Force&quot;" />
173+
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;Get-ChildItem -Path $(RepoArtifacts)/$(Configuration) -Recurse -Include $(RuntimeDllsIncludeList) -Exclude $(RuntimeDllsExcludeList) | Where-Object {$_.FullName -notlike '*PreloadAssemblies*' -and $_.FullName -notlike '*NetCoreAssemblies*'} | Remove-Item -Force&quot;" />
174174
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;Get-ChildItem -Path $(RepoArtifacts)/$(Configuration) -Recurse -Include 'runtimes' | Remove-Item -Recurse -Force&quot;" Condition="'$(CodeSign)' == 'true'" />
175175

176176
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;. $(RepoTools)/UpdateModules.ps1 -BuildConfig $(Configuration) -Scope $(Scope)&quot;" />

src/Accounts/Accounts/Az.Accounts.psd1

Lines changed: 8 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: 4/30/2019
6+
# Generated on: 6/11/2019
77
#
88

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

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

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core', 'Desktop'
@@ -64,6 +64,7 @@ RequiredAssemblies = '.\Microsoft.Azure.PowerShell.Authentication.Abstractions.d
6464
'.\Microsoft.Azure.PowerShell.Clients.Graph.Rbac.dll',
6565
'.\Microsoft.Azure.PowerShell.Clients.Monitor.dll',
6666
'.\Microsoft.Azure.PowerShell.Clients.Network.dll',
67+
'.\Microsoft.Azure.PowerShell.Clients.PolicyInsights.dll',
6768
'.\Microsoft.Azure.PowerShell.Clients.ResourceManager.dll',
6869
'.\Microsoft.Azure.PowerShell.Common.dll',
6970
'.\Microsoft.Azure.PowerShell.Storage.dll',
@@ -142,7 +143,11 @@ PrivateData = @{
142143
# IconUri = ''
143144

144145
# ReleaseNotes of this module
145-
ReleaseNotes = '* Update Authentication Library to fix ADFS issues with username/password auth'
146+
ReleaseNotes = '* Fix bug with incorrect URL being used in some cases for Functions calls
147+
- More information here: https://github.com/Azure/azure-powershell/issues/8983
148+
* Fix Issue with aliases from AzureRM to Az cmdlets
149+
- Set-AzureRmVMBootDiagnostics -> Set-AzVMBootDiagnostic
150+
- Export-AzureRMLogAnalyticThrottledRequests -> Export-AzLogAnalyticThrottledRequest'
146151

147152
# Prerelease string of this module
148153
# Prerelease = ''

src/Accounts/Accounts/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Update common packages to include new PolicyInsights library
22+
* Fix bug where incorrect endpoint was being used in some cases for data plane cmdlets in Windows PowerShell
23+
24+
## Version 1.5.3
2125
* Fix bug with incorrect URL being used in some cases for Functions calls
2226
- More information here: https://github.com/Azure/azure-powershell/issues/8983
2327
* Fix Issue with aliases from AzureRM to Az cmdlets

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

src/Accounts/Authenticators/InteractiveUserAuthenticator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public async override Task<IAccessToken> Authenticate(IAzureAccount account, IAz
3030
{
3131
var auth = new AuthenticationContext(AuthenticationHelpers.GetAuthority(environment, tenant), environment?.OnPremise ?? true, tokenCache as TokenCache ?? TokenCache.DefaultShared);
3232
var response = await auth.AcquireTokenAsync(
33-
environment.ActiveDirectoryServiceEndpointResourceId,
33+
environment.GetEndpoint(resourceId),
3434
AuthenticationHelpers.PowerShellClientId,
3535
new Uri(AuthenticationHelpers.PowerShellRedirectUri),
3636
new PlatformParameters(AuthenticationHelpers.GetPromptBehavior(promptBehavior), new ConsoleParentWindow()),

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.5.2'; })
54+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.5.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.5.2'; })
56+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.5.3'; })
5757

5858
# Assemblies that must be loaded prior to importing this module
5959
RequiredAssemblies = '.\YamlDotNet.dll', '.\AutoMapper.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.5.2'; })
56+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.5.3'; })
5757

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

src/ApiManagement/ApiManagement.ServiceManagement.Test/ScenarioTests/ApiManagementTests.ps1

Lines changed: 82 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,58 @@ function SubscriptionOldModel-CrudTest {
11301130
Assert-AreEqual $patchedSk $sub.SecondaryKey
11311131
Assert-AreEqual $newSubscriptionState $sub.State
11321132
Assert-AreEqual $patchedExpirationDate $sub.ExpirationDate
1133+
1134+
# Get subscriptions by product id
1135+
$productSubs = Get-AzApiManagementSubscription -Context $context -ProductId $subs[0].ProductId
1136+
1137+
Assert-AreEqual 2 $productSubs.Count
1138+
for ($i = 0; $i -lt $productSubs.Count; $i++)
1139+
{
1140+
Assert-NotNull $productSubs[$i]
1141+
Assert-NotNull $productSubs[$i].SubscriptionId
1142+
Assert-NotNull $productSubs[$i].Scope
1143+
Assert-NotNull $productSubs[$i].State
1144+
Assert-NotNull $productSubs[$i].CreatedDate
1145+
Assert-NotNull $productSubs[$i].PrimaryKey
1146+
Assert-NotNull $productSubs[$i].SecondaryKey
1147+
1148+
Assert-AreEqual $subs[0].ProductId $productSubs[$i].ProductId
1149+
}
1150+
1151+
# Get subscriptions by user id
1152+
$userSubs = Get-AzApiManagementSubscription -Context $context -UserId $subs[0].UserId
1153+
1154+
Assert-AreEqual 3 $userSubs.Count
1155+
for ($i = 0; $i -lt $userSubs.Count; $i++)
1156+
{
1157+
Assert-NotNull $userSubs[$i]
1158+
Assert-NotNull $userSubs[$i].SubscriptionId
1159+
Assert-NotNull $userSubs[$i].Scope
1160+
Assert-NotNull $userSubs[$i].State
1161+
Assert-NotNull $userSubs[$i].CreatedDate
1162+
Assert-NotNull $userSubs[$i].PrimaryKey
1163+
Assert-NotNull $userSubs[$i].SecondaryKey
1164+
1165+
Assert-AreEqual $subs[0].UserId $userSubs[$i].UserId
1166+
}
1167+
1168+
# get Subscriptions by User and Product
1169+
$productUserSubs = Get-AzApiManagementSubscription -Context $context -UserId $subs[0].UserId -ProductId $subs[0].ProductId
1170+
1171+
Assert-AreEqual 2 $productUserSubs.Count
1172+
for ($i = 0; $i -lt $productUserSubs.Count; $i++)
1173+
{
1174+
Assert-NotNull $productUserSubs[$i]
1175+
Assert-NotNull $productUserSubs[$i].SubscriptionId
1176+
Assert-NotNull $productUserSubs[$i].Scope
1177+
Assert-NotNull $productUserSubs[$i].State
1178+
Assert-NotNull $productUserSubs[$i].CreatedDate
1179+
Assert-NotNull $productUserSubs[$i].PrimaryKey
1180+
Assert-NotNull $productUserSubs[$i].SecondaryKey
1181+
1182+
Assert-AreEqual $subs[0].UserId $productUserSubs[$i].UserId
1183+
Assert-AreEqual $subs[0].ProductId $productUserSubs[$i].ProductId
1184+
}
11331185
}
11341186
finally {
11351187
# remove created subscription
@@ -1221,6 +1273,18 @@ function SubscriptionNewModel-CrudTest {
12211273
Assert-AreEqual 1 $sub.UserId
12221274
Assert-NotNull $sub.OwnerId
12231275

1276+
# get subscription by apiId
1277+
$sub = Get-AzApiManagementSubscription -Context $context -Scope $allApisScope
1278+
1279+
Assert-AreEqual $newSubscriptionId $sub.SubscriptionId
1280+
Assert-AreEqual $patchedName $sub.Name
1281+
Assert-AreEqual $patchedPk $sub.PrimaryKey
1282+
Assert-AreEqual $patchedSk $sub.SecondaryKey
1283+
Assert-AreEqual $newSubscriptionState $sub.State
1284+
Assert-AreEqual $patchedExpirationDate $sub.ExpirationDate
1285+
Assert-NotNull $sub.UserId
1286+
Assert-AreEqual 1 $sub.UserId
1287+
Assert-NotNull $sub.OwnerId
12241288
}
12251289
finally {
12261290
# remove created subscription
@@ -2886,7 +2950,8 @@ function ApiVersionSet-CrudTest {
28862950
# there should be no API Version sets initially
28872951
Assert-AreEqual 0 $apiversionsets.Count
28882952

2889-
# create new api
2953+
# create new api and apiVersionSet
2954+
$swaggerApiId1 = getAssetName
28902955
$newApiVersionSetId = getAssetName
28912956
try {
28922957
$newVersionSetName = getAssetName
@@ -2921,8 +2986,24 @@ function ApiVersionSet-CrudTest {
29212986
Assert-AreEqual $description $newApiVersionSet.Description
29222987
Assert-AreEqual Header $newApiVersionSet.VersioningScheme
29232988
Assert-AreEqual $versionHeaderName $newApiVersionSet.VersionHeaderName
2989+
2990+
# now import an api into the ApiVersionSet
2991+
$swaggerPath = Join-Path (Join-Path "$TestOutputRoot" "Resources") "SwaggerPetStoreV2.json"
2992+
$path1 = "swaggerapifromFile"
2993+
$apiVersion = "2"
2994+
2995+
$api = Import-AzApiManagementApi -Context $context -ApiId $swaggerApiId1 -SpecificationPath $swaggerPath -SpecificationFormat Swagger -Path $path1 -ApiVersion $apiVersion -ApiVersionSetId $newApiVersionSetId
2996+
Assert-NotNull $api
2997+
Assert-AreEqual $apiVersion $api.ApiVersion
2998+
Assert-AreEqual $swaggerApiId1 $api.ApiId
2999+
Assert-AreEqual $path1 $api.Path
3000+
Assert-AreEqual $newApiVersionSet.Id $api.ApiVersionSetId
29243001
}
29253002
finally {
3003+
# remove created api
3004+
$removed = Remove-AzApiManagementApi -Context $context -ApiId $swaggerApiId1 -PassThru
3005+
Assert-True { $removed }
3006+
29263007
# remove created api version set
29273008
$removed = Remove-AzApiManagementApiVersionSet -Context $context -ApiVersionSetId $newApiVersionSetId -PassThru
29283009
Assert-True { $removed }

0 commit comments

Comments
 (0)