Skip to content

Commit c9cb9d0

Browse files
committed
remove network ruleset from new-azcontainerregistry
1 parent a17c7d5 commit c9cb9d0

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

src/ContainerRegistry/ContainerRegistry/Commands/NewAzureContainerRegistry.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ public class NewAzureContainerRegistry : ContainerRegistryCmdletBase
6161
[ValidateNotNullOrEmpty]
6262
public string StorageAccountName { get; set; }
6363

64-
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The network rule set for a container registry.")]
65-
[ValidateNotNullOrEmpty]
66-
public PSNetworkRuleSet NetworkRuleSet { get; set; }
67-
6864
public override void ExecuteCmdlet()
6965
{
7066
if (ShouldProcess(Name, "Create Container Registry"))
@@ -101,8 +97,7 @@ public override void ExecuteCmdlet()
10197
Sku = new Microsoft.Azure.Management.ContainerRegistry.Models.Sku(Sku),
10298
AdminUserEnabled = EnableAdminUser,
10399
Tags = tags,
104-
Location = Location,
105-
NetworkRuleSet = NetworkRuleSet?.GetNetworkRuleSet()
100+
Location = Location
106101
};
107102

108103
if (StorageAccountName != null)

src/ContainerRegistry/ContainerRegistry/help/New-AzContainerRegistry.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Creates a container registry.
1414

1515
```
1616
New-AzContainerRegistry [-ResourceGroupName] <String> [-Name] <String> [-Sku] <String> [-Location <String>]
17-
[-EnableAdminUser] [-Tag <Hashtable>] [-StorageAccountName <String>] [-NetworkRuleSet <PSNetworkRuleSet>]
17+
[-EnableAdminUser] [-Tag <Hashtable>] [-StorageAccountName <String>]
1818
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
1919
```
2020

@@ -128,21 +128,6 @@ Accept pipeline input: True (ByPropertyName)
128128
Accept wildcard characters: False
129129
```
130130
131-
### -NetworkRuleSet
132-
The network rule set for a container registry.
133-
134-
```yaml
135-
Type: Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet
136-
Parameter Sets: (All)
137-
Aliases:
138-
139-
Required: False
140-
Position: Named
141-
Default value: None
142-
Accept pipeline input: True (ByPropertyName)
143-
Accept wildcard characters: False
144-
```
145-
146131
### -ResourceGroupName
147132
Resource Group Name.
148133

0 commit comments

Comments
 (0)