Templat Azure Quickstart saat ini tersedia dalam bahasa Inggris
Create a Container App Environment with a basic Container App. It also deploys a Log Analytics Workspace to store logs.
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 |
---|---|
containerAppName | Specifies the name of the container app. |
containerAppEnvName | Specifies the name of the container app environment. |
containerAppLogAnalyticsName | Specifies the name of the log analytics workspace. |
location | Specifies the location for all resources. |
containerImage | Specifies the docker container image to deploy. |
targetPort | Specifies the container port. |
cpuCore | Number of CPU cores the container can use. Can be with a maximum of two decimals. |
memorySize | Amount of memory (in gibibytes, GiB) allocated to the container up to 4GiB. Can be with a maximum of two decimals. Ratio with CPU cores must be equal to 2. |
minReplicas | Minimum number of replicas that will be deployed |
maxReplicas | Maximum number of replicas that will be deployed |
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 deploymentMenginstal dan mengonfigurasi Azure PowerShell
New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.app/container-app-create/azuredeploy.json
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 deploymentMenginstal dan Mengonfigurasi Azure Cross-Platform Command-Line Interface
az group deployment create --resource-group <my-resource-group> --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.app/container-app-create/azuredeploy.json