azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Cmdlet reference doc - New-AzDataCollectionEndpoint - Required parameter conflict

Open Get-Ryan opened this issue 1 year ago • 0 comments

Type of issue

Other (describe below)

Feedback

Under the Parameters heading, the parameter NetworkAclsPublicNetworkAccess is listed as not being required. The Syntax area also doesn't indicate it is required. However, both examples shown include a value for that parameter. And when trying to use the cmdlet without that parameter resulted in an error message "Invalid resource payload: 'properties' are missing". Running the same set of parameters with the addition of "Enabled" for the NetworkAclsPublicNetworkAccess parameter resulted in success.

This would indicate the NetworkAclsPublicNetworkAccess parameter is required. The Required field in it's parameter table should be updated to True.

Page URL

https://learn.microsoft.com/en-us/powershell/module/az.monitor/new-azdatacollectionendpoint?view=azps-11.5.0

Content source URL

https://github.com/Azure/azure-powershell/blob/main/src/Monitor/Monitor/help/New-AzDataCollectionEndpoint.md

Author

@mikefrobbins

Document Id

02f95826-d824-38cc-7bff-9b2592ce7fed

Get-Ryan avatar Apr 29 '24 18:04 Get-Ryan