Condividi tramite


Get-AzFrontDoorCdnRoute

Ottiene una route esistente con il nome di route specificato nella sottoscrizione, nel gruppo di risorse, nel profilo e nell'endpoint AzureFrontDoor specificati.

Sintassi

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>]

Descrizione

Ottiene una route esistente con il nome di route specificato nella sottoscrizione, nel gruppo di risorse, nel profilo e nell'endpoint AzureFrontDoor specificati.

Esempio

Esempio 1: Elencare le route di AzureFrontDoor nel profilo 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

Elencare le route di AzureFrontDoor nel profilo AzureFrontDoor

Esempio 2: Ottenere una route di AzureFrontDoor nel profilo AzureFrontDoor

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

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

Ottenere una route di AzureFrontDoor nel profilo AzureFrontDoor

Esempio 3: Ottenere una route di AzureFrontDoor nel profilo AzureFrontDoor tramite identità

$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

Ottenere una route di AzureFrontDoor nel profilo AzureFrontDoor tramite identità

Parametri

-DefaultProfile

Il parametro DefaultProfile non è funzionale. Usare il parametro SubscriptionId quando disponibile se si esegue il cmdlet su una sottoscrizione diversa.

Tipo:PSObject
Alias:AzureRMContext, AzureCredential
Posizione:Named
Valore predefinito:None
Necessario:False
Accettare l'input della pipeline:False
Accettare caratteri jolly:False

-EndpointName

Nome dell'endpoint nel profilo univoco a livello globale.

Tipo:String
Posizione:Named
Valore predefinito:None
Necessario:True
Accettare l'input della pipeline:False
Accettare caratteri jolly:False

-InputObject

Parametro Identity Per costruire, vedere la sezione NOTES per le proprietà INPUTOBJECT e creare una tabella hash.

Tipo:ICdnIdentity
Posizione:Named
Valore predefinito:None
Necessario:True
Accettare l'input della pipeline:True
Accettare caratteri jolly:False

-Name

Nome della regola di routing.

Tipo:String
Alias:RouteName
Posizione:Named
Valore predefinito:None
Necessario:True
Accettare l'input della pipeline:False
Accettare caratteri jolly:False

-ProfileName

Nome del profilo Frontdoor di Azure Standard o Frontdoor Di Azure Premium univoco all'interno del gruppo di risorse.

Tipo:String
Posizione:Named
Valore predefinito:None
Necessario:True
Accettare l'input della pipeline:False
Accettare caratteri jolly:False

-ResourceGroupName

Nome del gruppo di risorse all'interno della sottoscrizione di Azure.

Tipo:String
Posizione:Named
Valore predefinito:None
Necessario:True
Accettare l'input della pipeline:False
Accettare caratteri jolly:False

-SubscriptionId

ID sottoscrizione di Azure.

Tipo:String[]
Posizione:Named
Valore predefinito:(Get-AzContext).Subscription.Id
Necessario:False
Accettare l'input della pipeline:False
Accettare caratteri jolly:False

Input

ICdnIdentity

Output

IRoute