共用方式為


New-AzFrontDoorCdnProfile

使用指定訂用帳戶和資源群組下的配置檔名稱,建立新的 Azure Front Door Standard 或 Azure Front Door Premium 或 CDN 配置檔。

語法

New-AzFrontDoorCdnProfile
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String>]
   -Location <String>
   [-OriginResponseTimeoutSecond <Int32>]
   [-SkuName <SkuName>]
   [-Tag <Hashtable>]
   [-IdentityType <ManagedServiceIdentityType>]
   [-IdentityUserAssignedIdentity <Hashtable>]
   [-LogScrubbingRule <IProfileScrubbingRules[]>]
   [-LogScrubbingState <ProfileScrubbingState>]
   [-DefaultProfile <PSObject>]
   [-AsJob]
   [-NoWait]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

使用指定訂用帳戶和資源群組下的配置檔名稱,建立新的 Azure Front Door Standard 或 Azure Front Door Premium 或 CDN 配置檔。

範例

範例 1:在資源群組下建立 AzureFrontDoor 配置檔

New-AzFrontDoorCdnProfile -ResourceGroupName testps-rg-da16jm -Name fdp-v542q6 -SkuName Standard_AzureFrontDoor -Location Global

Location Name       Kind      ResourceGroupName
-------- ----       ----      -----------------
Global   fdp-v542q6 frontdoor testps-rg-da16jm

在資源群組下建立 AzureFrontDoor 配置檔

範例 2:使用 ProfileScrubbingRule 在資源群組下建立 AzureFrontDoor 配置檔

$rule = New-AzFrontDoorCdnProfileScrubbingRulesObject -MatchVariable RequestIPAddress -State Enabled
New-AzFrontDoorCdnProfile -ResourceGroupName testps-rg-da16jm -Name fdp-v542q6 -SkuName Standard_AzureFrontDoor -Location Global -LogScrubbingRule $rule -LogScrubbingState Enabled

Location Name       Kind      ResourceGroupName
-------- ----       ----      -----------------
Global   fdp-v542q6 frontdoor testps-rg-da16jm

使用 ProfileScrubbingRule 在資源群組下建立 AzureFrontDoor 配置檔

參數

-AsJob

以作業身分執行命令

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Confirm

執行 Cmdlet 之前先提示您確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:PSObject
別名:AzureRMContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-IdentityType

受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。

類型:ManagedServiceIdentityType
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-IdentityUserAssignedIdentity

與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件 ({})。

類型:Hashtable
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Location

資源位置。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-LogScrubbingRule

套用至 Azure Front Door 設定檔記錄的記錄清除規則清單。 若要建構,請參閱LOGSCRUBBINGRULE屬性的NOTES區段並建立哈希表。

類型:IProfileScrubbingRules[]
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-LogScrubbingState

記錄清除設定的狀態。預設值為 Enabled。

類型:ProfileScrubbingState
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Name

Azure Front Door Standard 或 Azure Front Door Premium 或 CDN 配置檔的名稱,在資源群組中是唯一的。

類型:String
別名:ProfileName
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-NoWait

以異步方式執行命令

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-OriginResponseTimeoutSecond

將要求轉送至來源時傳送和接收逾時。 達到逾時時時,要求會失敗並傳回。

類型:Int32
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ResourceGroupName

Azure 訂用帳戶內的資源組名。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-SkuName

定價層的名稱。

類型:SkuName
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-SubscriptionId

Azure 訂用帳戶標識碼。

類型:String
Position:Named
預設值:(Get-AzContext).Subscription.Id
必要:False
接受管線輸入:False
接受萬用字元:False

-Tag

資源標籤。

類型:Hashtable
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-WhatIf

顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。

類型:SwitchParameter
別名:wi
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸出

IProfile