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
8 changes: 4 additions & 4 deletions src/FrontDoor/FrontDoor.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ For information on how to develop for `Az.FrontDoor`, see [how-to.md](how-to.md)

```yaml
# pin the swagger version by using the commit id instead of branch name
commit: f11631f1c1057d8363f9e3f9597c73b90f8924c8
commit: 03253947022beee13bf4782c4ebef93a0afa237b
require:
# readme.azure.noprofile.md is the common configuration file
- $(this-folder)/../../readme.azure.noprofile.md
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
input-file:
# You need to specify your swagger files here.
- $(repo)/specification/frontdoor/resource-manager/Microsoft.Network/stable/2025-03-01/webapplicationfirewall.json
- $(repo)/specification/frontdoor/resource-manager/Microsoft.Network/stable/2025-03-01/network.json
- $(repo)/specification/frontdoor/resource-manager/Microsoft.Network/stable/2021-06-01/frontdoor.json
- $(repo)/specification/frontdoor/resource-manager/Microsoft.Network/stable/2025-10-01/webapplicationfirewall.json
- $(repo)/specification/frontdoor/resource-manager/Microsoft.Network/stable/2025-10-01/network.json
- $(repo)/specification/frontdoor/resource-manager/Microsoft.Network/stable/2025-10-01/frontdoor.json

try-require:
- $(repo)/specification/xxx/resource-manager/readme.powershell.md
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "FrontDoorWebApplicationFirewallPolicies",
"apiVersion": "2025-03-01",
"apiVersion": "2025-10-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.frontdoor"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "frontDoors/frontendEndpoints",
"apiVersion": "2021-06-01",
"apiVersion": "2025-10-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.frontdoor"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "frontDoors/rulesEngines",
"apiVersion": "2021-06-01",
"apiVersion": "2025-10-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.frontdoor"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "frontDoors",
"apiVersion": "2021-06-01",
"apiVersion": "2025-10-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.frontdoor"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function New-AzFrontDoorWafMatchConditionObject {
[bool]
$NegateCondition,
[Parameter(Mandatory, HelpMessage="Comparison type to use for matching with the variable value.")]
[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", "RegEx")]
[Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.PSArgumentCompleterAttribute("Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", "RegEx", "ServiceTagMatch")]
[string]
$OperatorProperty,
[Parameter(HelpMessage="Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null.")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,7 @@ Disable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontD
```

```output
HostName : frontendpointname1.custom.xyz
SessionAffinityEnabledState : Disabled
SessionAffinityTtlSeconds : 0
WebApplicationFirewallPolicyLink :
Backends :
CustomHttpsProvisioningState : Disabling
CustomHttpsProvisioningSubstate : DeletingCertificate
CertificateSource : FrontDoor
ProtocolType : ServerNameIndication
Vault :
SecretName :
SecretVersion :
CertificateType :
ResourceState : Enabled
Id : /subscriptions/{guid}/resourcegroups/resourcegroup1
/providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz
Name : frontendpointname1-custom-xyz
Type : Microsoft.Network/frontdoors/frontendendpoints
$true
```

Disable HTTPS for a custom domain "frontendpointname1-custom-xyz" with FrontDoorName as "frontdoor1" and ResourceGroupName as "resourcegroup1".
Expand All @@ -70,24 +53,7 @@ Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorNa
```

```output
HostName : frontendpointname1.custom.xyz
SessionAffinityEnabledState : Disabled
SessionAffinityTtlSeconds : 0
WebApplicationFirewallPolicyLink :
Backends :
CustomHttpsProvisioningState : Disabling
CustomHttpsProvisioningSubstate : DeletingCertificate
CertificateSource : FrontDoor
ProtocolType : ServerNameIndication
Vault :
SecretName :
SecretVersion :
CertificateType :
ResourceState : Enabled
Id : /subscriptions/{guid}/resourcegroups/resourcegroup1
/providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz
Name : frontendpointname1-custom-xyz
Type : Microsoft.Network/frontdoors/frontendendpoints
$true
```

Disable HTTPS for a custom domain with PSFrontendEndpoint object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,84 +71,20 @@ Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDo
```

```output
HostName : frontendpointname1.custom.xyz
SessionAffinityEnabledState : Disabled
SessionAffinityTtlSeconds : 0
WebApplicationFirewallPolicyLink :
Backends :
CustomHttpsProvisioningState : Enabling
CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest
CertificateSource : FrontDoor
ProtocolType : ServerNameIndication
MinimumTlsVersion : 1.2
Vault :
SecretName :
SecretVersion :
CertificateType :
ResourceState : Enabled
Id : /subscriptions/{guid}/resourcegroups/resourcegroup1
/providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz
Name : frontendpointname1-custom-xyz
Type : Microsoft.Network/frontdoors/frontendendpoints
$true
```

Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" that is part of Front Door "frontdoor1" in resource group "resourcegroup1" using Front Door managed certificate.

### Example 2: Enable HTTPS for a custom domain with FrontDoorName and ResourceGroupName using customer's own certificate in Key Vault with the specific version.
```powershell
$vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId
Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -VaultId $vaultId -secretName $secretName -SecretVersion $secretVersion -MinimumTlsVersion "1.0"
```

```output
HostName : frontendpointname1.custom.xyz
SessionAffinityEnabledState : Disabled
SessionAffinityTtlSeconds : 0
WebApplicationFirewallPolicyLink :
Backends :
CustomHttpsProvisioningState : Enabling
CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest
CertificateSource : AzureKeyVault
ProtocolType : ServerNameIndication
MinimumTlsVersion : 1.0
Vault :
SecretName :
SecretVersion :
CertificateType :
ResourceState : Enabled
Id : /subscriptions/{guid}/resourcegroups/resourcegroup1
/providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz
Name : frontendpointname1-custom-xyz
Type : Microsoft.Network/frontdoors/frontendendpoints
```

Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" that is part of Front Door "frontdoor1" in resource group "resourcegroup1" using customer's own certificate in Key Vault with the specific version.

### Example 3: Enable HTTPS for a custom domain with PSFrontendEndpoint object using Front Door managed certificate.
### Example 2: Enable HTTPS for a custom domain with PSFrontendEndpoint object using Front Door managed certificate.
```powershell
Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Enable-AzFrontDoorCustomDomainHttps
```

```output
HostName : frontendpointname1.custom.xyz
SessionAffinityEnabledState : Disabled
SessionAffinityTtlSeconds : 0
WebApplicationFirewallPolicyLink :
Backends :
CustomHttpsProvisioningState : Enabling
CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest
CertificateSource : FrontDoor
ProtocolType : ServerNameIndication
MinimumTlsVersion : 1.2
Vault :
SecretName :
SecretVersion :
CertificateType :
ResourceState : Enabled
Id : /subscriptions/{guid}/resourcegroups/resourcegroup1
/providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz
Name : frontendpointname1-custom-xyz
Type : Microsoft.Network/frontdoors/frontendendpoints
$true
```

Enable HTTPS for a custom domain with PSFrontendEndpoint object using Front Door managed certificate.
Expand Down
113 changes: 32 additions & 81 deletions src/FrontDoor/FrontDoor.Autorest/docs/Get-AzFrontDoor.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,39 +45,10 @@ Get-AzFrontDoor
```

```output
FriendlyName : frontdoor1
FrontDoorId : {guid}
RoutingRules : {routingrule1}
BackendPools : {backendpool1}
HealthProbeSettings : {healthProbeSetting1}
LoadBalancingSettings : {loadbalancingsetting1}
FrontendEndpoints : {frontendendpoint1}
EnabledState : Enabled
ResourceState : Enabled
ProvisioningState : Succeeded
Cname :
Tags : {tag1, tag2}
Id : /subscriptions/{guid}/resourcegroups/{guid1}/providers/M
icrosoft.Network/frontdoors/frontdoor1
Name : frontdoor1
Type : Microsoft.Network/frontdoor1

FriendlyName : frontdoor1
FrontDoorId : {guid}
RoutingRules : {routingrule1}
BackendPools : {backendpool1}
HealthProbeSettings : {healthProbeSetting1}
LoadBalancingSettings : {loadbalancingsetting1}
FrontendEndpoints : {frontendendpoint1}
EnabledState : Enabled
ResourceState : Enabled
ProvisioningState : Succeeded
Cname :
Tags : {tag1, tag2}
Id : /subscriptions/{guid}/resourcegroups/{guid2}/providers/M
icrosoft.Network/frontdoors/frontdoor1
Name : frontdoor1
Type : Microsoft.Network/frontdoor1
Location Name ResourceGroupName
-------- ---- -----------------
Global {Name0} {rg0}
CentralUs {Name1} {rg1}
```

Get all FrontDoors in the current subscription.
Expand All @@ -88,39 +59,8 @@ Get-AzFrontDoor -ResourceGroupName "rg1"
```

```output
FriendlyName : frontdoor1
FrontDoorId : {guid}
RoutingRules : {routingrule1}
BackendPools : {backendpool1}
HealthProbeSettings : {healthProbeSetting1}
LoadBalancingSettings : {loadbalancingsetting1}
FrontendEndpoints : {frontendendpoint1}
EnabledState : Enabled
ResourceState : Enabled
ProvisioningState : Succeeded
Cname :
Tags : {tag1, tag2}
Id : /subscriptions/{guid}/resourcegroups/rg1/providers/M
icrosoft.Network/frontdoors/frontdoor1
Name : frontdoor1
Type : Microsoft.Network/frontdoor1

FriendlyName : frontdoor2
FrontDoorId : {guid}
RoutingRules : {routingrule1}
BackendPools : {backendpool1}
HealthProbeSettings : {healthProbeSetting1}
LoadBalancingSettings : {loadbalancingsetting1}
FrontendEndpoints : {frontendendpoint1}
EnabledState : Enabled
ResourceState : Enabled
ProvisioningState : Succeeded
Cname :
Tags : {tag1, tag2}
Id : /subscriptions/{guid}/resourcegroups/rg1/providers/M
icrosoft.Network/frontdoors/frontdoor1
Name : frontdoor1
Type : Microsoft.Network/frontdoor1
Global name1 rg1
Global name2 rg1
```

Get all FrontDoors in resource group "rg1" in the current subscription.
Expand All @@ -131,22 +71,33 @@ Get-AzFrontDoor -ResourceGroupName "rg1" -Name "frontDoor1"
```

```output
FriendlyName : frontdoor1
FrontDoorId : {guid}
RoutingRules : {routingrule1}
BackendPools : {backendpool1}
HealthProbeSettings : {healthProbeSetting1}
LoadBalancingSettings : {loadbalancingsetting1}
FrontendEndpoints : {frontendendpoint1}
EnabledState : Enabled
ResourceState : Enabled
ProvisioningState : Succeeded
Cname :
Tags : {tag1, tag2}
Id : /subscriptions/{guid}/resourcegroups/rg1/providers/M
BackendPool : {BackendPool0}
BackendPoolsSetting : {
"enforceCertificateNameCheck": "Enabled",
"sendRecvTimeoutSeconds": 30
}
Cname :
EnabledState : Disabled
ExtendedProperty : {
"MigratedTo": {link0}
}
FriendlyName : frontDoor1
FrontdoorId : {guid0}
FrontendEndpoint : {Endpoint0}
HealthProbeSetting : {HealthProbeSetting0}
Id : /subscriptions/{guid}/resourcegroups/rg1/providers/M
icrosoft.Network/frontdoors/frontdoor1
Name : frontdoor1
Type : Microsoft.Network/frontdoor1
LoadBalancingSetting : {LoadBalancingSetting0}
Location : Global
Name : frontDoor1
ProvisioningState : Succeeded
ResourceGroupName : {rg1}
ResourceState : Migrated
RoutingRule : {RoutingRule0,RoutingRule1}
RulesEngine : {RulesEngine0,RulesEngine1}
Tag : {
}
Type : Microsoft.Network/frontdoors
```

Get the FrontDoors in resource group "rg1" with name "frontDoor1" in the current subscription.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,7 @@ Gets a Frontend endpoint with the specified name within the specified Front Door

## EXAMPLES

### Example 1: Get all frontend endpoints from a Front Door
```powershell
Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "myResourceGroup" -FrontDoorName "myFrontDoor"
```

```output
HostName SessionAffinityEnabledState SessionAffinityTtlSecond WebApplicationFirewallPolicyLinkId CustomHttpsProvisioningState ResourceState
-------- --------------------------- ------------------------ ---------------------------------- ---------------------------- -------------
myFrontDoor-azurefd.net Disabled 0 Enabled Enabled
www.contoso.com Disabled 0 /subscriptions/.../myWafPolicy Enabled Enabled
```

Get all frontend endpoints configured in the specified Front Door resource.

### Example 2: Get a specific frontend endpoint by name
### Example 1: Get a specific frontend endpoint by name
```powershell
Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "myResourceGroup" -FrontDoorName "myFrontDoor" -Name "myFrontDoor-azurefd-net"
```
Expand Down
Loading