Skip to content

Add FrontDoorId to fix #13291 #13960

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

Merged
merged 2 commits into from
Jan 15, 2021
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
1 change: 1 addition & 0 deletions src/FrontDoor/FrontDoor/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Added FrontDoorId to properties

## Version 1.6.1
* Fixed an issue where an exception is being thrown when Enum.Parse tries to coerce a null value to an Enabled or Disabled enum values [#12344]
Expand Down
1 change: 1 addition & 0 deletions src/FrontDoor/FrontDoor/Helpers/ModelExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public static PSFrontDoor ToPSFrontDoor(this SdkFrontDoor sdkFrontDoor)
Type = sdkFrontDoor.Type,
Tags = sdkFrontDoor.Tags.ToHashTableTags(),
FriendlyName = sdkFrontDoor.FriendlyName,
FrontDoorId = sdkFrontDoor.FrontdoorId,
RoutingRules = sdkFrontDoor.RoutingRules?.Select(x => x.ToPSRoutingRule()).ToList(),
BackendPools = sdkFrontDoor.BackendPools?.Select(x => x.ToPSBackendPool()).ToList(),
HealthProbeSettings = sdkFrontDoor.HealthProbeSettings?.Select(x => x.ToPSHealthProbeSetting()).ToList(),
Expand Down
2 changes: 2 additions & 0 deletions src/FrontDoor/FrontDoor/Models/PSFrontDoor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class PSFrontDoor : PSTrackedResource
{
public string FriendlyName { get; set; }

public string FrontDoorId { get; set; }

public List<PSRoutingRule> RoutingRules { get; set; }

public List<PSBackendPool> BackendPools { get; set; }
Expand Down
5 changes: 5 additions & 0 deletions src/FrontDoor/FrontDoor/help/Get-AzFrontDoor.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ The **Get-AzFrontDoor** cmdletGet gets all existing Front Doors in the current s
PS C:\> Get-AzFrontDoor

FriendlyName : frontdoor1
FrontDoorId : {guid}
RoutingRules : {routingrule1}
BackendPools : {backendpool1}
HealthProbeSettings : {healthProbeSetting1}
Expand All @@ -43,6 +44,7 @@ Name : frontdoor1
Type : Microsoft.Network/frontdoor1

FriendlyName : frontdoor1
FrontDoorId : {guid}
RoutingRules : {routingrule1}
BackendPools : {backendpool1}
HealthProbeSettings : {healthProbeSetting1}
Expand All @@ -66,6 +68,7 @@ Get all FrontDoors in the current subscription.
PS C:\> Get-AzFrontDoor -ResourceGroupName "rg1"

FriendlyName : frontdoor1
FrontDoorId : {guid}
RoutingRules : {routingrule1}
BackendPools : {backendpool1}
HealthProbeSettings : {healthProbeSetting1}
Expand All @@ -82,6 +85,7 @@ Name : frontdoor1
Type : Microsoft.Network/frontdoor1

FriendlyName : frontdoor2
FrontDoorId : {guid}
RoutingRules : {routingrule1}
BackendPools : {backendpool1}
HealthProbeSettings : {healthProbeSetting1}
Expand All @@ -105,6 +109,7 @@ Get all FrontDoors in resource group "rg1" in the current subscription.
PS C:\> Get-AzFrontDoor -ResourceGroupName "rg1" -Name "frontDoor1"

FriendlyName : frontdoor1
FrontDoorId : {guid}
RoutingRules : {routingrule1}
BackendPools : {backendpool1}
HealthProbeSettings : {healthProbeSetting1}
Expand Down