Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - FrontDoor")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.13.1")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.13.1")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.0.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("2.0.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ function New-AzFrontDoorWafManagedRuleOverrideObject {
$Exclusion,
[Parameter(Mandatory, HelpMessage="Identifier for the managed rule.")]
[string]
$RuleId
$RuleId,
[Parameter(HelpMessage="Describes the override sensitivity to be applied when rule matches.")]
[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Low", "Medium", "High")]
[string]
$Sensitivity
)

process {
Expand All @@ -62,6 +66,9 @@ function New-AzFrontDoorWafManagedRuleOverrideObject {
if ($PSBoundParameters.ContainsKey('RuleId')) {
$Object.RuleId = $RuleId
}
if ($PSBoundParameters.ContainsKey('Sensitivity')) {
$Object.Sensitivity = $Sensitivity
}
return $Object
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.FrontDoor
Module Guid: de841666-09d0-4c1e-a6ad-b3112699a6c2
Module Guid: da373e2c-9a59-49f0-ab41-9d25ef4d1519
Download Help Link: https://learn.microsoft.com/powershell/module/az.frontdoor
Help Version: 1.0.0.0
Locale: en-US
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Create an in-memory object for ManagedRuleOverride.

```
New-AzFrontDoorWafManagedRuleOverrideObject -RuleId <String> [-Action <String>] [-Disabled]
[-Exclusion <IManagedRuleExclusion[]>] [<CommonParameters>]
[-Exclusion <IManagedRuleExclusion[]>] [-Sensitivity <String>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -98,6 +98,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -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
```
Comment on lines +101 to +114
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.

### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

Expand Down
2 changes: 1 addition & 1 deletion src/FrontDoor/FrontDoor.Autorest/generate-info.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"generate_Id": "d1340c55-8f29-452b-8617-778ef1c3ce8d"
"generate_Id": "b5700a14-fde3-4f4d-be68-df4d05d0b5ff"
}
28 changes: 14 additions & 14 deletions src/FrontDoor/FrontDoor.sln
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestF
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "FrontDoor.Autorest", "FrontDoor.Autorest", "{CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{B0D8665E-838F-41FB-AC8D-FD727F5F0E27}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{7DCFDFCA-7CA9-4C1D-9A16-CD86A3E86628}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -131,18 +131,18 @@ Global
{CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x64.Build.0 = Release|Any CPU
{CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.ActiveCfg = Release|Any CPU
{CEE04FC4-EA9E-49F5-8E65-1BF927763971}.Release|x86.Build.0 = Release|Any CPU
{B0D8665E-838F-41FB-AC8D-FD727F5F0E27}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B0D8665E-838F-41FB-AC8D-FD727F5F0E27}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B0D8665E-838F-41FB-AC8D-FD727F5F0E27}.Debug|x64.ActiveCfg = Debug|Any CPU
{B0D8665E-838F-41FB-AC8D-FD727F5F0E27}.Debug|x64.Build.0 = Debug|Any CPU
{B0D8665E-838F-41FB-AC8D-FD727F5F0E27}.Debug|x86.ActiveCfg = Debug|Any CPU
{B0D8665E-838F-41FB-AC8D-FD727F5F0E27}.Debug|x86.Build.0 = Debug|Any CPU
{B0D8665E-838F-41FB-AC8D-FD727F5F0E27}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B0D8665E-838F-41FB-AC8D-FD727F5F0E27}.Release|Any CPU.Build.0 = Release|Any CPU
{B0D8665E-838F-41FB-AC8D-FD727F5F0E27}.Release|x64.ActiveCfg = Release|Any CPU
{B0D8665E-838F-41FB-AC8D-FD727F5F0E27}.Release|x64.Build.0 = Release|Any CPU
{B0D8665E-838F-41FB-AC8D-FD727F5F0E27}.Release|x86.ActiveCfg = Release|Any CPU
{B0D8665E-838F-41FB-AC8D-FD727F5F0E27}.Release|x86.Build.0 = Release|Any CPU
{7DCFDFCA-7CA9-4C1D-9A16-CD86A3E86628}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7DCFDFCA-7CA9-4C1D-9A16-CD86A3E86628}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7DCFDFCA-7CA9-4C1D-9A16-CD86A3E86628}.Debug|x64.ActiveCfg = Debug|Any CPU
{7DCFDFCA-7CA9-4C1D-9A16-CD86A3E86628}.Debug|x64.Build.0 = Debug|Any CPU
{7DCFDFCA-7CA9-4C1D-9A16-CD86A3E86628}.Debug|x86.ActiveCfg = Debug|Any CPU
{7DCFDFCA-7CA9-4C1D-9A16-CD86A3E86628}.Debug|x86.Build.0 = Debug|Any CPU
{7DCFDFCA-7CA9-4C1D-9A16-CD86A3E86628}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7DCFDFCA-7CA9-4C1D-9A16-CD86A3E86628}.Release|Any CPU.Build.0 = Release|Any CPU
{7DCFDFCA-7CA9-4C1D-9A16-CD86A3E86628}.Release|x64.ActiveCfg = Release|Any CPU
{7DCFDFCA-7CA9-4C1D-9A16-CD86A3E86628}.Release|x64.Build.0 = Release|Any CPU
{7DCFDFCA-7CA9-4C1D-9A16-CD86A3E86628}.Release|x86.ActiveCfg = Release|Any CPU
{7DCFDFCA-7CA9-4C1D-9A16-CD86A3E86628}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -154,7 +154,7 @@ Global
{4A06E6FB-D5E9-48DF-9BFB-867FE814F47E} = {52103A11-029D-492B-87C7-22D39EF55958}
{671E6476-CDED-43A3-AB46-1338DAB61409} = {52103A11-029D-492B-87C7-22D39EF55958}
{31599FB7-7929-4E92-834F-A23C603A9116} = {52103A11-029D-492B-87C7-22D39EF55958}
{B0D8665E-838F-41FB-AC8D-FD727F5F0E27} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}
{7DCFDFCA-7CA9-4C1D-9A16-CD86A3E86628} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25}
Expand Down
10 changes: 5 additions & 5 deletions src/FrontDoor/FrontDoor/Az.FrontDoor.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 11/11/2025
# Generated on: 2025/12/16
#

@{
Expand Down Expand Up @@ -59,10 +59,10 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.3.1'; })
RequiredAssemblies = 'FrontDoor.Autorest/bin/Az.FrontDoor.private.dll'

# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()
ScriptsToProcess = @()

# Type files (.ps1xml) to be loaded when importing this module
# TypesToProcess = @()
TypesToProcess = @()

# Format files (.ps1xml) to be loaded when importing this module
FormatsToProcess = 'FrontDoor.Autorest/Az.FrontDoor.format.ps1xml'
Expand Down Expand Up @@ -129,7 +129,7 @@ PrivateData = @{
PSData = @{

# Tags applied to this module. These help with module discovery in online galleries.
Tags = 'Azure','ResourceManager','ARM','FrontDoor'
Tags = 'Azure', 'ResourceManager', 'ARM', 'FrontDoor'

# A URL to the license for this module.
LicenseUri = 'https://aka.ms/azps-license'
Expand All @@ -156,7 +156,7 @@ PrivateData = @{

} # 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.

# HelpInfo URI of this module
# HelpInfoURI = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ Create an in-memory object for ManagedRuleOverride.

```
New-AzFrontDoorWafManagedRuleOverrideObject -RuleId <String> [-Action <String>] [-Disabled]
[-Exclusion <IManagedRuleExclusion[]>] [<CommonParameters>]
[-Exclusion <IManagedRuleExclusion[]>] [-Sensitivity <String>]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -98,6 +99,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -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
```
Comment on lines +102 to +115
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.

### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

Expand Down
Loading