Microsoft.Security 指派
工作分派資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.Security/assignments 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.Security/assignments@2021-08-01-preview' = {
etag: 'string'
kind: 'string'
location: 'string'
name: 'string'
properties: {
additionalData: {
exemptionCategory: 'string'
}
assignedComponent: {
key: 'string'
}
assignedStandard: {
id: 'string'
}
description: 'string'
displayName: 'string'
effect: 'string'
expiresOn: 'string'
metadata: any(Azure.Bicep.Types.Concrete.AnyType)
scope: 'string'
}
tags: {
{customized property}: 'string'
}
}
名字 |
描述 |
價值 |
鑰匙 |
安全性評估物件的唯一索引鍵 |
字串 |
名字 |
描述 |
價值 |
id |
Microsoft.Security/standard 物件的完整 resourceId |
字串 |
名字 |
描述 |
價值 |
additionalData |
有關指派的其他數據 |
AssignmentPropertiesAdditionalData |
assignedComponent |
已套用至指定範圍之此標準指派的索引鍵元件專案 |
AssignedComponentItem |
assignedStandard |
已套用至指定範圍之此標準指派的索引鍵的標準專案 |
AssignedStandardItem |
描述 |
standardAssignment 的描述 |
字串 |
displayName |
standardAssignment 的顯示名稱 |
字串 |
影響 |
此指派的預期效果 (停用/豁免/等) |
字串 |
expiresOn |
此指派的到期日為完整 ISO 日期 |
字串 |
元數據 |
指派元數據。 元數據是開放式物件,通常是索引鍵值組的集合。 |
任何 |
範圍 |
standardAssignment 套用的範圍 - 可以是訂用帳戶路徑或該訂用帳戶下的資源群組 |
字串 |
AssignmentPropertiesAdditionalData
名字 |
描述 |
價值 |
exemptionCategory |
此指派的豁免類別 |
字串 |
Microsoft.Security/assignments
名字 |
描述 |
價值 |
etag |
實體標籤用於比較來自相同要求資源的兩個或多個實體。 |
字串 |
類 |
資源的種類 |
字串 |
位置 |
儲存資源的位置 |
字串 |
名字 |
資源名稱 |
字串 (必要) |
性能 |
安全性指派的屬性 |
AssignmentProperties |
標籤 |
資源標籤 |
標記名稱和值的字典。 請參閱範本中的 標籤 |
工作分派資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.Security/assignments 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.Security/assignments",
"apiVersion": "2021-08-01-preview",
"name": "string",
"etag": "string",
"kind": "string",
"location": "string",
"properties": {
"additionalData": {
"exemptionCategory": "string"
},
"assignedComponent": {
"key": "string"
},
"assignedStandard": {
"id": "string"
},
"description": "string",
"displayName": "string",
"effect": "string",
"expiresOn": "string",
"metadata": {},
"scope": "string"
},
"tags": {
"{customized property}": "string"
}
}
名字 |
描述 |
價值 |
鑰匙 |
安全性評估物件的唯一索引鍵 |
字串 |
名字 |
描述 |
價值 |
id |
Microsoft.Security/standard 物件的完整 resourceId |
字串 |
名字 |
描述 |
價值 |
additionalData |
有關指派的其他數據 |
AssignmentPropertiesAdditionalData |
assignedComponent |
已套用至指定範圍之此標準指派的索引鍵元件專案 |
AssignedComponentItem |
assignedStandard |
已套用至指定範圍之此標準指派的索引鍵的標準專案 |
AssignedStandardItem |
描述 |
standardAssignment 的描述 |
字串 |
displayName |
standardAssignment 的顯示名稱 |
字串 |
影響 |
此指派的預期效果 (停用/豁免/等) |
字串 |
expiresOn |
此指派的到期日為完整 ISO 日期 |
字串 |
元數據 |
指派元數據。 元數據是開放式物件,通常是索引鍵值組的集合。 |
任何 |
範圍 |
standardAssignment 套用的範圍 - 可以是訂用帳戶路徑或該訂用帳戶下的資源群組 |
字串 |
AssignmentPropertiesAdditionalData
名字 |
描述 |
價值 |
exemptionCategory |
此指派的豁免類別 |
字串 |
Microsoft.Security/assignments
名字 |
描述 |
價值 |
apiVersion |
API 版本 |
'2021-08-01-preview' |
etag |
實體標籤用於比較來自相同要求資源的兩個或多個實體。 |
字串 |
類 |
資源的種類 |
字串 |
位置 |
儲存資源的位置 |
字串 |
名字 |
資源名稱 |
字串 (必要) |
性能 |
安全性指派的屬性 |
AssignmentProperties |
標籤 |
資源標籤 |
標記名稱和值的字典。 請參閱範本中的 標籤 |
類型 |
資源類型 |
'Microsoft.Security/assignments' |
Terraform (AzAPI 提供者) 資源定義
工作分派資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.Security/assignments 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Security/assignments@2021-08-01-preview"
name = "string"
etag = "string"
kind = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
additionalData = {
exemptionCategory = "string"
}
assignedComponent = {
key = "string"
}
assignedStandard = {
id = "string"
}
description = "string"
displayName = "string"
effect = "string"
expiresOn = "string"
metadata = ?
scope = "string"
}
})
}
名字 |
描述 |
價值 |
鑰匙 |
安全性評估物件的唯一索引鍵 |
字串 |
名字 |
描述 |
價值 |
id |
Microsoft.Security/standard 物件的完整 resourceId |
字串 |
名字 |
描述 |
價值 |
additionalData |
有關指派的其他數據 |
AssignmentPropertiesAdditionalData |
assignedComponent |
已套用至指定範圍之此標準指派的索引鍵元件專案 |
AssignedComponentItem |
assignedStandard |
已套用至指定範圍之此標準指派的索引鍵的標準專案 |
AssignedStandardItem |
描述 |
standardAssignment 的描述 |
字串 |
displayName |
standardAssignment 的顯示名稱 |
字串 |
影響 |
此指派的預期效果 (停用/豁免/等) |
字串 |
expiresOn |
此指派的到期日為完整 ISO 日期 |
字串 |
元數據 |
指派元數據。 元數據是開放式物件,通常是索引鍵值組的集合。 |
任何 |
範圍 |
standardAssignment 套用的範圍 - 可以是訂用帳戶路徑或該訂用帳戶下的資源群組 |
字串 |
AssignmentPropertiesAdditionalData
名字 |
描述 |
價值 |
exemptionCategory |
此指派的豁免類別 |
字串 |
Microsoft.Security/assignments
名字 |
描述 |
價值 |
etag |
實體標籤用於比較來自相同要求資源的兩個或多個實體。 |
字串 |
類 |
資源的種類 |
字串 |
位置 |
儲存資源的位置 |
字串 |
名字 |
資源名稱 |
字串 (必要) |
性能 |
安全性指派的屬性 |
AssignmentProperties |
標籤 |
資源標籤 |
標記名稱和值的字典。 |
類型 |
資源類型 |
“Microsoft.Security/assignments@2021-08-01-preview” |