Skip to content

Conversation

@Ptnan7
Copy link
Member

@Ptnan7 Ptnan7 commented Dec 15, 2025

Description

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

Copilot AI review requested due to automatic review settings December 15, 2025 22:53
@azure-client-tools-bot-prd
Copy link

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new optional Sensitivity parameter to the New-AzFrontDoorWafManagedRuleOverrideObject cmdlet as part of the FrontDoor module version 2.0.0 release. The parameter allows users to specify sensitivity levels (Low, Medium, High) when creating managed rule override objects for WAF policies. This change aligns with the module's migration to AutoRest PowerShell V4 and the swagger version bump to 2025-10-01.

Key changes:

  • Added -Sensitivity parameter with PSArgumentCompleter for values "Low", "Medium", "High" to the cmdlet
  • Updated help documentation for both the Autorest and main module locations
  • Version bumped to 2.0.0 as part of the larger module update

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/FrontDoor/FrontDoor.Autorest/custom/New-AzFrontDoorWafManagedRuleOverrideObject.ps1 Added Sensitivity parameter with argument completer and conditional assignment logic
src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafManagedRuleOverrideObject.md Added Sensitivity parameter documentation in the Autorest module docs
src/FrontDoor/FrontDoor/help/New-AzFrontDoorWafManagedRuleOverrideObject.md Added Sensitivity parameter documentation in the main module help
src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 Updated module manifest with version 2.0.0 and generation date; includes minor formatting changes
src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs Updated assembly version from 1.13.1 to 2.0.0
src/FrontDoor/FrontDoor.sln Updated project GUID for the regenerated AutoRest project
src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md Updated module GUID for the regenerated module
src/FrontDoor/FrontDoor.Autorest/generate-info.json Updated generate ID reflecting the regeneration

Comment on lines +101 to +114
### -Sensitivity
Describes the override sensitivity to be applied when rule matches.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
Copy link

Copilot AI Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The help documentation for the new Sensitivity parameter should include information about the valid values (Low, Medium, High) that are accepted. While the PSArgumentCompleter attribute in the code specifies these values, the documentation should explicitly mention them to help users understand what values they can use.

Copilot uses AI. Check for mistakes.
Comment on lines +102 to +115
### -Sensitivity
Describes the override sensitivity to be applied when rule matches.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
Copy link

Copilot AI Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The help documentation for the new Sensitivity parameter should include information about the valid values (Low, Medium, High) that are accepted. While the PSArgumentCompleter attribute in the code specifies these values, the documentation should explicitly mention them to help users understand what values they can use.

Copilot uses AI. Check for mistakes.
} # End of PSData hashtable

} # End of PrivateData hashtable
} # End of PrivateData hashtable
Copy link

Copilot AI Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file contains unrelated formatting changes (ScriptsToProcess, TypesToProcess being uncommented, Tags spacing, and closing brace indentation) that are not related to the Sensitivity parameter addition. These changes should either be removed or explained in a separate commit to keep the PR focused on its stated purpose.

Suggested change
} # End of PrivateData hashtable
} # End of PrivateData hashtable

Copilot uses AI. Check for mistakes.
@isra-fel
Copy link
Member

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Contributor

@wyunchi-ms wyunchi-ms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the src/FrontDoor/FrontDoor/ChangeLog.md and put the logs just under the section Upcoming Release and don't bump up any version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants