Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cmdlet for IpAllocation resource, and update Vnet/Subnet cmdlet f… #11585

Merged
merged 16 commits into from
Apr 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/CosmosDB/CosmosDB.Test/CosmosDB.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<Import Project="$(MSBuildThisFileDirectory)..\..\Az.Test.props" />
<ItemGroup>
<PackageReference Include="Microsoft.Azure.Management.CosmosDB" Version="1.1.0" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.19.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.20.0-preview" />
</ItemGroup>
</Project>

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Monitor/Monitor.Test/Monitor.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Azure.Management.Monitor" Version="0.25.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.ApplicationInsights" Version="0.2.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.19.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.20.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.OperationalInsights" Version="0.19.0-preview" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1003,8 +1003,8 @@
"StatusCode": 200
},
{
"RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/Microsoft.Network/virtualNetworks/ps8953?api-version=2019-12-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL3BzNjA1NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3BzODk1Mz9hcGktdmVyc2lvbj0yMDE5LTEyLTAx",
"RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/Microsoft.Network/virtualNetworks/ps8953?api-version=2020-03-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL3BzNjA1NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3BzODk1Mz9hcGktdmVyc2lvbj0yMDIwLTAzLTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
Expand Down Expand Up @@ -1063,8 +1063,8 @@
"StatusCode": 404
},
{
"RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/Microsoft.Network/virtualNetworks/ps8953?api-version=2019-12-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL3BzNjA1NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3BzODk1Mz9hcGktdmVyc2lvbj0yMDE5LTEyLTAx",
"RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/Microsoft.Network/virtualNetworks/ps8953?api-version=2020-03-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL3BzNjA1NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3BzODk1Mz9hcGktdmVyc2lvbj0yMDIwLTAzLTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
Expand Down Expand Up @@ -1127,8 +1127,8 @@
"StatusCode": 200
},
{
"RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/Microsoft.Network/virtualNetworks/ps8953?api-version=2019-12-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL3BzNjA1NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3BzODk1Mz9hcGktdmVyc2lvbj0yMDE5LTEyLTAx",
"RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/Microsoft.Network/virtualNetworks/ps8953?api-version=2020-03-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL3BzNjA1NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3BzODk1Mz9hcGktdmVyc2lvbj0yMDIwLTAzLTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
Expand Down Expand Up @@ -1197,8 +1197,8 @@
"StatusCode": 200
},
{
"RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/Microsoft.Network/virtualNetworks/ps8953?api-version=2019-12-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL3BzNjA1NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3BzODk1Mz9hcGktdmVyc2lvbj0yMDE5LTEyLTAx",
"RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/Microsoft.Network/virtualNetworks/ps8953?api-version=2020-03-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL3BzNjA1NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3BzODk1Mz9hcGktdmVyc2lvbj0yMDIwLTAzLTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
Expand Down Expand Up @@ -1267,8 +1267,8 @@
"StatusCode": 200
},
{
"RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/Microsoft.Network/virtualNetworks/ps8953?api-version=2019-12-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL3BzNjA1NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3BzODk1Mz9hcGktdmVyc2lvbj0yMDE5LTEyLTAx",
"RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/Microsoft.Network/virtualNetworks/ps8953?api-version=2020-03-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL3BzNjA1NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3BzODk1Mz9hcGktdmVyc2lvbj0yMDIwLTAzLTAx",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"properties\": {\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"11.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"properties\": {\r\n \"addressPrefix\": \"11.0.1.0/24\",\r\n \"addressPrefixes\": [],\r\n \"serviceEndpoints\": [],\r\n \"serviceEndpointPolicies\": [],\r\n \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"name\": \"ps1552\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n },\r\n \"location\": \"eastus2euap\"\r\n}",
"RequestHeaders": {
Expand Down Expand Up @@ -1410,8 +1410,8 @@
"StatusCode": 200
},
{
"RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/Microsoft.Network/privateEndpoints/ps5125?api-version=2019-12-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL3BzNjA1NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHJpdmF0ZUVuZHBvaW50cy9wczUxMjU/YXBpLXZlcnNpb249MjAxOS0xMi0wMQ==",
"RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/Microsoft.Network/privateEndpoints/ps5125?api-version=2020-03-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL3BzNjA1NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHJpdmF0ZUVuZHBvaW50cy9wczUxMjU/YXBpLXZlcnNpb249MjAyMC0wMy0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
Expand Down Expand Up @@ -1470,8 +1470,8 @@
"StatusCode": 404
},
{
"RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/Microsoft.Network/privateEndpoints/ps5125?api-version=2019-12-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL3BzNjA1NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHJpdmF0ZUVuZHBvaW50cy9wczUxMjU/YXBpLXZlcnNpb249MjAxOS0xMi0wMQ==",
"RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/Microsoft.Network/privateEndpoints/ps5125?api-version=2020-03-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL3BzNjA1NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHJpdmF0ZUVuZHBvaW50cy9wczUxMjU/YXBpLXZlcnNpb249MjAyMC0wMy0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
Expand Down Expand Up @@ -1534,8 +1534,8 @@
"StatusCode": 200
},
{
"RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/Microsoft.Network/privateEndpoints/ps5125?api-version=2019-12-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL3BzNjA1NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHJpdmF0ZUVuZHBvaW50cy9wczUxMjU/YXBpLXZlcnNpb249MjAxOS0xMi0wMQ==",
"RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/Microsoft.Network/privateEndpoints/ps5125?api-version=2020-03-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL3BzNjA1NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHJpdmF0ZUVuZHBvaW50cy9wczUxMjU/YXBpLXZlcnNpb249MjAyMC0wMy0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
Expand Down Expand Up @@ -1604,8 +1604,8 @@
"StatusCode": 200
},
{
"RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/Microsoft.Network/privateEndpoints/ps5125?api-version=2019-12-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL3BzNjA1NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHJpdmF0ZUVuZHBvaW50cy9wczUxMjU/YXBpLXZlcnNpb249MjAxOS0xMi0wMQ==",
"RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/Microsoft.Network/privateEndpoints/ps5125?api-version=2020-03-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL3BzNjA1NC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHJpdmF0ZUVuZHBvaW50cy9wczUxMjU/YXBpLXZlcnNpb249MjAyMC0wMy0wMQ==",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"properties\": {\r\n \"subnet\": {\r\n \"properties\": {\r\n \"addressPrefix\": \"11.0.1.0/24\",\r\n \"addressPrefixes\": [],\r\n \"serviceEndpoints\": [],\r\n \"serviceEndpointPolicies\": [],\r\n \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"name\": \"ps1552\",\r\n \"id\": \"/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/Microsoft.Network/virtualNetworks/ps8953/subnets/ps1552\"\r\n },\r\n \"privateLinkServiceConnections\": [],\r\n \"manualPrivateLinkServiceConnections\": [\r\n {\r\n \"properties\": {\r\n \"privateLinkServiceId\": \"/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/ps6054/providers/microsoft.insights/privatelinkscopes/ps5901\",\r\n \"groupIds\": [\r\n \"azuremonitor\"\r\n ]\r\n },\r\n \"name\": \"ps5042\"\r\n }\r\n ]\r\n },\r\n \"location\": \"eastus2euap\"\r\n}",
"RequestHeaders": {
Expand Down
3 changes: 3 additions & 0 deletions src/Network/Network.Test/NrpTeamAlias.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,8 @@ class NrpTeamAlias

// Azure NRP bastion dev team
public const string bastion = "bastion";

// Azure Network IPAM dev team
public const string ipam = "ipamdev";
}
}
36 changes: 36 additions & 0 deletions src/Network/Network.Test/ScenarioTests/IpAllocationTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.Azure.Commands.Network.Test.ScenarioTests;
using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Xunit;

namespace Commands.Network.Test.ScenarioTests
{
public class IpAllocationTests : NetworkTestRunner
{
public IpAllocationTests(Xunit.Abstractions.ITestOutputHelper output)
: base(output)
{
}

[Fact(Skip = "IpAllocation need manually onboard.")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, NrpTeamAlias.ipam)]
public void TestIpAllocationBasicOperations()
{
TestRunner.RunTestScript(string.Format("Test-IpAllocation"));
}
}
}
57 changes: 57 additions & 0 deletions src/Network/Network.Test/ScenarioTests/IpAllocationTests.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------

function Check-CmdletReturnType
{
param($cmdletName, $cmdletReturn)

$cmdletData = Get-Command $cmdletName
Assert-NotNull $cmdletData
[array]$cmdletReturnTypes = $cmdletData.OutputType.Name | Foreach-Object { return ($_ -replace "Microsoft.Azure.Commands.Network.Models.","") }
[array]$cmdletReturnTypes = $cmdletReturnTypes | Foreach-Object { return ($_ -replace "System.","") }
$realReturnType = $cmdletReturn.GetType().Name -replace "Microsoft.Azure.Commands.Network.Models.",""
return $cmdletReturnTypes -contains $realReturnType
}

<#
.SYNOPSIS
Test creating new IpGroups
#>
function Test-IpAllocation
{
# Setup
$rgname = Get-ResourceGroupName
$rglocation = Get-ProviderLocation ResourceManagement "westus"
$location = Get-ProviderLocation ResourceManagement "westus"
$IpGroupsName = Get-ResourceName

try
{
# IpAllocation resource need manually onboard by subscription
$subId = Get-SubscriptionIdFromResourceGroup $rgname;
$vnetId = '/subscriptions/' + $subId + '/resourceGroups/' + $rgname + '/providers/Microsoft.Network/virtualNetworks/HypernetVnet1';

$ipAllocationName = 'testIpAllocation'
New-AzIpAllocation -ResourceName $ipAllocationName -ResourceGroupName $rgname -Location $rglocation -IpAllocationType Hypernet -PrefixLength 29 -PrefixType IPV4 -IpAllocationTag @{"VNetID"=$vnetId;"SubnetName"="HypernetSubnet1"}

Set-AzIpAllocation -Name $ipAllocationName -ResourceGroupName $rgname -Tag @{'testtag'='tetsvalue'}

Remove-AzIpAllocation -Name $ipAllocationName -ResourceGroupName $rgname
}
finally
{
# Cleanup
Clean-ResourceGroup $rgname
}
}
8 changes: 6 additions & 2 deletions src/Network/Network/Az.Network.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,12 @@ CmdletsToExport = 'Add-AzApplicationGatewayAuthenticationCertificate',
'Get-AzVirtualRouter', 'Add-AzVirtualRouterPeer',
'Update-AzVirtualRouterPeer', 'Remove-AzVirtualRouterPeer',
'Get-AzVirtualRouterPeer', 'New-AzIpGroup', 'Remove-AzIpGroup',
'Get-AzIpGroup', 'Set-AzIpGroup',
'New-AzIpConfigurationBgpPeeringAddressObject'
'Get-AzIpGroup', 'Set-AzIpGroup',
'New-AzIpConfigurationBgpPeeringAddressObject',
'New-AzIpAllocation',
'Get-AzIpAllocation',
'Remove-AzIpAllocation',
'Set-AzIpAllocation'

# Variables to export from this module
# VariablesToExport = @()
Expand Down
19 changes: 19 additions & 0 deletions src/Network/Network/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,25 @@
* Updated cmdlets to enable setting of DPD Timeout on Virtual Network Gateway Connections.
- New-AzVirtualNetworkGatewayConnection
- Set-AzVirtualNetworkGatewayConnection
* Added resource type IpAllocation
* Added properties to Subnet
- Added property 'IpAllocations' as type of PSResourceId to PSIpAllocation
* Added properties to Virtual Network
- Added property 'IpAllocations' as type of PSResourceId to PSIpAllocation
* Added support for IpAllocation resource
- New cmdlet added:
- Get-AzIpAllocation
- New-AzIpAllocation
- Remove-AzIpAllocation
- Get-AzIpAllocation
- Updated `New-AzVirtualNetwork`
- Added another optional parameter IpAllocations to specify the IpAllocation
- Updated `New-AzVirtualNetworkSubnetConfig`
- Added another optional parameter IpAllocations to specify the IpAllocation
- Updated `Set-AzVirtualNetworkSubnetConfig`
- Added another optional parameter IpAllocations to specify the IpAllocation
- Updated `Add-AzVirtualNetworkSubnetConfig`
- Added another optional parameter IpAllocations to specify the IpAllocation

## Version 2.4.0
* Updated cmdlets to allow cross-tenant VirtualHubVnetConnections
Expand Down
4 changes: 4 additions & 0 deletions src/Network/Network/Common/NetworkResourceManagerProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1323,6 +1323,10 @@ private static void Initialize()
// IpGroup
cfg.CreateMap<CNM.PSIpGroup, MNM.IpGroup>();
cfg.CreateMap<MNM.IpGroup, CNM.PSIpGroup>();

// IpAllocation
cfg.CreateMap<CNM.PSIpAllocation, MNM.IpAllocation>();
cfg.CreateMap<MNM.IpAllocation, CNM.PSIpAllocation>();
});

_mapper = config.CreateMapper();
Expand Down
Loading