Skip to content

[Network January] Disconnect VPN connections #11031

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Feb 11, 2020
Merged

[Network January] Disconnect VPN connections #11031

merged 12 commits into from
Feb 11, 2020

Conversation

ninweninwe
Copy link
Contributor

Description

Disconnect vpn connection for Virtual network gateway and P2S Vpn gateway.

Azure/azure-powershell-cmdlet-review-pr#414

Checklist

  • I have read the Submitting Changes section of CONTRIBUTING.md
  • The title of the PR is clear and informative
  • The appropriate ChangeLog.md file(s) has been updated:
    • For any service, the ChangeLog.md file can be found at src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
    • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header -- no new version header should be added
  • The PR does not introduce breaking changes
  • If applicable, the changes made in the PR have proper test coverage
  • For public API changes to cmdlets:
    • a cmdlet design review was approved for the changes in this repository (Microsoft internal only)
    • the markdown help files have been regenerated using the commands listed here

@ninweninwe ninweninwe changed the title Network december Network Janury Feb 4, 2020
@ninweninwe ninweninwe changed the title Network Janury Network January Feb 4, 2020
@ninweninwe ninweninwe changed the title Network January [Network January] Disconnect VPN connections Feb 4, 2020
@anton-evseev
Copy link
Contributor

/azp run

@ninweninwe ninweninwe merged commit a5af35a into Azure:network-january Feb 11, 2020
@VeryEarly VeryEarly requested review from wyunchi-ms and removed request for wyunchi-ms February 12, 2020 14:15

[Parameter(
ParameterSetName = CortexParameterSetNames.ByP2SVpnGatewayResourceId,
Mandatory = false,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is true in the help file, why is false here

[Alias("P2SVpnGateway")]
[Parameter(
ParameterSetName = CortexParameterSetNames.ByP2SVpnGatewayObject,
Mandatory = false,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is true in the help file, why is false here

ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "P2SVpnGatewayVpnConnection",
DefaultParameterSetName = CortexParameterSetNames.ByP2SVpnGatewayName,
SupportsShouldProcess = true),
OutputType(typeof(PSP2SVpnGateway))]
Copy link
Collaborator

@VeryEarly VeryEarly Feb 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't seem to match the help file

namespace Microsoft.Azure.Commands.Network.VirtualNetworkGateway
{
[Cmdlet("Disconnect", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VirtualNetworkGatewayVpnConnection", DefaultParameterSetName = "ByFactoryName", SupportsShouldProcess = true), OutputType(typeof(PSVirtualNetworkGateway))]
public class DisconnectVirtualNetworkGatewayVpnConnectionCommand : VirtualNetworkGatewayBaseCmdlet
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem to match the help file


[Alias("VirtualNetworkGatewayId")]
[Parameter(
Mandatory = false,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is true in the help file, why is false here


[Alias("VirtualNetworkGateway")]
[Parameter(
Mandatory = false,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is true in the help file, why is false here

@VeryEarly
Copy link
Collaborator

[Parameter(Mandatory = false)]
public SwitchParameter PassThru { get; set; }

are missing for both cmdlets

dingmeng-xue pushed a commit to dingmeng-xue/azure-powershell that referenced this pull request Mar 29, 2020
[Network January] Disconnect VPN connections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants