共用方式為


Microsoft.Security 伺服器VulnerabilityAssessments

Bicep 資源定義

serverVulnerabilityAssessments 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.Security/serverVulnerabilityAssessments 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.Security/serverVulnerabilityAssessments@2020-01-01' = {
  scope: resourceSymbolicName or scope
  name: 'default'
}

屬性值

Microsoft.Security/serverVulnerabilityAssessments

名字 描述 價值
名字 資源名稱 'default' (必要)
範圍 在與部署範圍不同的範圍內建立資源時,請使用 。 將此屬性設定為資源的符號名稱,以套用 擴充資源

ARM 樣本資源定義

serverVulnerabilityAssessments 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.Security/serverVulnerabilityAssessments 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.Security/serverVulnerabilityAssessments",
  "apiVersion": "2020-01-01",
  "name": "string"
}

屬性值

Microsoft.Security/serverVulnerabilityAssessments

名字 描述 價值
apiVersion API 版本 '2020-01-01'
名字 資源名稱 'default' (必要)
類型 資源類型 'Microsoft.Security/serverVulnerabilityAssessments'

使用範例

Terraform (AzAPI 提供者) 資源定義

serverVulnerabilityAssessments 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.Security/serverVulnerabilityAssessments 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Security/serverVulnerabilityAssessments@2020-01-01"
  name = "string"
  parent_id = "string"
}

屬性值

Microsoft.Security/serverVulnerabilityAssessments

名字 描述 價值
名字 資源名稱 'default' (必要)
parent_id 要套用此延伸模組資源之資源的標識碼。 字串 (必要)
類型 資源類型 “Microsoft.Security/serverVulnerabilityAssessments@2020-01-01”