Azure / Azure/azure-cli

Azure bastion rdp optionnal parameters from the docs are required

Open
#25,227 3 comments 0 reactions 0 assignees View on GitHub
act-quality-productivity-squad Auto-Assign customer-reported Network Network - Bastion Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62

**Related command**

az network bastion rdp --target-resource-id
**Describe the bug**

[the doc](https://learn.microsoft.com/en-us/cli/azure/network/bastion?view=azure-cli-latest#az-network-bastion-rdp) says that only target-resource-id is required , but runing bellow command
` az network bastion rdp --target-resource-id "" `
genereates this error : **(--resource-group --name | --ids) are required**
My version:
` az version
{
"azure-cli": "2.44.1",
"azure-cli-core": "2.44.1",
"azure-cli-telemetry": "1.0.8",
"extensions": {}
}`

**To Reproduce**

run the command above
**Expected behavior**

the optional parameters should not be required
**Environment summary**

last version installed with `az upgrade` from powershell terminal in Windows 11
**Additional context**

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.