Azure / Azure/azure-powershell

[Feature]: For "New-AzVM", please add a parameter which can disable NSG which allows 22/3389.

Open
#16,890 11 comments 0 reactions 1 assignee Assigned to @TravisCragg-MSFT View on GitHub
act-observability-squad Compute - VM feature-request Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
3d 14h
Merged PRs (30d)
54

Description

### Description of the new feature

About feature parity of CLI.

"az vm create" supports a parameter for disabling NSG which allows 22/3389.

https://docs.microsoft.com/en-us/cli/azure/vm?view=azure-cli-latest ->

"--nsg-rule none"

For "New-AzVM", please add a parameter which can disable NSG which allows 22/3389.

Currently, people have to either

1. create another high priority NSG which block the port.
Or

2. Delete the NSG after VM creation,

, which is not convenient.

Thanks.

### Proposed implementation details (optional)

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.