Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Create an in-memory object for BackendPoolsSettings.
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.BackendPoolsSettings
.Link
https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorbackendpoolssettingsobject
https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorbackendpoolssettingobject
#>
function New-AzFrontDoorBackendPoolsSettingObject {
[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.ModelCmdletAttribute()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,30 @@ function New-AzFrontDoorRoutingRuleObject {
if ($PSBoundParameters.ContainsKey('CacheDuration')) {
$CacheConfiguration.CacheDuration = $CacheDuration
}
$CacheConfiguration.DynamicCompression = $PSBoundParameters.ContainsKey('DynamicCompression')? $DynamicCompression : 'Enabled'
if ($PSBoundParameters.ContainsKey('DynamicCompression')) {
$CacheConfiguration.DynamicCompression = $DynamicCompression
} else {
$CacheConfiguration.DynamicCompression = 'Enabled'
}
if ($PSBoundParameters.ContainsKey('QueryParameter')) {
$CacheConfiguration.QueryParameter = $QueryParameter
}
$CacheConfiguration.QueryParameterStripDirective = $PSBoundParameters.ContainsKey('QueryParameterStripDirective')? $QueryParameterStripDirective : 'StripAll'
if ($PSBoundParameters.ContainsKey('QueryParameterStripDirective')) {
$CacheConfiguration.QueryParameterStripDirective = $QueryParameterStripDirective
} else {
$CacheConfiguration.QueryParameterStripDirective = 'StripAll'
}
$ForwardingConfiguration.CacheConfiguration = $CacheConfiguration
}

if ($PSBoundParameters.ContainsKey('CustomForwardingPath')) {
$ForwardingConfiguration.CustomForwardingPath = $CustomForwardingPath
}
$ForwardingConfiguration.ForwardingProtocol = $PSBoundParameters.ContainsKey('ForwardingProtocol')? $ForwardingProtocol : 'MatchRequest'
if ($PSBoundParameters.ContainsKey('ForwardingProtocol')) {
$ForwardingConfiguration.ForwardingProtocol = $ForwardingProtocol
} else {
$ForwardingConfiguration.ForwardingProtocol = 'MatchRequest'
}
$Object.RouteConfiguration = $ForwardingConfiguration
}
"ByFieldsWithRedirectParameterSet" {
Expand All @@ -160,13 +172,29 @@ function New-AzFrontDoorRoutingRuleObject {
if ($PSBoundParameters.ContainsKey('CustomFragment')) {
$RedirectConfiguration.CustomFragment = $CustomFragment
}
$RedirectConfiguration.CustomHost = $PSBoundParameters.ContainsKey('CustomHost')? $CustomHost : ''
$RedirectConfiguration.CustomPath = $PSBoundParameters.ContainsKey('CustomPath')? $CustomPath : ''
if ($PSBoundParameters.ContainsKey('CustomHost')) {
$RedirectConfiguration.CustomHost = $CustomHost
} else {
$RedirectConfiguration.CustomHost = ''
}
if ($PSBoundParameters.ContainsKey('CustomPath')) {
$RedirectConfiguration.CustomPath = $CustomPath
} else {
$RedirectConfiguration.CustomPath = ''
}
if ($PSBoundParameters.ContainsKey('CustomQueryString')) {
$RedirectConfiguration.CustomQueryString = $CustomQueryString
}
$RedirectConfiguration.RedirectProtocol = $PSBoundParameters.ContainsKey('RedirectProtocol')? $RedirectProtocol : 'MatchRequest'
$RedirectConfiguration.RedirectType = $PSBoundParameters.ContainsKey('RedirectType')? $RedirectType : 'Moved'
if ($PSBoundParameters.ContainsKey('RedirectProtocol')) {
$RedirectConfiguration.RedirectProtocol = $RedirectProtocol
} else {
$RedirectConfiguration.RedirectProtocol = 'MatchRequest'
}
if ($PSBoundParameters.ContainsKey('RedirectType')) {
$RedirectConfiguration.RedirectType = $RedirectType
} else {
$RedirectConfiguration.RedirectType = 'Moved'
}

$Object.RouteConfiguration = $RedirectConfiguration
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,30 @@ function New-AzFrontDoorRulesEngineActionObject {
if ($PSBoundParameters.ContainsKey('CacheDuration')) {
$CacheConfiguration.CacheDuration = $CacheDuration
}
$CacheConfiguration.DynamicCompression = $PSBoundParameters.ContainsKey('DynamicCompression')? $DynamicCompression : 'Enabled'
if ($PSBoundParameters.ContainsKey('DynamicCompression')) {
$CacheConfiguration.DynamicCompression = $DynamicCompression
} else {
$CacheConfiguration.DynamicCompression = 'Enabled'
}
if ($PSBoundParameters.ContainsKey('QueryParameter')) {
$CacheConfiguration.QueryParameter = $QueryParameter
}
$CacheConfiguration.QueryParameterStripDirective = $PSBoundParameters.ContainsKey('QueryParameterStripDirective')? $QueryParameterStripDirective : 'StripAll'
if ($PSBoundParameters.ContainsKey('QueryParameterStripDirective')) {
$CacheConfiguration.QueryParameterStripDirective = $QueryParameterStripDirective
} else {
$CacheConfiguration.QueryParameterStripDirective = 'StripAll'
}
$ForwardingConfiguration.CacheConfiguration = $CacheConfiguration
}

if ($PSBoundParameters.ContainsKey('CustomForwardingPath')) {
$ForwardingConfiguration.CustomForwardingPath = $CustomForwardingPath
}
$ForwardingConfiguration.ForwardingProtocol = $PSBoundParameters.ContainsKey('ForwardingProtocol')? $ForwardingProtocol : 'MatchRequest'
if ($PSBoundParameters.ContainsKey('ForwardingProtocol')) {
$ForwardingConfiguration.ForwardingProtocol = $ForwardingProtocol
} else {
$ForwardingConfiguration.ForwardingProtocol = 'MatchRequest'
}

$Object.RouteConfigurationOverride = $ForwardingConfiguration
break
Expand All @@ -165,13 +177,29 @@ function New-AzFrontDoorRulesEngineActionObject {
if ($PSBoundParameters.ContainsKey('CustomFragment')) {
$RedirectConfiguration.CustomFragment = $CustomFragment
}
$RedirectConfiguration.CustomHost = $PSBoundParameters.ContainsKey('CustomHost')? $CustomHost : ''
$RedirectConfiguration.CustomPath = $PSBoundParameters.ContainsKey('CustomPath')? $CustomPath : ''
if ($PSBoundParameters.ContainsKey('CustomHost')) {
$RedirectConfiguration.CustomHost = $CustomHost
} else {
$RedirectConfiguration.CustomHost = ''
}
if ($PSBoundParameters.ContainsKey('CustomPath')) {
$RedirectConfiguration.CustomPath = $CustomPath
} else {
$RedirectConfiguration.CustomPath = ''
}
if ($PSBoundParameters.ContainsKey('CustomQueryString')) {
$RedirectConfiguration.CustomQueryString = $CustomQueryString
}
$RedirectConfiguration.RedirectProtocol = $PSBoundParameters.ContainsKey('RedirectProtocol')? $RedirectProtocol : 'MatchRequest'
$RedirectConfiguration.RedirectType = $PSBoundParameters.ContainsKey('RedirectType')? $RedirectType : 'Moved'
if ($PSBoundParameters.ContainsKey('RedirectProtocol')) {
$RedirectConfiguration.RedirectProtocol = $RedirectProtocol
} else {
$RedirectConfiguration.RedirectProtocol = 'MatchRequest'
}
if ($PSBoundParameters.ContainsKey('RedirectType')) {
$RedirectConfiguration.RedirectType = $RedirectType
} else {
$RedirectConfiguration.RedirectType = 'Moved'
}

$Object.RouteConfigurationOverride = $RedirectConfiguration
break
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: 2137812d-57b1-4758-b545-30ae71638628
Module Guid: de841666-09d0-4c1e-a6ad-b3112699a6c2
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
@@ -1,7 +1,7 @@
---
external help file:
Module Name: Az.FrontDoor
online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorbackendpoolssettingsobject
online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorbackendpoolssettingobject
schema: 2.0.0
---

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": "a7e2b3f2-93da-4267-9884-a33f03f9fef1"
"generate_Id": "d1340c55-8f29-452b-8617-778ef1c3ce8d"
}
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", "{45CA8110-3D84-42EB-897D-CBBA1BEAF930}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.FrontDoor", "..\..\generated\FrontDoor\FrontDoor.Autorest\Az.FrontDoor.csproj", "{B0D8665E-838F-41FB-AC8D-FD727F5F0E27}"
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
{45CA8110-3D84-42EB-897D-CBBA1BEAF930}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{45CA8110-3D84-42EB-897D-CBBA1BEAF930}.Debug|Any CPU.Build.0 = Debug|Any CPU
{45CA8110-3D84-42EB-897D-CBBA1BEAF930}.Debug|x64.ActiveCfg = Debug|Any CPU
{45CA8110-3D84-42EB-897D-CBBA1BEAF930}.Debug|x64.Build.0 = Debug|Any CPU
{45CA8110-3D84-42EB-897D-CBBA1BEAF930}.Debug|x86.ActiveCfg = Debug|Any CPU
{45CA8110-3D84-42EB-897D-CBBA1BEAF930}.Debug|x86.Build.0 = Debug|Any CPU
{45CA8110-3D84-42EB-897D-CBBA1BEAF930}.Release|Any CPU.ActiveCfg = Release|Any CPU
{45CA8110-3D84-42EB-897D-CBBA1BEAF930}.Release|Any CPU.Build.0 = Release|Any CPU
{45CA8110-3D84-42EB-897D-CBBA1BEAF930}.Release|x64.ActiveCfg = Release|Any CPU
{45CA8110-3D84-42EB-897D-CBBA1BEAF930}.Release|x64.Build.0 = Release|Any CPU
{45CA8110-3D84-42EB-897D-CBBA1BEAF930}.Release|x86.ActiveCfg = Release|Any CPU
{45CA8110-3D84-42EB-897D-CBBA1BEAF930}.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
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}
{45CA8110-3D84-42EB-897D-CBBA1BEAF930} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}
{B0D8665E-838F-41FB-AC8D-FD727F5F0E27} = {CCB5835C-B2B2-6D15-3546-15EE6FE0A6E7}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8030889A-062F-4BCC-8246-EC5BCEDCAF25}
Expand Down
2 changes: 1 addition & 1 deletion 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: 2025/11/7
# Generated on: 2025/11/10
#

@{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
external help file: Az.FrontDoor-help.xml
Module Name: Az.FrontDoor
online version: https://learn.microsoft.com/powershell/module/az.frontdoor/new-azfrontdoorbackendpoolssettingobject
online version: https://learn.microsoft.com/powershell/module/Az.FrontDoor/new-azfrontdoorbackendpoolssettingobject
schema: 2.0.0
---

Expand Down