Azure / Azure/azure-powershell
Incorrect example [Example 2: Update Bypass property of NetworkRule]
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Type of issue
Code doesn't work
### Feedback
Hi,
I don't think the code example for Example 2 is correct.
```powershell
Update-AzCognitiveServicesAccountNetworkRuleSet -ResourceGroupName "myResourceGroup" -Name "myaccount"
```
I tried it anyway, and received the following error message:
`Update-AzCognitiveServicesAccountNetworkRuleSet: Request must specify an account NetworkRule property to update. (Parameter 'IpRules, VirtualNetworkRules, DefaultAction')`
### Page URL
https://learn.microsoft.com/en-us/powershell/module/az.cognitiveservices/update-azcognitiveservicesaccountnetworkruleset?view=azps-12.1.0
### Content source URL
https://github.com/Azure/azure-powershell/blob/main/src/CognitiveServices/CognitiveServices/help/Update-AzCognitiveServicesAccountNetworkRuleSet.md
### Author
@mikefrobbins
### Document Id
66984f0b-b5a5-c9ff-af13-e62fb514f072
Contributor guide
Assessment
This issue has not been assessed yet.