Skip to content

Commit ccdf8c7

Browse files
authored
[Network] Yabo/revert-networksecurityperimeter (#19947)
* revert #19865 * resolve conflict * improve examples * Update Get-AzFirewallLearnedIpPrefix.md
1 parent ca99a0b commit ccdf8c7

File tree

964 files changed

+4099
-87940
lines changed

Some content is hidden

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

964 files changed

+4099
-87940
lines changed

src/Network/Network.sln

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Microsoft Visual Studio Solution File, Format Version 12.00
1+
Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio Version 16
33
VisualStudioVersion = 16.0.28803.352
44
MinimumVisualStudioVersion = 10.0.40219.1
@@ -54,8 +54,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Compute.AlcWrapper", "..\Co
5454
EndProject
5555
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.Compute", "..\Compute\Compute.Autorest\Az.Compute.csproj", "{DFA8F114-2825-44B5-9A17-2D23C2024FD8}"
5656
EndProject
57-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.NetworkSecurityPerimeter", "NetworkSecurityPerimeter.Autorest\Az.NetworkSecurityPerimeter.csproj", "{42E90614-4393-472B-B740-283E24FAA8A4}"
58-
EndProject
5957
Global
6058
GlobalSection(SolutionConfigurationPlatforms) = preSolution
6159
Debug|Any CPU = Debug|Any CPU
@@ -162,10 +160,6 @@ Global
162160
{201512D5-675A-40E1-A5BB-ACC091E98DE5}.Debug|Any CPU.Build.0 = Debug|Any CPU
163161
{201512D5-675A-40E1-A5BB-ACC091E98DE5}.Release|Any CPU.ActiveCfg = Release|Any CPU
164162
{201512D5-675A-40E1-A5BB-ACC091E98DE5}.Release|Any CPU.Build.0 = Release|Any CPU
165-
{42E90614-4393-472B-B740-283E24FAA8A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
166-
{42E90614-4393-472B-B740-283E24FAA8A4}.Debug|Any CPU.Build.0 = Debug|Any CPU
167-
{42E90614-4393-472B-B740-283E24FAA8A4}.Release|Any CPU.ActiveCfg = Release|Any CPU
168-
{42E90614-4393-472B-B740-283E24FAA8A4}.Release|Any CPU.Build.0 = Release|Any CPU
169163
EndGlobalSection
170164
GlobalSection(SolutionProperties) = preSolution
171165
HideSolutionNode = FALSE

src/Network/Network/Az.Network.psd1

Lines changed: 11 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 10/20/2022
6+
# Generated on: 10/15/2022
77
#
88

99
@{
@@ -56,8 +56,7 @@ DotNetFrameworkVersion = '4.7.2'
5656
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.10.2'; })
5757

5858
# Assemblies that must be loaded prior to importing this module
59-
RequiredAssemblies = 'AutoMapper.dll', 'Microsoft.Azure.Management.Network.dll',
60-
'NetworkSecurityPerimeter.Autorest\bin\Az.NetworkSecurityPerimeter.private.dll'
59+
RequiredAssemblies = 'AutoMapper.dll', 'Microsoft.Azure.Management.Network.dll'
6160

6261
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
6362
# ScriptsToProcess = @()
@@ -66,29 +65,13 @@ RequiredAssemblies = 'AutoMapper.dll', 'Microsoft.Azure.Management.Network.dll',
6665
# TypesToProcess = @()
6766

6867
# Format files (.ps1xml) to be loaded when importing this module
69-
FormatsToProcess = 'Network.format.ps1xml',
70-
'NetworkSecurityPerimeter.Autorest\Az.NetworkSecurityPerimeter.format.ps1xml'
68+
FormatsToProcess = 'Network.format.ps1xml'
7169

7270
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
73-
NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.Network.dll',
74-
'NetworkSecurityPerimeter.Autorest\Az.NetworkSecurityPerimeter.psm1')
71+
NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.Network.dll')
7572

7673
# Functions 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 functions to export.
77-
FunctionsToExport = 'Get-AzNetworkSecurityPerimeter',
78-
'Get-AzNetworkSecurityPerimeterAccessRule',
79-
'Get-AzNetworkSecurityPerimeterAssociableResourceType',
80-
'Get-AzNetworkSecurityPerimeterAssociation',
81-
'Get-AzNetworkSecurityPerimeterProfile',
82-
'New-AzNetworkSecurityPerimeter',
83-
'New-AzNetworkSecurityPerimeterAccessRule',
84-
'New-AzNetworkSecurityPerimeterAssociation',
85-
'New-AzNetworkSecurityPerimeterProfile',
86-
'Remove-AzNetworkSecurityPerimeter',
87-
'Remove-AzNetworkSecurityPerimeterAccessRule',
88-
'Remove-AzNetworkSecurityPerimeterAssociation',
89-
'Remove-AzNetworkSecurityPerimeterProfile',
90-
'Update-AzNetworkSecurityPerimeterAccessRule',
91-
'Update-AzNetworkSecurityPerimeterAssociation'
74+
FunctionsToExport = @()
9275

9376
# 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.
9477
CmdletsToExport = 'Add-AzApplicationGatewayAuthenticationCertificate',
@@ -576,9 +559,9 @@ CmdletsToExport = 'Add-AzApplicationGatewayAuthenticationCertificate',
576559
'New-AzVirtualNetworkGatewayNatRule',
577560
'Update-AzVirtualNetworkGatewayNatRule',
578561
'Remove-AzVirtualNetworkGatewayNatRule',
579-
'New-AzVirtualNetworkGatewayPolicyGroup',
580-
'New-AzVirtualNetworkGatewayPolicyGroupMember',
581-
'New-AzVpnClientConnectionConfiguration',
562+
'New-AzVirtualNetworkGatewayPolicyGroup',
563+
'New-AzVirtualNetworkGatewayPolicyGroupMember',
564+
'New-AzVpnClientConnectionConfiguration',
582565
'Get-AzVirtualHubBgpConnection', 'New-AzVirtualHubBgpConnection',
583566
'Remove-AzVirtualHubBgpConnection',
584567
'Update-AzVirtualHubBgpConnection',
@@ -646,7 +629,7 @@ CmdletsToExport = 'Add-AzApplicationGatewayAuthenticationCertificate',
646629
"Get-AzFirewallLearnedIpPrefix"
647630

648631
# Variables to export from this module
649-
VariablesToExport = '*'
632+
# VariablesToExport = @()
650633

651634
# Aliases 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 aliases to export.
652635
AliasesToExport = 'List-AzApplicationGatewayAvailableWafRuleSets',
@@ -679,7 +662,7 @@ PrivateData = @{
679662
PSData = @{
680663

681664
# Tags applied to this module. These help with module discovery in online galleries.
682-
Tags = 'Azure', 'ResourceManager', 'ARM', 'Network', 'VirtualNetwork'
665+
Tags = 'Azure','ResourceManager','ARM','Network','VirtualNetwork'
683666

684667
# A URL to the license for this module.
685668
LicenseUri = 'https://aka.ms/azps-license'
@@ -739,7 +722,7 @@ PrivateData = @{
739722

740723
} # End of PSData hashtable
741724

742-
} # End of PrivateData hashtable
725+
} # End of PrivateData hashtable
743726

744727
# HelpInfo URI of this module
745728
# HelpInfoURI = ''

src/Network/Network/ChangeLog.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
* Added new cmdlet to get firewall learned ip prefixes
2727
* `Get-AzFirewallLearnedIpPrefix`
2828
* Fixed a bug that does not update firewall policy application, network and nat rules' descriptions even though description is provided via description parameter
29-
* Added new cmdlet `Get-AzNetworkSecurityPerimeterAssociableResourceType`
3029
* Updated `New-AzIpConfigurationBgpPeeringAddressObject` to remove validate null or empty check for CustomAddress in Azure Virtual Network Gateway
3130
* Updated `New-AzVirtualNetworkGateway` to add validate null or empty check for CustomAddress in Azure Virtual Network Gateway
3231
* Updated cmdlets to add new property of `VirtualNetworkGatewayPolicyGroup` and `VpnClientConnectionConfiguration` in Azure Virtual Network Gateway

src/Network/Network/help/Add-AzApplicationGatewayAuthenticationCertificate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Accept wildcard characters: False
128128
```
129129
130130
### CommonParameters
131-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
131+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
132132
133133
## INPUTS
134134

src/Network/Network/help/Add-AzApplicationGatewayBackendAddressPool.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Accept wildcard characters: False
150150
```
151151
152152
### CommonParameters
153-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
153+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
154154
155155
## INPUTS
156156

src/Network/Network/help/Add-AzApplicationGatewayBackendHttpSetting.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ The first command gets the application gateway named ApplicationGateway01 that b
4242
Adds back-end HTTP settings to an application gateway. (autogenerated)
4343

4444
<!-- Aladdin Generated Example -->
45-
46-
4745
```powershell
4846
Add-AzApplicationGatewayBackendHttpSetting -ApplicationGateway <PSApplicationGateway> -CookieBasedAffinity Enabled -Name 'Setting02' -PickHostNameFromBackendAddress -Port 88 -Probe <PSApplicationGatewayProbe> -Protocol http -RequestTimeout <Int32>
4947
```
@@ -296,7 +294,7 @@ Accept wildcard characters: False
296294
```
297295
298296
### CommonParameters
299-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
297+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
300298
301299
## INPUTS
302300

src/Network/Network/help/Add-AzApplicationGatewayBackendSetting.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The first command gets the application gateway named ApplicationGateway01 that b
3939
Specifies the name of application gateway for which this cmdlet adds settings.
4040

4141
```yaml
42-
Type: Microsoft.Azure.Commands.Network.Models.PSApplicationGateway
42+
Type: PSApplicationGateway
4343
Parameter Sets: (All)
4444
Aliases:
4545

@@ -54,7 +54,7 @@ Accept wildcard characters: False
5454
The credentials, account, tenant, and subscription used for communication with Azure.
5555
5656
```yaml
57-
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
57+
Type: IAzureContextContainer
5858
Parameter Sets: (All)
5959
Aliases: AzContext, AzureRmContext, AzureCredential
6060

@@ -69,7 +69,7 @@ Accept wildcard characters: False
6969
Sets host header to be sent to the backend servers.
7070
7171
```yaml
72-
Type: System.String
72+
Type: String
7373
Parameter Sets: (All)
7474
Aliases:
7575

@@ -84,7 +84,7 @@ Accept wildcard characters: False
8484
The name of the backend settings
8585
8686
```yaml
87-
Type: System.String
87+
Type: String
8888
Parameter Sets: (All)
8989
Aliases:
9090

@@ -99,7 +99,7 @@ Accept wildcard characters: False
9999
Flag if host header should be picked from the host name of the backend server.
100100
101101
```yaml
102-
Type: System.Management.Automation.SwitchParameter
102+
Type: SwitchParameter
103103
Parameter Sets: (All)
104104
Aliases:
105105

@@ -114,7 +114,7 @@ Accept wildcard characters: False
114114
Port
115115
116116
```yaml
117-
Type: System.Int32
117+
Type: Int32
118118
Parameter Sets: (All)
119119
Aliases:
120120

@@ -129,7 +129,7 @@ Accept wildcard characters: False
129129
Application gateway Probe
130130
131131
```yaml
132-
Type: Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayProbe
132+
Type: PSApplicationGatewayProbe
133133
Parameter Sets: (All)
134134
Aliases:
135135

@@ -144,7 +144,7 @@ Accept wildcard characters: False
144144
ID of the application gateway Probe
145145
146146
```yaml
147-
Type: System.String
147+
Type: String
148148
Parameter Sets: (All)
149149
Aliases:
150150

@@ -159,7 +159,7 @@ Accept wildcard characters: False
159159
Protocol
160160
161161
```yaml
162-
Type: System.String
162+
Type: String
163163
Parameter Sets: (All)
164164
Aliases:
165165
Accepted values: TCP, TLS
@@ -176,7 +176,7 @@ Timeout.
176176
Default value 30 seconds.
177177
178178
```yaml
179-
Type: System.Int32
179+
Type: Int32
180180
Parameter Sets: (All)
181181
Aliases:
182182

@@ -191,7 +191,7 @@ Accept wildcard characters: False
191191
Application gateway Trusted Root Certificates
192192
193193
```yaml
194-
Type: Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayTrustedRootCertificate[]
194+
Type: PSApplicationGatewayTrustedRootCertificate[]
195195
Parameter Sets: (All)
196196
Aliases:
197197

src/Network/Network/help/Add-AzApplicationGatewayCustomError.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This command adds a custom error of http status code 502 to the application gate
3636

3737
### Example 2: Adds custom error to application gateway listener level
3838
```powershell
39-
$resourceGroupName = "resourceGroupName"
39+
$resourceGroupName = "resourceGroupName"
4040
$AppGWName = "applicationGatewayName"
4141
$customError502Url = "https://mycustomerrorpages.blob.core.windows.net/errorpages/502.htm"
4242
$listenerName = "listenerName"
@@ -111,7 +111,7 @@ Accept wildcard characters: False
111111
```
112112
113113
### CommonParameters
114-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
114+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
115115
116116
## INPUTS
117117

src/Network/Network/help/Add-AzApplicationGatewayFrontendIPConfig.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ The fourth command adds a front-end IP configuration named FrontendIP02 using $S
8181
Specifies the application gateway to which this cmdlet adds a front-end IP configuration.
8282

8383
```yaml
84-
Type: Microsoft.Azure.Commands.Network.Models.PSApplicationGateway
84+
Type: PSApplicationGateway
8585
Parameter Sets: (All)
8686
Aliases:
8787

@@ -96,7 +96,7 @@ Accept wildcard characters: False
9696
The credentials, account, tenant, and subscription used for communication with azure.
9797
9898
```yaml
99-
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
99+
Type: IAzureContextContainer
100100
Parameter Sets: (All)
101101
Aliases: AzContext, AzureRmContext, AzureCredential
102102

@@ -111,7 +111,7 @@ Accept wildcard characters: False
111111
Specifies the name of the front-end IP configuration to add.
112112
113113
```yaml
114-
Type: System.String
114+
Type: String
115115
Parameter Sets: (All)
116116
Aliases:
117117

@@ -127,7 +127,7 @@ Specifies the private IP address to add as a front-end IP for the application ga
127127
If specified, this IP is statically allocated from the subnet.
128128
129129
```yaml
130-
Type: System.String
130+
Type: String
131131
Parameter Sets: (All)
132132
Aliases:
133133

@@ -142,7 +142,7 @@ Accept wildcard characters: False
142142
PrivateLinkConfiguration
143143
144144
```yaml
145-
Type: Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayPrivateLinkConfiguration
145+
Type: PSApplicationGatewayPrivateLinkConfiguration
146146
Parameter Sets: SetByResource
147147
Aliases:
148148

@@ -157,7 +157,7 @@ Accept wildcard characters: False
157157
PrivateLinkConfigurationId
158158
159159
```yaml
160-
Type: System.String
160+
Type: String
161161
Parameter Sets: SetByResourceId
162162
Aliases:
163163

@@ -172,7 +172,7 @@ Accept wildcard characters: False
172172
Specifies the public IP address which this cmdlet adds as a front-end IP address for the application gateway.
173173
174174
```yaml
175-
Type: Microsoft.Azure.Commands.Network.Models.PSPublicIpAddress
175+
Type: PSPublicIpAddress
176176
Parameter Sets: SetByResource
177177
Aliases:
178178

@@ -187,7 +187,7 @@ Accept wildcard characters: False
187187
Specifies the ID of the public IP address which this cmdlet adds as a front-end IP address for the application gateway.
188188
189189
```yaml
190-
Type: System.String
190+
Type: String
191191
Parameter Sets: SetByResourceId
192192
Aliases:
193193

@@ -205,7 +205,7 @@ If the *PrivateIPAddress* parameter is specified, it should belong to this subne
205205
If *PrivateIPAddress* is not specified, one of the IP addresses from this subnet is dynamically picked up as the front-end IP address of the application gateway.
206206
207207
```yaml
208-
Type: Microsoft.Azure.Commands.Network.Models.PSSubnet
208+
Type: PSSubnet
209209
Parameter Sets: SetByResource
210210
Aliases:
211211

@@ -223,7 +223,7 @@ If the *PrivateIPAddress* parameter is specified, it should belong to this subne
223223
Otherwise, one of the IP from this subnet is dynamically picked up as the front-end IP of the application gateway.
224224
225225
```yaml
226-
Type: System.String
226+
Type: String
227227
Parameter Sets: SetByResourceId
228228
Aliases:
229229

src/Network/Network/help/Add-AzApplicationGatewayFrontendPort.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Accept wildcard characters: False
9595
```
9696
9797
### CommonParameters
98-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
98+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
9999
100100
## INPUTS
101101

0 commit comments

Comments
 (0)