Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.26k stars 3.86k forks source link

RuleId referenced in text, but not in command parameters - this is confusing #26125

Open rogersillito opened 2 months ago

rogersillito commented 2 months ago

Type of issue

Other (describe below)

Feedback

To use the cmdlet, use the ResourceGroupName, ServerName, and DatabaseName parameters to identify the database, and the RuleId parameter to specify which rule this cmdlet returns. If you do not provide RuleId, all the data masking rules for that Azure SQL database are returned.

but RuleId appears neither in the command/parameter description nor in the examples at any point.

Page URL

https://learn.microsoft.com/en-us/powershell/module/az.sql/get-azsqldatabasedatamaskingrule?view=azps-12.3.0

Content source URL

https://github.com/Azure/azure-powershell/blob/main/src/Sql/Sql/help/Get-AzSqlDatabaseDataMaskingRule.md

Author

@mikefrobbins

Document Id

00fb6f5c-c99c-59b2-72f4-bbe66ee246bd

isra-fel commented 1 month ago

It seems the RuleId parameter was never supported and the cmdlet always returns a list of rules (source code).

I'll loop in Sql team to either udpate the doc or support getting rule by id.

microsoft-github-policy-service[bot] commented 1 month ago

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