Skip to content

Commit df32a96

Browse files
author
Rupali Vohra
committed
Adding subnet delegation cmdlets
Changing to published SDK Adding help documentation for CRUD ops on delegations
1 parent 52f4cb1 commit df32a96

25 files changed

+1005
-50
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
//
2+
// Copyright (c) Microsoft and contributors. All rights reserved.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
//
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
17+
using System.Collections.Generic;
18+
using System.Management.Automation;
19+
using Microsoft.Azure.Commands.Network.Models;
20+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
21+
using Microsoft.Azure.Management.Network;
22+
using CNM = Microsoft.Azure.Commands.Network.Models;
23+
24+
namespace Microsoft.Azure.Commands.Network.Automation
25+
{
26+
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AvailableServiceDelegation"), OutputType(typeof(PSAvailableDelegation))]
27+
public partial class GetAzureAvailableServiceDelegationsCommand : NetworkBaseCmdlet
28+
{
29+
[Parameter(
30+
Mandatory = true,
31+
HelpMessage = "The location.",
32+
ValueFromPipelineByPropertyName = true)]
33+
[LocationCompleter("Microsoft.Network/locations/availableDelegations")]
34+
[ValidateNotNullOrEmpty]
35+
public string Location { get; set; }
36+
37+
public override void Execute()
38+
{
39+
base.Execute();
40+
41+
var availableServiceDelegationsList = this.NetworkClient.NetworkManagementClient.AvailableDelegations.List(Location);
42+
List<PSAvailableDelegation> psAvailableDelegations = new List<PSAvailableDelegation>();
43+
foreach (var availableServiceDelegations in availableServiceDelegationsList)
44+
{
45+
psAvailableDelegations.Add(NetworkResourceManagerProfile.Mapper.Map<CNM.PSAvailableDelegation>(availableServiceDelegations));
46+
}
47+
48+
WriteObject(psAvailableDelegations, true);
49+
}
50+
}
51+
}

src/ResourceManager/Network/Commands.Network/Az.Network.psd1

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -315,29 +315,40 @@ CmdletsToExport = 'Add-AzApplicationGatewayAuthenticationCertificate',
315315
'Add-AzNetworkSecurityRuleConfig',
316316
'New-AzNetworkSecurityGroup',
317317
'Remove-AzNetworkSecurityGroup',
318-
'Set-AzNetworkSecurityGroup', 'Test-AzDnsAvailability',
318+
'Set-AzNetworkSecurityGroup',
319+
'Test-AzDnsAvailability',
319320
'Add-AzVirtualNetworkPeering',
320321
'Get-AzVirtualNetworkPeering',
321322
'Remove-AzVirtualNetworkPeering',
322-
'Set-AzVirtualNetworkPeering', 'Remove-AzVirtualNetwork',
323+
'Set-AzVirtualNetworkPeering',
324+
'Remove-AzVirtualNetwork',
323325
'Set-AzVirtualNetwork',
324326
'Remove-AzVirtualNetworkSubnetConfig',
325327
'Set-AzVirtualNetworkSubnetConfig',
326328
'Get-AzVirtualNetworkSubnetConfig',
327329
'Add-AzVirtualNetworkSubnetConfig',
328-
'New-AzVirtualNetworkSubnetConfig', 'Get-AzVirtualNetwork',
330+
'New-AzVirtualNetworkSubnetConfig',
331+
'New-AzDelegation',
332+
'Add-AzDelegation',
333+
'Get-AzDelegation',
334+
'Remove-AzDelegation',
335+
'Get-AzAvailableServiceDelegation',
336+
'Get-AzVirtualNetwork',
329337
'New-AzVirtualNetwork',
330338
'Get-AzVirtualNetworkGatewayBgpPeerStatus',
331339
'Get-AzVirtualNetworkGatewayAdvertisedRoute',
332340
'Get-AzVirtualNetworkGatewayLearnedRoute',
333-
'Get-AzNetworkUsage', 'Get-AzVirtualNetworkUsageList',
341+
'Get-AzNetworkUsage',
342+
'Get-AzVirtualNetworkUsageList',
334343
'Get-AzVirtualNetworkAvailableEndpointService',
335344
'Get-AzVirtualNetworkGatewaySupportedVpnDevice',
336345
'Get-AzVirtualNetworkGatewayConnectionVpnDeviceConfigScript',
337346
'New-AzApplicationSecurityGroup',
338347
'Remove-AzApplicationSecurityGroup',
339-
'Get-AzApplicationSecurityGroup', 'New-AzPublicIpTag',
340-
'New-AzDdosProtectionPlan', 'Get-AzDdosProtectionPlan',
348+
'Get-AzApplicationSecurityGroup',
349+
'New-AzPublicIpTag',
350+
'New-AzDdosProtectionPlan',
351+
'Get-AzDdosProtectionPlan',
341352
'Remove-AzDdosProtectionPlan',
342353
'New-AzNetworkWatcherProtocolConfiguration',
343354
'Add-AzExpressRouteCircuitConnectionConfig',

src/ResourceManager/Network/Commands.Network/AzureRM.Network.psd1

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,19 +326,27 @@ CmdletsToExport = 'Add-AzureRmApplicationGatewayAuthenticationCertificate',
326326
'Set-AzureRmVirtualNetworkSubnetConfig',
327327
'Get-AzureRmVirtualNetworkSubnetConfig',
328328
'Add-AzureRmVirtualNetworkSubnetConfig',
329-
'New-AzureRmVirtualNetworkSubnetConfig',
329+
'New-AzureRmVirtualNetworkSubnetConfig',
330+
'New-AzureRmDelegation',
331+
'Add-AzureRmDelegation',
332+
'Get-AzureRmDelegation',
333+
'Remove-AzureRmDelegation',
334+
'Get-AzureRmAvailableServiceDelegation',
330335
'Get-AzureRmVirtualNetwork', 'New-AzureRmVirtualNetwork',
331336
'Get-AzureRmVirtualNetworkGatewayBgpPeerStatus',
332337
'Get-AzureRmVirtualNetworkGatewayAdvertisedRoute',
333338
'Get-AzureRmVirtualNetworkGatewayLearnedRoute',
334-
'Get-AzureRmNetworkUsage', 'Get-AzureRmVirtualNetworkUsageList',
339+
'Get-AzureRmNetworkUsage',
340+
'Get-AzureRmVirtualNetworkUsageList',
335341
'Get-AzureRmVirtualNetworkAvailableEndpointService',
336342
'Get-AzureRmVirtualNetworkGatewaySupportedVpnDevice',
337343
'Get-AzureRmVirtualNetworkGatewayConnectionVpnDeviceConfigScript',
338344
'New-AzureRmApplicationSecurityGroup',
339345
'Remove-AzureRmApplicationSecurityGroup',
340-
'Get-AzureRmApplicationSecurityGroup', 'New-AzureRmPublicIpTag',
341-
'New-AzureRmDdosProtectionPlan', 'Get-AzureRmDdosProtectionPlan',
346+
'Get-AzureRmApplicationSecurityGroup',
347+
'New-AzureRmPublicIpTag',
348+
'New-AzureRmDdosProtectionPlan',
349+
'Get-AzureRmDdosProtectionPlan',
342350
'Remove-AzureRmDdosProtectionPlan',
343351
'New-AzureRMNetworkWatcherProtocolConfiguration',
344352
'Add-AzureRmExpressRouteCircuitConnectionConfig',

src/ResourceManager/Network/Commands.Network/ChangeLog.md

Lines changed: 64 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -20,49 +20,75 @@
2020

2121
## Current Release
2222
* Replaced LoadBalancer cmdlets with generated code
23-
- LoadBalancerInboundNatPoolConfig: added parameters IdleTimeoutInMinutes, EnableFloatingIp and EnableTcpReset
24-
- LoadBalancerInboundNatRuleConfig: added parameter EnableTcpReset
25-
- LoadBalancerRuleConfig: added parameter EnableTcpReset
26-
- LoadBalancerProbeConfig: added support for value "Https" for parameter Protocol
23+
- LoadBalancerInboundNatPoolConfig: added parameters IdleTimeoutInMinutes, EnableFloatingIp and EnableTcpReset
24+
- LoadBalancerInboundNatRuleConfig: added parameter EnableTcpReset
25+
- LoadBalancerRuleConfig: added parameter EnableTcpReset
26+
- LoadBalancerProbeConfig: added support for value "Https" for parameter Protocol
2727
* Added new commands for new LoadBalancer's subresource OutboundRule
28-
- Add-AzureRmLoadBalancerOutboundRuleConfig
29-
- Get-AzureRmLoadBalancerOutboundRuleConfig
30-
- New-AzureRmLoadBalancerOutboundRuleConfig
31-
- Set-AzureRmLoadBalancerOutboundRuleConfig
32-
- Remove-AzureRmLoadBalancerOutboundRuleConfig
28+
- Add-AzureRmLoadBalancerOutboundRuleConfig
29+
- Get-AzureRmLoadBalancerOutboundRuleConfig
30+
- New-AzureRmLoadBalancerOutboundRuleConfig
31+
- Set-AzureRmLoadBalancerOutboundRuleConfig
32+
- Remove-AzureRmLoadBalancerOutboundRuleConfig
3333
* Added new HostedWorkloads property for PSNetworkInterface
34-
* Updated cmdlet New-AzureRmVirtualNetworkSubnetConfig, Set-AzureRmVirtualNetworkSubnetConfig, Add-AzureRmVirtualNetworkSubnetConfig, Get-AzureRmVirtualNetworkSubnetConfig, Add-AzureRmApplicationGatewayAuthenticationCertificate, Add-AzureRmApplicationGatewayFrontendIPConfig, New-AzureRmApplicationGatewayFrontendIPConfig, Set-AzureRmApplicationGatewayFrontendIPConfig, Add-AzureRmApplicationGatewayIPConfiguration, New-AzureRmApplicationGatewayIPConfiguration, Set-AzureRmApplicationGatewayIPConfiguration, Add-AzureRmNetworkInterfaceIpConfig, New-AzureRmNetworkInterfaceIpConfig, Set-AzureRmNetworkInterfaceIpConfig, New-AzureRmVirtualNetworkGatewayIpConfig, Add-AzureRmVirtualNetworkGatewayIpConfig, Set-AzureRmLoadBalancerFrontendIpConfig, Add-AzureRmLoadBalancerFrontendIpConfig, New-AzureRmLoadBalancerFrontendIpConfig and New-AzureRmNetworkInterface by adding support for multiple AddressPrefixes in subnet
3534
* Added new commands for feature: Azure Firewall via ARM
36-
- Added Get-AzureRmFirewall
37-
- Added Set-AzureRmFirewall
38-
- Added New-AzureRmFirewall
39-
- Added Remove-AzureRmFirewall
40-
- Added New-AzureRmFirewallApplicationRuleCollection
41-
- Added New-AzureRmFirewallApplicationRule
42-
- Added New-AzureRmFirewallNatRuleCollection
43-
- Added New-AzureRmFirewallNatRule
44-
- Added New-AzureRmFirewallNetworkRuleCollection
45-
- Added New-AzureRmFirewallNetworkRule
35+
- Added Get-AzureRmFirewall
36+
- Added Set-AzureRmFirewall
37+
- Added New-AzureRmFirewall
38+
- Added Remove-AzureRmFirewall
39+
- Added New-AzureRmFirewallApplicationRuleCollection
40+
- Added New-AzureRmFirewallApplicationRule
41+
- Added New-AzureRmFirewallNatRuleCollection
42+
- Added New-AzureRmFirewallNatRule
43+
- Added New-AzureRmFirewallNetworkRuleCollection
44+
- Added New-AzureRmFirewallNetworkRule
4645
* Added support for Trusted Root certificate and Autoscale configuration in Application Gateway
47-
- New Cmdlets added:
48-
- Add-AzureRmApplicationGatewayTrustedRootCertificate
49-
- Get-AzureRmApplicationGatewayTrustedRootCertificate
50-
- New-AzureRmApplicationGatewayTrustedRootCertificate
51-
- Remove-AzureRmApplicationGatewayTrustedRootCertificate
52-
- Set-AzureRmApplicationGatewayTrustedRootCertificate
53-
- Get-AzureRmApplicationGatewayAutoscaleConfiguration
54-
- New-AzureRmApplicationGatewayAutoscaleConfiguration
55-
- Remove-AzureRmApplicationGatewayAutoscaleConfiguration
56-
- Set-AzureRmApplicationGatewayAutoscaleConfiguration
57-
- Cmdlets updated with optonal parameter -TrustedRootCertificate
58-
- New-AzureRmApplicationGateway
59-
- Set-AzureRmApplicationGateway
60-
- New-AzureRmApplicationGatewayBackendHttpSetting
61-
- Set-AzureRmApplicationGatewayBackendHttpSetting
62-
- Cmdlets updated with optonal parameter -AutoscaleConfiguration
63-
- New-AzureRmApplicationGateway
64-
- Set-AzureRmApplicationGateway
46+
- New Cmdlets added:
47+
- Add-AzureRmApplicationGatewayTrustedRootCertificate
48+
- Get-AzureRmApplicationGatewayTrustedRootCertificate
49+
- New-AzureRmApplicationGatewayTrustedRootCertificate
50+
- Remove-AzureRmApplicationGatewayTrustedRootCertificate
51+
- Set-AzureRmApplicationGatewayTrustedRootCertificate
52+
- Get-AzureRmApplicationGatewayAutoscaleConfiguration
53+
- New-AzureRmApplicationGatewayAutoscaleConfiguration
54+
- Remove-AzureRmApplicationGatewayAutoscaleConfiguration
55+
- Set-AzureRmApplicationGatewayAutoscaleConfiguration
56+
- Cmdlets updated with optonal parameter -TrustedRootCertificate
57+
- New-AzureRmApplicationGateway
58+
- Set-AzureRmApplicationGateway
59+
- New-AzureRmApplicationGatewayBackendHttpSetting
60+
- Set-AzureRmApplicationGatewayBackendHttpSetting
61+
- Cmdlets updated with optonal parameter -AutoscaleConfiguration
62+
- New-AzureRmApplicationGateway
63+
- Set-AzureRmApplicationGateway
6564
* Add cmdlet for Interface Endpoint Get-AzureInterfaceEndpoint
65+
* Added support for multiple address prefixes in a subnet. Updated cmdlets:
66+
- New-AzureRmVirtualNetworkSubnetConfig
67+
- Set-AzureRmVirtualNetworkSubnetConfig
68+
- Add-AzureRmVirtualNetworkSubnetConfig
69+
- Get-AzureRmVirtualNetworkSubnetConfig
70+
- Add-AzureRmApplicationGatewayAuthenticationCertificate
71+
- Add-AzureRmApplicationGatewayFrontendIPConfig
72+
- New-AzureRmApplicationGatewayFrontendIPConfig
73+
- Set-AzureRmApplicationGatewayFrontendIPConfig
74+
- Add-AzureRmApplicationGatewayIPConfiguration
75+
- New-AzureRmApplicationGatewayIPConfiguration
76+
- Set-AzureRmApplicationGatewayIPConfiguration
77+
- Add-AzureRmNetworkInterfaceIpConfig
78+
- New-AzureRmNetworkInterfaceIpConfig
79+
- Set-AzureRmNetworkInterfaceIpConfig
80+
- New-AzureRmVirtualNetworkGatewayIpConfig
81+
- Add-AzureRmVirtualNetworkGatewayIpConfig
82+
- Set-AzureRmLoadBalancerFrontendIpConfig
83+
- Add-AzureRmLoadBalancerFrontendIpConfig
84+
- New-AzureRmLoadBalancerFrontendIpConfig
85+
- New-AzureRmNetworkInterface
86+
* Adding support to perform CRUD operations for subnet delegation.
87+
- New-AzureRmDelegation: Creates a new delegation, which can be added to a subnet
88+
- Remove-AzureRmDelegation: Takes in a subnet and removes the provided delegation name from that subnet
89+
- Add-AzureRmDelegation: Takes in a subnet and adds the provided service name as a delegation to that subnet
90+
- Get-AzureRmDelegation
91+
- Get-AzureRmAvailableServiceDelegations
6692

6793
## Version 6.7.0
6894
* Updated cmdlet New-AzureRmVirtualNetworkGatewayConnection with support for switch ExpressRouteGatewayBypass

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,8 @@
404404
<Compile Include="Models\AzureFirewall\PSAzureFirewallNetworkRuleCollection.cs" />
405405
<Compile Include="Models\AzureFirewall\PSAzureFirewallRCAction.cs" />
406406
<Compile Include="Models\PSApplicationGatewayAutoscaleConfiguration.cs" />
407+
<Compile Include="Models\PSAvailableDelegation.cs" />
408+
<Compile Include="Models\PSDelegation.cs" />
407409
<Compile Include="Models\PSApplicationGatewayBackendAddressPool.cs" />
408410
<Compile Include="Models\PSApplicationGatewayFrontendIPConfiguration.cs" />
409411
<Compile Include="Models\PSAvailableProvidersListCity.cs" />
@@ -597,6 +599,12 @@
597599
<Compile Include="ServiceEndpointPolicy\NewAzureServiceEndpointPolicyCommand.cs" />
598600
<Compile Include="ServiceEndpointPolicy\RemoveAzureServiceEndpointPolicyCommand.cs" />
599601
<Compile Include="ServiceEndpointPolicy\SetAzureServiceEndpointPolicyCommand.cs" />
602+
<Compile Include="VirtualNetwork\Subnet\Delegation\AzureDelegationBase.cs" />
603+
<Compile Include="VirtualNetwork\Subnet\Delegation\AddAzureDelegationCommand.cs" />
604+
<Compile Include="AvailableDelegation\GetAzureAvailableServiceDelegationsCommand.cs" />
605+
<Compile Include="VirtualNetwork\Subnet\Delegation\GetAzureDelegationCommand.cs" />
606+
<Compile Include="VirtualNetwork\Subnet\Delegation\RemoveAzureDelegationCommand.cs" />
607+
<Compile Include="VirtualNetwork\Subnet\Delegation\NewAzureDelegationCommand.cs" />
600608
<Compile Include="VirtualNetwork\TestAzurePrivateIPAddressAvailabilityCmdlet.cs" />
601609
<Compile Include="PublicIpAddress\GetAzurePublicIpAddressCommand.cs" />
602610
<Compile Include="PublicIpAddress\NewAzurePublicIpAddressCommand.cs" />

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ private static void Initialize()
8888
cfg.CreateMap<CNM.PSIPConfiguration, MNM.IPConfiguration>();
8989
cfg.CreateMap<CNM.PSResourceNavigationLink, MNM.ResourceNavigationLink>();
9090
cfg.CreateMap<CNM.PSServiceEndpoint, MNM.ServiceEndpointPropertiesFormat>();
91+
cfg.CreateMap<CNM.PSDelegation, MNM.Delegation>();
9192

9293
// MNM to CNM
9394
cfg.CreateMap<MNM.DhcpOptions, CNM.PSDhcpOptions>();
@@ -107,6 +108,7 @@ private static void Initialize()
107108
cfg.CreateMap<MNM.IPConfiguration, CNM.PSIPConfiguration>();
108109
cfg.CreateMap<MNM.ResourceNavigationLink, CNM.PSResourceNavigationLink>();
109110
cfg.CreateMap<MNM.ServiceEndpointPropertiesFormat, CNM.PSServiceEndpoint>();
111+
cfg.CreateMap<MNM.Delegation, CNM.PSDelegation>();
110112

111113
// TestPrivateIpAddressAvailability
112114
// CNM to MNM
@@ -122,9 +124,18 @@ private static void Initialize()
122124
// MNM to CNM
123125
cfg.CreateMap<MNM.EndpointServiceResult, CNM.PSEndpointServiceResult>();
124126

127+
// Available subnet delegations
128+
// CNM to MNM
129+
cfg.CreateMap<CNM.PSAvailableDelegation, MNM.AvailableDelegation>();
130+
131+
// MNM to CNM
132+
cfg.CreateMap<MNM.AvailableDelegation, CNM.PSAvailableDelegation>();
133+
125134
// VirtualNetwork Peering
135+
// CNM to MNM
126136
cfg.CreateMap<CNM.PSVirtualNetworkPeering, MNM.VirtualNetworkPeering>();
127137

138+
// MNM to CNM
128139
cfg.CreateMap<MNM.VirtualNetworkPeering, CNM.PSVirtualNetworkPeering>();
129140

130141
// VirtualNetwork
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using System.Collections.Generic;
2+
using Microsoft.WindowsAzure.Commands.Common.Attributes;
3+
4+
namespace Microsoft.Azure.Commands.Network.Models
5+
{
6+
public class PSAvailableDelegation
7+
{
8+
[Ps1Xml(Label = "Name", Target = ViewControl.Table, Position = 1)]
9+
public string Name { get; set; }
10+
11+
public string Id { get; set; }
12+
13+
[Ps1Xml(Target = ViewControl.Table)]
14+
public string Type { get; set; }
15+
16+
public string ServiceName { get; set; }
17+
18+
public List<string> Actions { get; set; }
19+
}
20+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using Microsoft.WindowsAzure.Commands.Common.Attributes;
2+
using System.Collections.Generic;
3+
4+
namespace Microsoft.Azure.Commands.Network.Models
5+
{
6+
public class PSDelegation : PSChildResource
7+
{
8+
[Ps1Xml(Target = ViewControl.Table)]
9+
public string ProvisioningState { get; set; }
10+
11+
public string ServiceName { get; set; }
12+
13+
public List<string> Actions { get; set; }
14+
}
15+
}

src/ResourceManager/Network/Commands.Network/Models/PSSubnet.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ public class PSSubnet : PSChildResource
4444
[JsonProperty(Order = 1)]
4545
public List<PSServiceEndpointPolicy> ServiceEndpointPolicies { get; set; }
4646

47+
public List<PSDelegation> Delegations { get; set; }
48+
4749
[JsonProperty(Order = 1)]
4850
public List<PSInterfaceEndpoint> InterfaceEndpoints { get; set; }
4951

@@ -117,5 +119,11 @@ public string InterfaceEndpointsText
117119
{
118120
get { return JsonConvert.SerializeObject(InterfaceEndpoints, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
119121
}
122+
123+
[JsonIgnore]
124+
public string DelegationsText
125+
{
126+
get { return JsonConvert.SerializeObject(Delegations, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
127+
}
120128
}
121129
}

src/ResourceManager/Network/Commands.Network/NetworkSecurityGroup/NetworkSecurityRule/AddAzureNetworkSecurityRuleConfigCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public override void Execute()
3838
{
3939

4040
base.Execute();
41-
// Verify if the subnet exists in the NetworkSecurityGroup
41+
// Verify if the security rule exists in the NetworkSecurityGroup
4242
var rule = this.NetworkSecurityGroup.SecurityRules.SingleOrDefault(resource => string.Equals(resource.Name, this.Name, System.StringComparison.CurrentCultureIgnoreCase));
4343

4444
if (rule != null)

src/ResourceManager/Network/Commands.Network/VirtualNetwork/Subnet/AzureVirtualNetworkSubnetConfigBase.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,11 @@ public class AzureVirtualNetworkSubnetConfigBase : NetworkBaseCmdlet
7171
ValueFromPipelineByPropertyName = true,
7272
HelpMessage = "Service Endpoint Policies")]
7373
public List<PSServiceEndpointPolicy> ServiceEndpointPolicy { get; set; }
74+
75+
[Parameter(
76+
Mandatory = false,
77+
ValueFromPipelineByPropertyName = true,
78+
HelpMessage = "Delegations")]
79+
public List<PSDelegation> Delegations { get; set; }
7480
}
7581
}

0 commit comments

Comments
 (0)