Catatan
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba masuk atau mengubah direktori.
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba mengubah direktori.
- Terbaru
- 2025-03-01
- 2024-11-01
- 2024-04-01
- 2023-12-01
-
2023-01-01 - 2022-09-01
- 2022-03-01
- 2021-03-01
- 2021-02-01
- 2021-01-15
-
2021-01-01 - 2020-12-01
- 2020-10-01
- 2020-09-01
- 2020-06-01
- 2019-08-01
-
2018-11-01 -
2018-02-01 -
2016-08-01
Definisi sumber daya Bicep
Jenis sumber daya sites/publicCertificates dapat disebarkan dengan operasi yang menargetkan:
- Grup sumber daya
- Lihat perintah penyebaran grup sumber daya
Untuk daftar properti yang diubah di setiap versi API, lihat mengubah log.
Contoh Penggunaan
Sampel Bicep
Contoh dasar penyebaran Sertifikat Publik App Service.
param resourceName string = 'acctest0001'
param location string = 'westeurope'
resource serverfarm 'Microsoft.Web/serverfarms@2021-02-01' = {
name: resourceName
location: location
sku: {
capacity: 1
name: 'S1'
size: 'S1'
tier: 'Standard'
}
kind: 'Windows'
properties: {
isXenon: false
}
}
resource site 'Microsoft.Web/sites@2021-02-01' = {
name: resourceName
location: location
properties: {
clientAffinityEnabled: false
clientCertEnabled: false
enabled: true
httpsOnly: false
serverFarmId: serverfarm.id
siteConfig: {}
}
}
resource publicCertificate 'Microsoft.Web/sites/publicCertificates@2022-09-01' = {
name: resourceName
parent: site
properties: {
blob: 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNzakNDQVpvQ0NRQ01kdDdEdnlnUHREQU5CZ2txaGtpRzl3MEJBUXNGQURBYk1Sa3dGd1lEVlFRRERCQmgKY0drdWRHVnljbUZtYjNKdExtbHZNQjRYRFRFNE1EY3dOVEV3TXpNek1Gb1hEVEk0TURjd01qRXdNek16TUZvdwpHekVaTUJjR0ExVUVBd3dRWVhCcExuUmxjbkpoWm05eWJTNXBiekNDQVNJd0RRWUpLb1pJaHZjTkFRRUJCUUF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
}
}
Format sumber daya
Untuk membuat sumber daya Microsoft.Web/sites/publicCertificates, tambahkan Bicep berikut ke templat Anda.
resource symbolicname 'Microsoft.Web/sites/publicCertificates@2022-09-01' = {
parent: resourceSymbolicName
kind: 'string'
name: 'string'
properties: {
blob: any(...)
publicCertificateLocation: 'string'
}
}
Nilai Properti
Microsoft.Web/sites/publicCertificates
| Nama | Deskripsi | Nilai |
|---|---|---|
| jenis | Jenis sumber daya. | string |
| Nama | Nama sumber daya | string (diperlukan) |
| induk | Di Bicep, Anda dapat menentukan sumber daya induk untuk sumber daya anak. Anda hanya perlu menambahkan properti ini ketika sumber daya anak dideklarasikan di luar sumber daya induk. Untuk informasi selengkapnya, lihat sumber daya Turunan di luar sumber daya induk. |
Nama simbolis untuk sumber daya jenis: situs |
| Properti | Properti khusus sumber daya PublicCertificate | PublikSertifikatProperti |
PublikSertifikatProperti
| Nama | Deskripsi | Nilai |
|---|---|---|
| blob | Array byte Sertifikat Publik | apa pun |
| publikSertifikatLokasi | Lokasi Sertifikat Publik | 'CurrentUserMy' 'MesinLokalMy' 'Tidak diketahui' |
Definisi sumber daya templat ARM
Jenis sumber daya sites/publicCertificates dapat disebarkan dengan operasi yang menargetkan:
- Grup sumber daya - Lihat perintah penyebaran grup sumber daya Untuk daftar properti yang diubah di setiap versi API, lihat log perubahan.
Contoh Penggunaan
Templat Quickstart Azure
Templat Mulai Cepat Azure berikut ini menyebarkan jenis sumber daya ini.
| Templat | Deskripsi |
|---|---|
|
Menginstal Sertifikat Publik di App Service |
Instal Sertifikat Publik di App Service. Setelah sertifikat publik diinstal dengan menyebarkan templat ini, sertifikat tersebut akan dapat diakses oleh kode App Service untuk dikonsumsi. Ini hanya didukung pada Paket App Service khusus. Jika App Service Anda dihosting pada unit skala publik, Anda hanya dapat menginstal sertifikat di penyimpanan sertifikat CurrentUser-Personal. Untuk Lingkungan App Service, penyimpanan sertifikat LocalMachine-Personal juga didukung |
Format sumber daya
Untuk membuat sumber daya Microsoft.Web/sites/publicCertificates, tambahkan JSON berikut ke templat Anda.
{
"type": "Microsoft.Web/sites/publicCertificates",
"apiVersion": "2022-09-01",
"name": "string",
"kind": "string",
"properties": {
"blob": {},
"publicCertificateLocation": "string"
}
}
Nilai Properti
Microsoft.Web/sites/publicCertificates
| Nama | Deskripsi | Nilai |
|---|---|---|
| apiVersi | Versi api | '2022-09-01' |
| jenis | Jenis sumber daya. | string |
| Nama | Nama sumber daya | string (diperlukan) |
| Properti | Properti khusus sumber daya PublicCertificate | PublikSertifikatProperti |
| jenis | Jenis sumber daya | 'Microsoft.Web/sites/publicCertificates' |
PublikSertifikatProperti
| Nama | Deskripsi | Nilai |
|---|---|---|
| blob | Array byte Sertifikat Publik | apa pun |
| publikSertifikatLokasi | Lokasi Sertifikat Publik | 'CurrentUserMy' 'MesinLokalMy' 'Tidak diketahui' |
Definisi sumber daya Terraform (penyedia AzAPI)
Jenis sumber daya sites/publicCertificates dapat disebarkan dengan operasi yang menargetkan:
- Grup sumber daya Untuk daftar properti yang diubah di setiap versi API, lihat log perubahan.
Contoh Penggunaan
Sampel Terraform
Contoh dasar penyebaran Sertifikat Publik App Service.
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "serverfarm" {
type = "Microsoft.Web/serverfarms@2021-02-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
kind = "Windows"
properties = {
isXenon = false
}
sku = {
capacity = 1
name = "S1"
size = "S1"
tier = "Standard"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "site" {
type = "Microsoft.Web/sites@2021-02-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
clientAffinityEnabled = false
clientCertEnabled = false
enabled = true
httpsOnly = false
serverFarmId = azapi_resource.serverfarm.id
siteConfig = {
}
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "publicCertificate" {
type = "Microsoft.Web/sites/publicCertificates@2022-09-01"
parent_id = azapi_resource.site.id
name = var.resource_name
body = {
properties = {
blob = "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNzakNDQVpvQ0NRQ01kdDdEdnlnUHREQU5CZ2txaGtpRzl3MEJBUXNGQURBYk1Sa3dGd1lEVlFRRERCQmgKY0drdWRHVnljbUZtYjNKdExtbHZNQjRYRFRFNE1EY3dOVEV3TXpNek1Gb1hEVEk0TURjd01qRXdNek16TUZvdwpHekVaTUJjR0ExVUVBd3dRWVhCcExuUmxjbkpoWm05eWJTNXBiekNDQVNJd0RRWUpLb1pJaHZjTkFRRUJCUUFECmdnRVBBRENDQVFvQ2dnRUJBS1FXMzMyT2wyOENzaWRBaGVEMWFMOVVsOEpXbktMZGFWeEtaM3NzbDVDWGpQRE8KbU03SVhrMFNnYlFuVUM4bElsUEZaaURHYlExc0I2T1RNdW42Wlo0aXBMcDgwZHRsMHJvQ0x0Q25EUU9CR3pDTgpBckNZQW9YUnVyamtYRVk3dHBEMHd3dFU3MiszN2gzSFE0ZzBWUzZWSXRKQ3FKOVFBRFYrSE8yWld1WlRlejcwCk1ob0w2T0xmWlA3SEdZZEpES2dmRVZORjVYbGJWek5BR2tESUpGZGhqTnh5R0d1NU5mc20xcGZRaEF5dW5razcKSlZhbWpVZzVJb2pSZG82M0lTOXd3ek1PZGVHU0FiQmNzSmZZZUNmVmcya3VwUjhxMFRtWit4OTNSbW1PbGJTaQo2NmtFWXhSelo5WUNRZUhKbW4xWWZKOTJCcENVaXk5QTZaMWlhS1VDQXdFQUFUQU5CZ2txaGtpRzl3MEJBUXNGCkFBT0NBUUVBSjdKaGxlY1A3SjQ4d0kyUUhUTWJBTWtrV0J2L2lXcTEvUUlGNHVnSDNaYjVQb3JPditOZmhRMEwKbFdpdy9Tek44QWU5NXZVaXhBR1lITVNhMjhvdW1NNUsxT3NxS0VrVklvMUFvQkg4bkJ6K1ZjVHBSRC9tSFhvdApBSFBBWnQ5ajVMcWVIWCtlblI2UmJJTkFmM2puK1lVM01kVmUwTXNBRGRGQVNWRGZqbVFQMlI3bzlhSmIvUXFPCmczYlpCV3NpQkRFSVNmeWFIMitwZ1VNN3d0d0VvRldtRU1sZ2pMSzFNUkJzMWNEWlhxbkhhQ2QvcnMrTm1XVjkKbmFFdTd4NWZ5UU9rNEhvemtwd2VSK0p4MXNCbFRSc2E0OS9xU0h0LzZVTEtmTzAxL2NUczRpRjcxeWtYUGJoMwpLajljSTJ1bzlhWXRYa3hraEtyR3lVcEE3RkpxV3c9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg=="
publicCertificateLocation = "Unknown"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
Format sumber daya
Untuk membuat sumber daya Microsoft.Web/sites/publicCertificates, tambahkan Terraform berikut ke templat Anda.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Web/sites/publicCertificates@2022-09-01"
name = "string"
parent_id = "string"
body = {
kind = "string"
properties = {
blob = ?
publicCertificateLocation = "string"
}
}
}
Nilai Properti
Microsoft.Web/sites/publicCertificates
| Nama | Deskripsi | Nilai |
|---|---|---|
| jenis | Jenis sumber daya. | string |
| Nama | Nama sumber daya | string (diperlukan) |
| parent_id | ID sumber daya yang merupakan induk untuk sumber daya ini. | ID untuk sumber daya jenis: situs |
| Properti | Properti khusus sumber daya PublicCertificate | PublikSertifikatProperti |
| jenis | Jenis sumber daya | "Microsoft.Web/sites/publicCertificates@2022-09-01" |
PublikSertifikatProperti
| Nama | Deskripsi | Nilai |
|---|---|---|
| blob | Array byte Sertifikat Publik | apa pun |
| publikSertifikatLokasi | Lokasi Sertifikat Publik | 'CurrentUserMy' 'MesinLokalMy' 'Tidak diketahui' |