Skip to content

Commit 67fab66

Browse files
Powershell changes for get effective route and NSG
1 parent a1deb02 commit 67fab66

9 files changed

+639
-64
lines changed

src/ResourceManager/Network/Commands.Network/Commands.Network.csproj

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Authorization.2.0.0\lib\net40\Microsoft.Azure.Management.Authorization.dll</HintPath>
7474
</Reference>
7575
<Reference Include="Microsoft.Azure.Management.Network, Version=5.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
76-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Network.5.0.1-preview\lib\net45\Microsoft.Azure.Management.Network.dll</HintPath>
77-
<Private>True</Private>
76+
<SpecificVersion>False</SpecificVersion>
77+
<HintPath>..\..\..\..\..\azure-sdk-for-net\src\ResourceManagement\Network\Microsoft.Azure.Management.Network\bin\Debug\net45\Microsoft.Azure.Management.Network.dll</HintPath>
7878
</Reference>
7979
<Reference Include="Microsoft.Data.Edm">
8080
<SpecificVersion>False</SpecificVersion>
@@ -235,7 +235,7 @@
235235
<Compile Include="ApplicationGateway\UrlPathMap\RemoveAzureApplicationGatewayUrlPathMapConfigCommand.cs" />
236236
<Compile Include="ApplicationGateway\UrlPathMap\SetAzureApplicationGatewayUrlPathMapConfigCommand.cs" />
237237
<Compile Include="Common\NetworkBaseCmdlet.cs" />
238-
<Compile Include="Common\NetworkClient.cs" />
238+
<Compile Include="Common\NetworkClient.cs" />
239239
<Compile Include="Common\NetworkCloudException.cs" />
240240
<Compile Include="Common\NetworkResourceManagerProfile.cs" />
241241
<Compile Include="ExpressRouteCircuit\Authorization\AddAzureExpressRouteCircuitAuthorizationCommand.cs" />
@@ -280,15 +280,17 @@
280280
<Compile Include="Models\PSApplicationGatewaySku.cs" />
281281
<Compile Include="Models\PSApplicationGatewaySslCertificate.cs" />
282282
<Compile Include="Models\PSApplicationGatewayUrlPathMap.cs" />
283+
<Compile Include="Models\PSEffectiveNetworkSecurityGroupAssociation.cs" />
284+
<Compile Include="Models\PSEffectiveSecurityRule.cs" />
283285
<Compile Include="Models\PSInboundRule.cs" />
284286
<Compile Include="Models\PSInboundNatPool.cs" />
285287
<Compile Include="Models\PSExpressRouteServiveProvider.cs" />
286288
<Compile Include="Models\PSExpressRouteServiceProviderBandwidthsOffered.cs" />
287289
<Compile Include="Models\PSExpressRouteServiceProvider.cs" />
288290
<Compile Include="Models\PSIPConfiguration.cs" />
289-
290291
<Compile Include="Models\PSNetworkLongRunningOperation.cs" />
291-
292+
<Compile Include="Models\PSEffectiveNetworkSecurityGroup.cs" />
293+
<Compile Include="Models\PSEffectiveRoute.cs" />
292294
<Compile Include="Models\PSServiceProviderProperties.cs" />
293295
<Compile Include="Models\PSPeering.cs" />
294296
<Compile Include="Models\PSPeeringConfig.cs" />
@@ -301,6 +303,8 @@
301303
<Compile Include="Models\PSExpressRouteCircuitRoutesTableSummary.cs" />
302304
<Compile Include="Models\PSExpressRouteCircuitStats.cs" />
303305
<Compile Include="Models\PSVirtualNetworkPeering.cs" />
306+
<Compile Include="NetworkInterface\EffectiveResources\GetAzureEffectiveRouteTableCommand.cs" />
307+
<Compile Include="NetworkInterface\EffectiveResources\GetAzureEffectiveNetworkSecurityGroupCommand.cs" />
304308
<Compile Include="NetworkInterface\IpConfiguration\AddAzureNetworkInterfaceIpConfigCommand.cs" />
305309
<Compile Include="NetworkInterface\IpConfiguration\AzureNetworkInterfaceIpConfigBase.cs" />
306310
<Compile Include="NetworkInterface\IpConfiguration\GetAzureNetworkInterfaceIpConfigCommand.cs" />
@@ -528,4 +532,4 @@
528532
</Content>
529533
</ItemGroup>
530534
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
531-
</Project>
535+
</Project>

src/ResourceManager/Network/Commands.Network/Common/NetworkResourceManagerProfile.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,24 @@ protected override void Configure()
193193
// MNM to CNM
194194
Mapper.CreateMap<MNM.Route, CNM.PSRoute>();
195195

196+
// EffectiveRouteTable
197+
// CNM to MNM
198+
Mapper.CreateMap<CNM.PSEffectiveRoute, MNM.EffectiveRoute>();
199+
200+
// MNM to CNM
201+
Mapper.CreateMap<MNM.EffectiveRoute, CNM.PSEffectiveRoute>();
202+
203+
// EffectiveNetworkSecurityGroup
204+
// CNM to MNM
205+
Mapper.CreateMap<CNM.PSEffectiveNetworkSecurityGroup, MNM.EffectiveNetworkSecurityGroup>();
206+
Mapper.CreateMap<CNM.PSEffectiveNetworkSecurityGroupAssociation, MNM.EffectiveNetworkSecurityGroupAssociation>();
207+
Mapper.CreateMap<CNM.PSEffectiveSecurityRule, MNM.EffectiveNetworkSecurityRule>();
208+
209+
// MNM to CNM
210+
Mapper.CreateMap<MNM.EffectiveNetworkSecurityGroup, CNM.PSEffectiveNetworkSecurityGroup>();
211+
Mapper.CreateMap<MNM.EffectiveNetworkSecurityGroupAssociation, CNM.PSEffectiveNetworkSecurityGroupAssociation>();
212+
Mapper.CreateMap<MNM.EffectiveNetworkSecurityRule, CNM.PSEffectiveSecurityRule>();
213+
196214
// ExpressRouteCircuit
197215
// CNM to MNM
198216
Mapper.CreateMap<CNM.PSExpressRouteCircuit, MNM.ExpressRouteCircuit>();
@@ -211,6 +229,7 @@ protected override void Configure()
211229
Mapper.CreateMap<CNM.PSExpressRouteCircuitArpTable, MNM.ExpressRouteCircuitArpTable>();
212230
Mapper.CreateMap<CNM.PSExpressRouteCircuitRoutesTable, MNM.ExpressRouteCircuitRoutesTable>();
213231
Mapper.CreateMap<CNM.PSExpressRouteCircuitRoutesTableSummary, MNM.ExpressRouteCircuitRoutesTableSummary>();
232+
214233
// ExpressRouteCircuitPeering
215234
// CNM to MNM
216235
Mapper.CreateMap<CNM.PSPeering, MNM.ExpressRouteCircuitPeering>();

0 commit comments

Comments
 (0)