Skip to content

[Feature]: Azure Bastion Native Client Support in PowerShell #17228

Open
@brwilkinson

Description

@brwilkinson

Description of the new feature

AzureCLI has an option to connect to a VM on port 3389 or 22 for RDP or SSH, using the 'Native Client'.

https://docs.microsoft.com/en-us/azure/bastion/connect-native-client-windows

az network bastion rdp --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-resource-id "<VMResourceId>"

We have a few Bastion Network Cmdlets. These would also need updates to allow for the extra settings on the bastion that are in preview at the moment.

gcm -module az.network -Name *bastion*

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Cmdlet          Get-AzBastion                                      4.14.0     az.network
Cmdlet          New-AzBastion                                      4.14.0     az.network
Cmdlet          Remove-AzBastion                                   4.14.0     az.network
Cmdlet          Set-AzBastion                                      4.14.0     az.network

image

Proposed implementation details (optional)

Add support, parity with az cli.

https://docs.microsoft.com/en-us/rest/api/virtualnetwork/bastion-hosts/create-or-update#request-body

Activity

added
feature-requestThis issue requires a new behavior in the product in order be resolved.
needs-triageThis is a new issue that needs to be triaged to the appropriate team.
on Feb 22, 2022
ghost removed
needs-triageThis is a new issue that needs to be triaged to the appropriate team.
on Feb 22, 2022
ghost
neilpeterson

neilpeterson commented on May 4, 2022

@neilpeterson
Member

Following up on this one. My team would like to use Bastion native client but cannot use Azure CLI in all environments. Having this experience native to AZ CLI would be a huge help for us.

OranguTech

OranguTech commented on Oct 4, 2024

@OranguTech

Ping on status on this? (2 years after the last update)

I just ran into this issue and it looks like the AzCLI is currently a dependency for this one single feature?

OranguTech

OranguTech commented on May 13, 2025

@OranguTech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Network - BastionService AttentionThis issue is responsible by Azure service team.feature-requestThis issue requires a new behavior in the product in order be resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      [Feature]: Azure Bastion Native Client Support in PowerShell · Issue #17228 · Azure/azure-powershell