Azure / Azure/azure-powershell
[Doc] incorrect examples of New-AzADDomainService
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 54
Description
### Type of issue
Code doesn't work
### Feedback
Found errors in the examples.
Type | Cmdlet | Example | Line | RuleName | Description | Extent | Remediation
-- | -- | -- | -- | -- | -- | -- | --
| | New-AzADDomainService | 2 | 2 | Invalid_Cmdlet | New-AzADDomainServiceReplicaSet is not a valid command name. | New-AzADDomainServiceReplicaSet -Location westus -SubnetId /subscriptions/********----******/resourceGroups/yishitest/providers/Microsoft.Network/virtualNetworks/aadds-vnet/subnets/default\|Check the spell of New-AzADDomainServiceReplicaSet. |
| | New-AzADDomainService | 2 | 7 | Invalid_Parameter_Name | New-AzADDomainService -LdapSettingPfxCertificate is not a valid parameter name. | -LdapSettingPfxCertificate | Check validity of the parameter -LdapSettingPfxCertificate.
### Page URL
https://learn.microsoft.com/en-us/powershell/module/az.addomainservices/new-azaddomainservice?view=azps-11.0.0
### Content source URL
https://github.com/Azure/azure-powershell/blob/main/src/ADDomainServices/help/New-AzADDomainService.md
### Author
_No response_
### Document Id
45a7f663-ef79-2f32-8af1-760fe7ae5207
Contributor guide
Research direction
Open src/ADDomainServices/help/New-AzADDomainService.md from the content source URL and inspect example 2 for the reported command and parameter errors. Update the example so its cmdlet and parameter names are valid, then verify that the documented New-AzADDomainService example matches the current PowerShell command syntax.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell
- Domain
- cloud, documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100