Remove-MgBetaNetworkAccessConnectivityRemoteNetworkDeviceLink

Removes the link between the branch or remote network and the CPE device, effectively removing the connection and associated configuration between them.

Syntax

Remove-MgBetaNetworkAccessConnectivityRemoteNetworkDeviceLink
      -DeviceLinkId <String>
      -RemoteNetworkId <String>
      [-IfMatch <String>]
      [-ResponseHeadersVariable <String>]
      [-Headers <IDictionary>]
      [-PassThru]
      [-ProgressAction <ActionPreference>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-MgBetaNetworkAccessConnectivityRemoteNetworkDeviceLink
      -InputObject <INetworkAccessIdentity>
      [-IfMatch <String>]
      [-ResponseHeadersVariable <String>]
      [-Headers <IDictionary>]
      [-PassThru]
      [-ProgressAction <ActionPreference>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Removes the link between the branch or remote network and the CPE device, effectively removing the connection and associated configuration between them.

Permissions

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) NetworkAccess.ReadWrite.All Not available.
Delegated (personal Microsoft account) Not supported. Not supported.
Application NetworkAccess.ReadWrite.All Not available.

Examples

Example 1: Code snippet

Import-Module Microsoft.Graph.Beta.NetworkAccess

Remove-MgBetaNetworkAccessConnectivityRemoteNetworkDeviceLink -RemoteNetworkId $remoteNetworkId -DeviceLinkId $deviceLinkId

This example shows how to use the Remove-MgBetaNetworkAccessConnectivityRemoteNetworkDeviceLink Cmdlet.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DeviceLinkId

The unique identifier of deviceLink

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Headers

Optional headers that will be added to the request.

Type:IDictionary
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-IfMatch

ETag

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

Type:INetworkAccessIdentity
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-PassThru

Returns true when the command succeeds

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ProgressAction

{{ Fill ProgressAction Description }}

Type:ActionPreference
Aliases:proga
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RemoteNetworkId

The unique identifier of remoteNetwork

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResponseHeadersVariable

Optional Response Headers Variable.

Type:String
Aliases:RHV
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Graph.Beta.PowerShell.Models.INetworkAccessIdentity

System.Collections.IDictionary

Outputs

System.Boolean

Notes

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

INPUTOBJECT <INetworkAccessIdentity>: Identity Parameter

  • [ActivityPivotDateTime <DateTime?>]: Usage: activityPivotDateTime={activityPivotDateTime}
  • [AggregatedBy <String>]: Usage: aggregatedBy='{aggregatedBy}'
  • [AlertId <String>]: The unique identifier of alert
  • [BranchSiteId <String>]: The unique identifier of branchSite
  • [ConditionalAccessPolicyId <String>]: The unique identifier of conditionalAccessPolicy
  • [ConnectivityConfigurationLinkId <String>]: The unique identifier of connectivityConfigurationLink
  • [DeviceLinkId <String>]: The unique identifier of deviceLink
  • [DiscoveryPivotDateTime <DateTime?>]: Usage: discoveryPivotDateTime={discoveryPivotDateTime}
  • [EndDateTime <DateTime?>]: Usage: endDateTime={endDateTime}
  • [FilteringPolicyId <String>]: The unique identifier of filteringPolicy
  • [FilteringProfileId <String>]: The unique identifier of filteringProfile
  • [ForwardingPolicyId <String>]: The unique identifier of forwardingPolicy
  • [ForwardingProfileId <String>]: The unique identifier of forwardingProfile
  • [NetworkAccessTrafficTransactionId <String>]: The unique identifier of networkAccessTraffic
  • [PolicyLinkId <String>]: The unique identifier of policyLink
  • [PolicyRuleId <String>]: The unique identifier of policyRule
  • [RemoteNetworkHealthEventId <String>]: The unique identifier of remoteNetworkHealthEvent
  • [RemoteNetworkId <String>]: The unique identifier of remoteNetwork
  • [StartDateTime <DateTime?>]: Usage: startDateTime={startDateTime}