Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.24k stars 3.84k forks source link

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

Open brwilkinson opened 2 years ago

brwilkinson commented 2 years ago

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

ghost commented 2 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @bastionsuppgithub.

Issue Details
### 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 ```powershell az network bastion rdp --name "" --resource-group "" --target-resource-id "" ``` 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. ```powershell 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](https://user-images.githubusercontent.com/3605266/155233681-27b30bd2-5681-4627-88b4-147798c2d198.png) ### 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
Author: brwilkinson
Assignees: -
Labels: `feature-request`, `Service Attention`, `Network - Bastion`
Milestone: -
neilpeterson commented 2 years ago

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 commented 2 weeks ago

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?