簡體   English   中英

Azure CDN 清除命令問題

[英]Azure CDN purge command issue

我在資源組“rgDev”中創建了一個名為“cdn-profile”的 CDN。 在 CDN 中,創建的端點是“webqa.azureedge.net”。 在其中,我創建了一個自定義域“qa.example.com”。 我想清除 CDN 緩存。 下面是我運行的命令。

 $ResourceGroupName='rgDev' $EndpointName='qa.example.com' $ProfileName='cdn-profile' $CDNEndPointName='webqa.azureedge.net' az cdn endpoint purge -g $ResourceGroupName -n $EndpointName --profile-name $ProfileName --content-paths '/*' --name $CDNEndPointName

這給了我以下錯誤:找不到端點。 請驗證資源、組或其父資源是否存在。

我在這里想念什么?

在 Azure CLI 命令az cdn endpoint purge中,CDN 端點的名稱是webqa (它是資源組中類型為 Endpoint 的資源的名稱。)而不是主機名webqa.azureedge.netqa.example.com

你應該像這樣使用它:

$ResourceGroupName='rgDev'
$ProfileName='cdn-profile'
$CDNEndPointName='webqa'

 az cdn endpoint purge -g $ResourceGroupName  --profile-name $ProfileName --content-paths '/*' --name $CDNEndPointName

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM