Skip to content

Commit 32c499f

Browse files
Change IsRegistration bool parameter to switch param EnableRegistration
Minor change
1 parent 54d0639 commit 32c499f

9 files changed

+87
-56
lines changed

src/PrivateDns/PrivateDns.Test/ScenarioTests/Common.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ function Create-VirtualNetworkLink([bool] $registrationEnabled)
9393

9494
$createdZone = New-AzPrivateDnsZone -Name $zoneName -ResourceGroupName $resourceGroup.ResourceGroupName -Tag @{tag1="value1"}
9595
$createdVirtualNetwork = TestSetup-CreateVirtualNetwork $resourceGroup
96-
$createdLink = New-AzPrivateDnsVirtualNetworkLink -ZoneName $zoneName -ResourceGroupName $resourceGroup.ResourceGroupName -Name $linkName -Tag @{tag1="value1"} -VirtualNetworkId $createdVirtualNetwork.Id -IsRegistrationEnabled $registrationEnabled
96+
if($registrationEnabled)
97+
{
98+
$createdLink = New-AzPrivateDnsVirtualNetworkLink -ZoneName $zoneName -ResourceGroupName $resourceGroup.ResourceGroupName -Name $linkName -Tag @{tag1="value1"} -VirtualNetworkId $createdVirtualNetwork.Id -EnableRegistration
99+
}
100+
else
101+
{
102+
$createdLink = New-AzPrivateDnsVirtualNetworkLink -ZoneName $zoneName -ResourceGroupName $resourceGroup.ResourceGroupName -Name $linkName -Tag @{tag1="value1"} -VirtualNetworkId $createdVirtualNetwork.Id
103+
}
97104
return $createdLink
98105
}

src/PrivateDns/PrivateDns.Test/ScenarioTests/LinkTests.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function Test-LinkAlreadyExistsCreateThrow
161161
$createdLink1 = Create-VirtualNetworkLink $false
162162

163163
$message = "*exists already and hence cannot be created again*"
164-
Assert-ThrowsLike { New-AzPrivateDnsVirtualNetworkLink -ZoneName $createdLink1.zoneName -ResourceGroupName $createdLink1.ResourceGroupName -Name $createdLink1.Name -Tag @{tag1="value2"} -VirtualNetworkId $createdLink1.VirtualNetworkId -IsRegistrationEnabled $false } $message
164+
Assert-ThrowsLike { New-AzPrivateDnsVirtualNetworkLink -ZoneName $createdLink1.zoneName -ResourceGroupName $createdLink1.ResourceGroupName -Name $createdLink1.Name -Tag @{tag1="value2"} -VirtualNetworkId $createdLink1.VirtualNetworkId } $message
165165

166166
Remove-AzResourceGroup -Name $createdLink1.ResourceGroupName -Force
167167
}
@@ -192,7 +192,7 @@ Test link update with resource Id
192192
function Test-UpdateLinkRegistrationStatusWithResourceId
193193
{
194194
$createdLink = Create-VirtualNetworkLink $false
195-
$updatedLink = Set-AzPrivateDnsVirtualNetworkLink -ResourceId $createdLink.ResourceId -IsRegistrationEnabled $true -Tag @{}
195+
$updatedLink = Set-AzPrivateDnsVirtualNetworkLink -ResourceId $createdLink.ResourceId -EnableRegistration -Tag @{}
196196

197197
Assert-AreEqual $updatedLink.RegistrationEnabled $true
198198
Assert-AreEqual 0 $updatedLink.Tags.Count
@@ -369,8 +369,8 @@ function Test-ListLinks
369369
$createdVirtualNetwork1 = TestSetup-CreateVirtualNetwork $resourceGroup
370370
$createdVirtualNetwork2 = TestSetup-CreateVirtualNetwork $resourceGroup
371371

372-
$createdLink1 = New-AzPrivateDnsVirtualNetworkLink -ZoneName $zoneName -ResourceGroupName $resourceGroup.ResourceGroupName -Name $linkName1 -Tag @{tag1="value1"} -VirtualNetworkId $createdVirtualNetwork1.Id -IsRegistrationEnabled $false
373-
$createdLink2 = New-AzPrivateDnsVirtualNetworkLink -ZoneName $zoneName -ResourceGroupName $resourceGroup.ResourceGroupName -Name $linkName2 -Tag @{tag1="value1"} -VirtualNetworkId $createdVirtualNetwork2.Id -IsRegistrationEnabled $true
372+
$createdLink1 = New-AzPrivateDnsVirtualNetworkLink -ZoneName $zoneName -ResourceGroupName $resourceGroup.ResourceGroupName -Name $linkName1 -Tag @{tag1="value1"} -VirtualNetworkId $createdVirtualNetwork1.Id
373+
$createdLink2 = New-AzPrivateDnsVirtualNetworkLink -ZoneName $zoneName -ResourceGroupName $resourceGroup.ResourceGroupName -Name $linkName2 -Tag @{tag1="value1"} -VirtualNetworkId $createdVirtualNetwork2.Id
374374

375375
$getLink = Get-AzPrivateDnsVirtualNetworkLink -ZoneName $zoneName -ResourceGroupName $createdLink1.ResourceGroupName
376376

src/PrivateDns/PrivateDns/VirtualNetworkLinks/NewAzurePrivateDnsVirtualNetworkLink.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ public class NewAzurePrivateDnsVirtualNetworkLink : PrivateDnsBaseCmdlet
4949
[ValidateNotNullOrEmpty]
5050
public VirtualNetwork VirtualNetwork { get; set; }
5151

52-
[Parameter(Mandatory = true, HelpMessage = "Boolean that represents if the link is registration enabled or not.")]
52+
[Parameter(Mandatory = false, HelpMessage = "Switch parameter that represents if the link is registration enabled or not.")]
5353
[ValidateNotNullOrEmpty]
54-
public bool IsRegistrationEnabled { get; set; }
54+
public SwitchParameter EnableRegistration { get; set; }
5555

5656
[Parameter(Mandatory = false, HelpMessage = "A hash table which represents resource tags.")]
5757
public Hashtable Tag { get; set; }
@@ -74,7 +74,7 @@ public override void ExecuteCmdlet()
7474
this.ResourceGroupName,
7575
this.ZoneName,
7676
(this.VirtualNetwork != null) ? this.VirtualNetwork.Id : this.VirtualNetworkId,
77-
this.IsRegistrationEnabled,
77+
this.EnableRegistration.IsPresent,
7878
this.Tag);
7979
this.WriteVerbose(ProjectResources.Success);
8080
this.WriteVerbose(string.Format(ProjectResources.Success_NewVirtualNetworkLink, this.Name, this.ResourceGroupName));

src/PrivateDns/PrivateDns/VirtualNetworkLinks/SetAzurePrivateDnsVirtualNetworkLink.cs

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,25 @@ public class SetAzurePrivateDnsVirtualNetworkLink : PrivateDnsBaseCmdlet
4444
[ValidateNotNullOrEmpty]
4545
public string Name { get; set; }
4646

47-
[Parameter(Mandatory = false, HelpMessage = "Boolean that represents if registration is enabled on the link.")]
48-
[ValidateNotNullOrEmpty]
49-
public bool IsRegistrationEnabled { get; set; }
50-
51-
[Parameter(Mandatory = false, HelpMessage = "A hash table which represents resource tags.")]
52-
public Hashtable Tag { get; set; }
53-
5447
[Parameter(Mandatory = true, ValueFromPipeline = true, HelpMessage = "The virtual network link object to set.", ParameterSetName = ObjectParameterSetName)]
5548
[ValidateNotNullOrEmpty]
5649
public PSPrivateDnsLink Link { get; set; }
5750

58-
[Parameter(Mandatory = false, HelpMessage = "Do not use the ETag field of the RecordSet parameter for optimistic concurrency checks.", ParameterSetName = ObjectParameterSetName)]
59-
public SwitchParameter Overwrite { get; set; }
60-
61-
[Parameter( ParameterSetName = ResourceParameterSetName, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Private DNS Zone ResourceID.")]
51+
[Parameter(ParameterSetName = ResourceParameterSetName, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Private DNS Zone ResourceID.")]
6252
[ResourceIdCompleter("Microsoft.Network/privateDnsZones/virtualNetworkLinks")]
6353
[ValidateNotNullOrEmpty]
6454
public string ResourceId { get; set; }
6555

56+
[Parameter(Mandatory = false, HelpMessage = "Switch parameter that represents if registration is enabled on the link.")]
57+
[ValidateNotNullOrEmpty]
58+
public SwitchParameter EnableRegistration { get; set; }
59+
60+
[Parameter(Mandatory = false, HelpMessage = "A hash table which represents resource tags.")]
61+
public Hashtable Tag { get; set; }
62+
63+
[Parameter(Mandatory = false, HelpMessage = "Do not use the ETag field of the RecordSet parameter for optimistic concurrency checks.", ParameterSetName = ObjectParameterSetName)]
64+
public SwitchParameter Overwrite { get; set; }
65+
6666
public override void ExecuteCmdlet()
6767
{
6868

@@ -107,15 +107,10 @@ public override void ExecuteCmdlet()
107107
linkToUpdate.Tags = this.Tag;
108108
}
109109

110-
if (this.IsRegistrationEnabled || linkToUpdate.RegistrationEnabled)
110+
if (this.EnableRegistration.IsPresent)
111111
{
112112
linkToUpdate.RegistrationEnabled = true;
113113
}
114-
else
115-
{
116-
linkToUpdate.RegistrationEnabled = false;
117-
}
118-
119114

120115
ConfirmAction(
121116
ProjectResources.Progress_Modifying,

src/PrivateDns/PrivateDns/help/Get-AzPrivateDnsVirtualNetworkLink.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Get-AzPrivateDnsVirtualNetworkLink -ResourceGroupName <String> -ZoneName <String
2222
The **Get-AzPrivateDnsVirtualNetworkLink** cmdlet gets Private Domain Name System (DNS) virtual network links associated with a particular zone from the specified resource group.
2323
If you specify the *Name* parameter, a single **PSPrivateDnsLink** object is returned.
2424
If you do not specify the *Name* parameter, an array containing all of the links associated with the zone in the specified resource group is returned.
25-
You can use the **PrivateDnsLink** object to update the link.
25+
You can use the **PSPrivateDnsLink** object to update the link.
2626

2727
## EXAMPLES
2828

@@ -37,15 +37,14 @@ ResourceId : /subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/res
3737
etwork/privateDnsZones/myzone.com/virtualNetworkLinks/mylink
3838
ResourceGroupName : MyResourceGroup
3939
ZoneName : myzone.com
40-
VirtualNetworkId : /subscriptionsxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.N
40+
VirtualNetworkId : /subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.N
4141
etwork/virtualNetworks/myvirtualnetwork
4242
Location :
4343
Etag : "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
4444
Tags : {tag1}
4545
RegistrationEnabled : True
4646
VirtualNetworkLinkState : Completed
4747
ProvisioningState : Succeeded
48-
4948
```
5049

5150
This example gets the link mylink associated with the Private DNS zone named myzone.com from the specified resource group, and then stores it in the $Link variable.
@@ -59,7 +58,7 @@ ResourceId : /subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/res
5958
etwork/privateDnsZones/myzone.com/virtualNetworkLinks/mylink1
6059
ResourceGroupName : MyResourceGroup
6160
ZoneName : myzone.com
62-
VirtualNetworkId : /subscriptionsxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.N
61+
VirtualNetworkId : /subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.N
6362
etwork/virtualNetworks/myvirtualnetwork
6463
Location :
6564
Etag : "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
@@ -73,15 +72,14 @@ ResourceId : /subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/res
7372
etwork/privateDnsZones/myzone.com/virtualNetworkLinks/mylink2
7473
ResourceGroupName : MyResourceGroup
7574
ZoneName : myzone.com
76-
VirtualNetworkId : /subscriptionsxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.N
75+
VirtualNetworkId : /subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.N
7776
etwork/virtualNetworks/myvirtualnetwork
7877
Location :
7978
Etag : "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
8079
Tags : {tag1}
8180
RegistrationEnabled : True
8281
VirtualNetworkLinkState : Completed
8382
ProvisioningState : Succeeded
84-
8583
```
8684

8785
This example gets all of the virtual network links associated with the Private DNS zone "myzone.com" in the specified resource group, and then stores it in the $Links variable.

src/PrivateDns/PrivateDns/help/New-AzPrivateDnsVirtualNetworkLink.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ Creates a new private DNS virtual network link.
1616
### VirtualNetworkId (Default)
1717
```
1818
New-AzPrivateDnsVirtualNetworkLink -ResourceGroupName <String> -ZoneName <String> -Name <String>
19-
-VirtualNetworkId <String> -IsRegistrationEnabled <Boolean> [-Tag <Hashtable>]
20-
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
19+
-VirtualNetworkId <String> [-EnableRegistration] [-Tag <Hashtable>] [-DefaultProfile <IAzureContextContainer>]
20+
[-WhatIf] [-Confirm] [<CommonParameters>]
2121
```
2222

2323
### Object
2424
```
2525
New-AzPrivateDnsVirtualNetworkLink -ResourceGroupName <String> -ZoneName <String> -Name <String>
26-
-VirtualNetwork <VirtualNetwork> -IsRegistrationEnabled <Boolean> [-Tag <Hashtable>]
26+
-VirtualNetwork <VirtualNetwork> [-EnableRegistration] [-Tag <Hashtable>]
2727
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
2828
```
2929

@@ -38,7 +38,21 @@ whether the cmdlet prompts you for confirmation.
3838

3939
### Example 1: Create a Private DNS virtual network link
4040
```
41-
PS C:\>$Link = New-AzPrivateDnsVirtualNetworkLink -ZoneName "myzone.com" -ResourceGroupName "MyResourceGroup" -Name "mylink" -VirtualNetworkId "myvirtualnetwork" -IsRegistrationEnabled $true
41+
PS C:\>$Link = New-AzPrivateDnsVirtualNetworkLink -ZoneName "myzone.com" -ResourceGroupName "MyResourceGroup" -Name "mylink" -VirtualNetworkId "myvirtualnetwork" -EnableRegistration
42+
43+
Name : mylink
44+
ResourceId : /subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.N
45+
etwork/privateDnsZones/myzone.com/virtualNetworkLinks/mylink
46+
ResourceGroupName : MyResourceGroup
47+
ZoneName : myzone.com
48+
VirtualNetworkId : /subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.N
49+
etwork/virtualNetworks/myvirtualnetwork
50+
Location :
51+
Etag : "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
52+
Tags : {}
53+
RegistrationEnabled : True
54+
VirtualNetworkLinkState : Completed
55+
ProvisioningState : Succeeded
4256
```
4357

4458
This command creates a new virtual network link associated with the private DNS zone named myzone.com and virtual network "myvirtualnetwork" (which has already been created in the resource group) in the specified resource group, and then stores it in the $Link variable.
@@ -60,15 +74,15 @@ Accept pipeline input: False
6074
Accept wildcard characters: False
6175
```
6276
63-
### -IsRegistrationEnabled
64-
Boolean that represents if the link is registration enabled or not.
77+
### -EnableRegistration
78+
Switch parameter that represents if the link is registration enabled or not.
6579
6680
```yaml
67-
Type: System.Boolean
81+
Type: System.Management.Automation.SwitchParameter
6882
Parameter Sets: (All)
6983
Aliases:
7084

71-
Required: True
85+
Required: False
7286
Position: Named
7387
Default value: None
7488
Accept pipeline input: False

src/PrivateDns/PrivateDns/help/Remove-AzPrivateDnsVirtualNetworkLink.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Accept wildcard characters: False
6565
6666
### -Link
6767
Specifies the link to delete.
68-
The **PrivateDnsLink** object passed can also be passed via the pipeline.
68+
The **PSPrivateDnsLink** object passed can also be passed via the pipeline.
6969
Alternatively, you can specify the link to delete by using the *Name* *ZoneName* and *ResourceGroupName* parameters.
7070
7171
```yaml
@@ -132,7 +132,7 @@ Accept wildcard characters: False
132132
### -ResourceGroupName
133133
Specifies the name of the resource group that contains the link to remove.
134134
You must also specify the *ZoneName* and *Name* parameter.
135-
Alternatively, you can specify the DNS zone using a **PrivateDnsLink** object, passed via either the pipeline or the *Link* parameter.
135+
Alternatively, you can specify the DNS zone using a **PSPrivateDnsLink** object, passed via either the pipeline or the *Link* parameter.
136136
137137
```yaml
138138
Type: System.String

src/PrivateDns/PrivateDns/help/Set-AzPrivateDnsVirtualNetworkLink.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,19 @@ Sets/Updates a virtual network link associated with a private zone and a resourc
1616
### Fields (Default)
1717
```
1818
Set-AzPrivateDnsVirtualNetworkLink -ResourceGroupName <String> -ZoneName <String> -Name <String>
19-
[-IsRegistrationEnabled <Boolean>] [-Tag <Hashtable>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
20-
[-Confirm] [<CommonParameters>]
19+
[-EnableRegistration] [-Tag <Hashtable>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
20+
[<CommonParameters>]
2121
```
2222

2323
### Object
2424
```
25-
Set-AzPrivateDnsVirtualNetworkLink [-IsRegistrationEnabled <Boolean>] [-Tag <Hashtable>]
26-
-Link <PSPrivateDnsLink> [-Overwrite] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
27-
[<CommonParameters>]
25+
Set-AzPrivateDnsVirtualNetworkLink -Link <PSPrivateDnsLink> [-EnableRegistration] [-Tag <Hashtable>]
26+
[-Overwrite] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
2827
```
2928

3029
### ResourceId
3130
```
32-
Set-AzPrivateDnsVirtualNetworkLink [-IsRegistrationEnabled <Boolean>] [-Tag <Hashtable>] -ResourceId <String>
31+
Set-AzPrivateDnsVirtualNetworkLink -ResourceId <String> [-EnableRegistration] [-Tag <Hashtable>]
3332
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
3433
```
3534

@@ -43,22 +42,21 @@ When specifying the zone using a **PSPrivateDnsLink** object (passed via the pip
4342

4443
### Example 1: Set a link
4544
```
46-
PS C:\>Set-AzPrivateDnsVirtualNetworkLink -ZoneName "myzone.com" -ResourceGroupName "MyResourceGroup" -Name "mylink" -Tag @{} -IsRegistrationEnabled $true
45+
PS C:\>Set-AzPrivateDnsVirtualNetworkLink -ZoneName "myzone.com" -ResourceGroupName "MyResourceGroup" -Name "mylink" -Tag @{} -EnableRegistration
4746
4847
Name : mylink
4948
ResourceId : /subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.N
5049
etwork/privateDnsZones/myzone.com/virtualNetworkLinks/mylink
5150
ResourceGroupName : MyResourceGroup
5251
ZoneName : myzone.com
53-
VirtualNetworkId : /subscriptionsxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.N
52+
VirtualNetworkId : /subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.N
5453
etwork/virtualNetworks/myvirtualnetwork
5554
Location :
5655
Etag : "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
5756
Tags : {}
5857
RegistrationEnabled : True
5958
VirtualNetworkLinkState : Completed
6059
ProvisioningState : Succeeded
61-
6260
```
6361

6462
This command sets IsRegistrationEnabled to True for the link named mylink, linked to zone named myzone.com from the resource group named MyResourceGroup.
@@ -80,11 +78,11 @@ Accept pipeline input: False
8078
Accept wildcard characters: False
8179
```
8280
83-
### -IsRegistrationEnabled
84-
Boolean that represents if registration is enabled on the link.
81+
### -EnableRegistration
82+
Switch parameter that represents if registration is enabled on the link.
8583
8684
```yaml
87-
Type: System.Boolean
85+
Type: System.Management.Automation.SwitchParameter
8886
Parameter Sets: (All)
8987
Aliases:
9088

@@ -97,7 +95,7 @@ Accept wildcard characters: False
9795
9896
### -Link
9997
Specifies the virtual network link to delete.
100-
The **PrivateDnsLink** object passed can also be passed via the pipeline.
98+
The **PSPrivateDnsLink** object passed can also be passed via the pipeline.
10199
Alternatively, you can specify the link to delete by using the *Name* *ZoneName* and *ResourceGroupName* parameters.
102100
103101
```yaml
@@ -130,7 +128,7 @@ Accept wildcard characters: False
130128
```
131129
132130
### -Overwrite
133-
When specifying the link using a **PrivateDnsLink** object (passed via the pipeline or *Link* parameter), the link is not deleted if it has been changed in Azure DNS since the local **PrivateDnsLink** object was retrieved.
131+
When specifying the link using a **PSPrivateDnsLink** object (passed via the pipeline or *Link* parameter), the link is not deleted if it has been changed in Azure DNS since the local **PSPrivateDnsLink** object was retrieved.
134132
This provides protection for concurrent link changes.
135133
This can be suppressed using the *Overwrite* parameter, which deletes the link regardless of concurrent changes.
136134
@@ -149,7 +147,7 @@ Accept wildcard characters: False
149147
### -ResourceGroupName
150148
Specifies the name of the resource group that contains the link to remove.
151149
You must also specify the *ZoneName* and *Name* parameter.
152-
Alternatively, you can specify the virtual network link using a **PrivateDnsLink** object, passed via either the pipeline or the *Link* parameter.
150+
Alternatively, you can specify the virtual network link using a **PSPrivateDnsLink** object, passed via either the pipeline or the *Link* parameter.
153151
154152
```yaml
155153
Type: System.String

0 commit comments

Comments
 (0)