-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Az Eventgrid] Add new features for 2021-12-31 release #17608
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please provide help markdown for new added cmdlets. Seems like the PR is in draft status. I set it as draft. Please feel free to set this PR as ready to review status
src/EventGrid/EventGrid/SystemTopic/NewAzureEventGridSystemTopic.cs
Outdated
Show resolved
Hide resolved
src/EventGrid/EventGrid/SystemTopic/NewAzureEventGridSystemTopic.cs
Outdated
Show resolved
Hide resolved
src/EventGrid/EventGrid/SystemTopic/NewAzureEventGridSystemTopic.cs
Outdated
Show resolved
Hide resolved
public string ResourceGroupName { get; set; } | ||
|
||
[Parameter(Mandatory = true, | ||
ValueFromPipelineByPropertyName = true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need a -Force parameter for remove cmdlet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please change parameter form to singularity
- Please remove validate set for switch parameters.
- please add -Force for remove-* cmdlet
- Please keep the implementation align with design.
public class GetAzureRmEventGridSystemTopic : AzureEventGridCmdletBase | ||
{ | ||
[Parameter( | ||
Mandatory = false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why all parameters are optional? As we discussed before, in certain parameter set, some parameters should be required. Please confirm that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is for getting system topics for a given subscription id. SubscriptionId is doesn't need to be separately passed as we get that from context.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check all MDs and fill placeholders.
# Get-AzEventGridSystemTopic | ||
|
||
## SYNOPSIS | ||
{{ Fill in the Synopsis }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fill all placeholders.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
``` | ||
|
||
## DESCRIPTION | ||
{{ Fill in the Description }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add description for cmdlets.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
## EXAMPLES | ||
|
||
### Example 1 | ||
```powershell |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A good example should be a good start for customer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
|
||
## NOTES | ||
|
||
## RELATED LINKS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's nice to have if we can provide relate links.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
For our pipeline checks, it said: "Az.EventGrid","Microsoft.Azure.Commands.EventGrid.NewAzureEventGridSystemTopic","New-AzEventGridSystemTopic","1","8420","Parameter set 'SystemTopicNameParameterSet' of cmdlet 'New-AzEventGridSystemTopic' contains at least one parameter with a position larger than four, which is discouraged.","Limit the number of positional parameters in a single parameter set to four or fewer." Please have a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like you missed one comment: https://github.com/Azure/azure-powershell/pull/17608/files#r834912423, need a -Force parameter for remove cmdlet
[Cmdlet( | ||
"Get", | ||
ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "EventGridFullUrlForSystemTopicEventSubscription", | ||
SupportsShouldProcess = true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get-* cmdlet should not support should process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
@@ -197,4 +196,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable | |||
## NOTES | |||
|
|||
## RELATED LINKS | |||
|
|||
https://docs.microsoft.com/en-us/azure/event-grid/system-topics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://docs.microsoft.com/en-us/azure/event-grid/system-topics |
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### -PassThru | ||
{{ Fill PassThru Description }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fill this description
@@ -367,4 +367,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable | |||
## NOTES | |||
|
|||
## RELATED LINKS | |||
|
|||
https://docs.microsoft.com/en-us/azure/event-grid/system-topics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://docs.microsoft.com/en-us/azure/event-grid/system-topics |
``` | ||
|
||
## DESCRIPTION | ||
{{ Fill in the Description }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please have a look
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/azp run azure-powershell - security-tools |
Azure Pipelines successfully started running 1 pipeline(s). |
Description
New features as part of 2021-12-31 release.
Design :
https://github.com/Azure/azure-powershell-cmdlet-review-pr/issues/1115
Checklist
CONTRIBUTING.md
ChangeLog.md
file(s) has been updated:ChangeLog.md
file can be found atsrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
## Upcoming Release
header -- no new version header should be added