Udostępnij za pośrednictwem


Get-AzFrontDoorCdnRoute

Pobiera istniejącą trasę z określoną nazwą trasy w ramach określonej subskrypcji, grupy zasobów, profilu i punktu końcowego usługi AzureFrontDoor.

Składnia

Get-AzFrontDoorCdnRoute
   -EndpointName <String>
   -ProfileName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzFrontDoorCdnRoute
   -EndpointName <String>
   -Name <String>
   -ProfileName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzFrontDoorCdnRoute
   -InputObject <ICdnIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Opis

Pobiera istniejącą trasę z określoną nazwą trasy w ramach określonej subskrypcji, grupy zasobów, profilu i punktu końcowego usługi AzureFrontDoor.

Przykłady

Przykład 1. Wyświetlanie listy tras usługi AzureFrontDoor w profilu azureFrontDoor

Get-AzFrontDoorCdnRoute -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -EndpointName end001

Name     ResourceGroupName
----     -----------------
route001 testps-rg-da16jm
route002 testps-rg-da16jm
route003 testps-rg-da16jm
route004 testps-rg-da16jm

Wyświetlanie listy tras usługi AzureFrontDoor w profilu azureFrontDoor

Przykład 2. Uzyskiwanie trasy usługi AzureFrontDoor w profilu azureFrontDoor

Get-AzFrontDoorCdnRoute -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -EndpointName end001 -Name route001

Name     ResourceGroupName
----     -----------------
route001 testps-rg-da16jm

Uzyskiwanie trasy usługi AzureFrontDoor w profilu azureFrontDoor

Przykład 3. Uzyskiwanie trasy usługi AzureFrontDoor w profilu usługi AzureFrontDoor za pośrednictwem tożsamości

$originGroup = Get-AzFrontDoorCdnOriginGroup -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -OriginGroupName org001
$ruleSet = Get-AzFrontDoorCdnRuleSet -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -RuleSetName ruleset001
$customdomain = Get-AzFrontDoorCdnCustomDomain -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -CustomDomainName domain001

$ruleSetResoure = New-AzFrontDoorCdnResourceReferenceObject -Id $ruleSet.Id
$customdomainResoure = New-AzFrontDoorCdnResourceReferenceObject -Id $customdomain.Id

New-AzFrontDoorCdnRoute -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -EndpointName end001 -Name route001 -OriginGroupId $originGroup.Id -RuleSet @($ruleSetResoure) -PatternsToMatch "/*" -LinkToDefaultDomain "Enabled" -EnabledState "Enabled" -CustomDomain @($customdomainResoure) | Get-AzFrontDoorCdnRoute

Name     ResourceGroupName
----     -----------------
route001 testps-rg-da16jm

Uzyskiwanie trasy usługi AzureFrontDoor w profilu usługi AzureFrontDoor za pośrednictwem tożsamości

Parametry

-DefaultProfile

Parametr DefaultProfile nie działa. Użyj parametru SubscriptionId, jeśli jest dostępny, jeśli wykonuje polecenie cmdlet dla innej subskrypcji.

Typ:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
wartość domyślna:None
Wymagane:False
Accept pipeline input:False
Accept wildcard characters:False

-EndpointName

Nazwa punktu końcowego w profilu, który jest unikatowy globalnie.

Typ:String
Position:Named
wartość domyślna:None
Wymagane:True
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Parametr tożsamości Do konstruowania, zobacz sekcję UWAGI dla właściwości INPUTOBJECT i utwórz tabelę skrótów.

Typ:ICdnIdentity
Position:Named
wartość domyślna:None
Wymagane:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

Nazwa reguły routingu.

Typ:String
Aliases:RouteName
Position:Named
wartość domyślna:None
Wymagane:True
Accept pipeline input:False
Accept wildcard characters:False

-ProfileName

Nazwa profilu usługi Azure Front Door Standard lub Azure Front Door Premium, który jest unikatowy w grupie zasobów.

Typ:String
Position:Named
wartość domyślna:None
Wymagane:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Nazwa grupy zasobów w ramach subskrypcji platformy Azure.

Typ:String
Position:Named
wartość domyślna:None
Wymagane:True
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

Identyfikator subskrypcji platformy Azure.

Typ:String[]
Position:Named
wartość domyślna:(Get-AzContext).Subscription.Id
Wymagane:False
Accept pipeline input:False
Accept wildcard characters:False

Dane wejściowe

ICdnIdentity

Dane wyjściowe

IRoute