Lewati Navigasi

Templat Azure Quickstart saat ini tersedia dalam bahasa Inggris

Front Door Standard/Premium with static website origin

oleh John Downs
Terakhir diperbarui: 17/02/2022

This template creates a Front Door Standard/Premium and an Azure Storage static website, and configured Front Door to send traffic to the static website.

Templat Azure Resource Manager ini dibuat oleh anggota komunitas dan bukan oleh Microsoft. Setiap templat Resource Manager dilisensikan kepada Anda berdasarkan perjanjian lisensi oleh pemiliknya, bukan Microsoft. Microsoft tidak bertanggung jawab atas templat Resource Manager yang disediakan dan dilisensikan oleh anggota komunitas dan tidak menyaring keamanan, kompatibilitas, atau performa. Templat Community Resource Manager tidak didukung di bawah program atau layanan dukungan Microsoft apa pun, dan tersedia SEBAGAIMANA ADANYA tanpa jaminan apa pun.

Parameter

Nama Parameter Deskripsi
location The location into which regionally scoped resources should be deployed. Note that Front Door is a global resource.
storageAccountName The name of the Azure Storage account to create. This must be globally unique.
storageSkuName The name of the SKU to use when creating the Azure Storage account.
storageStaticWebsiteIndexDocument The name of the page to display when a user navigates to the root of your static website.
storageStaticWebsiteErrorDocument404Path The name of the page to display when a user attempts to navigate to a page that does not exist in your static website.
frontDoorEndpointName The name of the Front Door endpoint to create. This must be globally unique.
frontDoorSkuName The name of the SKU to use when creating the Front Door profile.

Menggunakan templat

Windows PowerShell

New-AzResourceGroup -Name <resource-group-name> -Location <resource-group-location> #use this command when you need to create a new resource group for your deployment
New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.cdn/front-door-standard-premium-storage-static-website/azuredeploy.json
Menginstal dan mengonfigurasi Azure PowerShell

Baris perintah

az group create --name <resource-group-name> --location <resource-group-location> #use this command when you need to create a new resource group for your deployment
az group deployment create --resource-group <my-resource-group> --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.cdn/front-door-standard-premium-storage-static-website/azuredeploy.json
Menginstal dan Mengonfigurasi Azure Cross-Platform Command-Line Interface