Microsoft.Advisor configurations 2022-09-01
Bicep resource definition
The configurations resource type is an extension resource, which means you can apply it to another resource.
Use the scope
property on this resource to set the scope for this resource. See Set scope on extension resources in Bicep.
The configurations resource type can be deployed with operations that target:
- Subscriptions - See subscription deployment commands
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Advisor/configurations resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Advisor/configurations@2022-09-01' = {
name: 'default'
scope: resourceSymbolicName
properties: {
digests: [
{
actionGroupResourceId: 'string'
categories: [
'string'
]
frequency: int
language: 'string'
name: 'string'
state: 'string'
}
]
duration: 'string'
exclude: bool
lowCpuThreshold: 'string'
}
}
Property values
configurations
Name | Description | Value |
---|---|---|
name | The resource name | 'default' |
scope | Use when creating an extension resource at a scope that is different than the deployment scope. | Target resource For Bicep, set this property to the symbolic name of the resource to apply the extension resource. |
properties | The Advisor configuration data structure. | ConfigDataProperties |
ConfigDataProperties
Name | Description | Value |
---|---|---|
digests | Advisor digest configuration. Valid only for subscriptions | DigestConfig[] |
duration | Minimum duration for Advisor low CPU utilization evaluation. Valid only for subscriptions. Valid values: 7 (default), 14, 21, 30, 60 or 90. | '14' '21' '30' '60' '7' '90' |
exclude | Exclude the resource from Advisor evaluations. Valid values: False (default) or True. | bool |
lowCpuThreshold | Minimum percentage threshold for Advisor low CPU utilization evaluation. Valid only for subscriptions. Valid values: 5 (default), 10, 15 or 20. | '10' '15' '20' '5' |
DigestConfig
Name | Description | Value |
---|---|---|
actionGroupResourceId | Action group resource id used by digest. | string |
categories | Categories to send digest for. If categories are not provided, then digest will be sent for all categories. | String array containing any of: 'Cost' 'HighAvailability' 'OperationalExcellence' 'Performance' 'Security' |
frequency | Frequency that digest will be triggered, in days. Value must be between 7 and 30 days inclusive. | int |
language | Language for digest content body. Value must be ISO 639-1 code for one of Azure portal supported languages. Otherwise, it will be converted into one. Default value is English (en). | string |
name | Name of digest configuration. Value is case-insensitive and must be unique within a subscription. | string |
state | State of digest configuration. | 'Active' 'Disabled' |
ARM template resource definition
The configurations resource type is an extension resource, which means you can apply it to another resource.
Use the scope
property on this resource to set the scope for this resource. See Set scope on extension resources in ARM templates.
The configurations resource type can be deployed with operations that target:
- Subscriptions - See subscription deployment commands
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Advisor/configurations resource, add the following JSON to your template.
{
"type": "Microsoft.Advisor/configurations",
"apiVersion": "2022-09-01",
"name": "default",
"scope": "string",
"properties": {
"digests": [
{
"actionGroupResourceId": "string",
"categories": [ "string" ],
"frequency": "int",
"language": "string",
"name": "string",
"state": "string"
}
],
"duration": "string",
"exclude": "bool",
"lowCpuThreshold": "string"
}
}
Property values
configurations
Name | Description | Value |
---|---|---|
type | The resource type | 'Microsoft.Advisor/configurations' |
apiVersion | The resource api version | '2022-09-01' |
name | The resource name | 'default' |
scope | Use when creating an extension resource at a scope that is different than the deployment scope. | Target resource For JSON, set the value to the full name of the resource to apply the extension resource to. |
properties | The Advisor configuration data structure. | ConfigDataProperties |
ConfigDataProperties
Name | Description | Value |
---|---|---|
digests | Advisor digest configuration. Valid only for subscriptions | DigestConfig[] |
duration | Minimum duration for Advisor low CPU utilization evaluation. Valid only for subscriptions. Valid values: 7 (default), 14, 21, 30, 60 or 90. | '14' '21' '30' '60' '7' '90' |
exclude | Exclude the resource from Advisor evaluations. Valid values: False (default) or True. | bool |
lowCpuThreshold | Minimum percentage threshold for Advisor low CPU utilization evaluation. Valid only for subscriptions. Valid values: 5 (default), 10, 15 or 20. | '10' '15' '20' '5' |
DigestConfig
Name | Description | Value |
---|---|---|
actionGroupResourceId | Action group resource id used by digest. | string |
categories | Categories to send digest for. If categories are not provided, then digest will be sent for all categories. | String array containing any of: 'Cost' 'HighAvailability' 'OperationalExcellence' 'Performance' 'Security' |
frequency | Frequency that digest will be triggered, in days. Value must be between 7 and 30 days inclusive. | int |
language | Language for digest content body. Value must be ISO 639-1 code for one of Azure portal supported languages. Otherwise, it will be converted into one. Default value is English (en). | string |
name | Name of digest configuration. Value is case-insensitive and must be unique within a subscription. | string |
state | State of digest configuration. | 'Active' 'Disabled' |
Terraform (AzAPI provider) resource definition
The configurations resource type is an extension resource, which means you can apply it to another resource.
Use the parent_id
property on this resource to set the scope for this resource.
The configurations resource type can be deployed with operations that target:
- Subscriptions
- Resource groups
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Advisor/configurations resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Advisor/configurations@2022-09-01"
name = "default"
parent_id = "string"
body = jsonencode({
properties = {
digests = [
{
actionGroupResourceId = "string"
categories = [
"string"
]
frequency = int
language = "string"
name = "string"
state = "string"
}
]
duration = "string"
exclude = bool
lowCpuThreshold = "string"
}
})
}
Property values
configurations
Name | Description | Value |
---|---|---|
type | The resource type | "Microsoft.Advisor/configurations@2022-09-01" |
name | The resource name | "default" |
parent_id | The ID of the resource to apply this extension resource to. | string (required) |
properties | The Advisor configuration data structure. | ConfigDataProperties |
ConfigDataProperties
Name | Description | Value |
---|---|---|
digests | Advisor digest configuration. Valid only for subscriptions | DigestConfig[] |
duration | Minimum duration for Advisor low CPU utilization evaluation. Valid only for subscriptions. Valid values: 7 (default), 14, 21, 30, 60 or 90. | "14" "21" "30" "60" "7" "90" |
exclude | Exclude the resource from Advisor evaluations. Valid values: False (default) or True. | bool |
lowCpuThreshold | Minimum percentage threshold for Advisor low CPU utilization evaluation. Valid only for subscriptions. Valid values: 5 (default), 10, 15 or 20. | "10" "15" "20" "5" |
DigestConfig
Name | Description | Value |
---|---|---|
actionGroupResourceId | Action group resource id used by digest. | string |
categories | Categories to send digest for. If categories are not provided, then digest will be sent for all categories. | String array containing any of: "Cost" "HighAvailability" "OperationalExcellence" "Performance" "Security" |
frequency | Frequency that digest will be triggered, in days. Value must be between 7 and 30 days inclusive. | int |
language | Language for digest content body. Value must be ISO 639-1 code for one of Azure portal supported languages. Otherwise, it will be converted into one. Default value is English (en). | string |
name | Name of digest configuration. Value is case-insensitive and must be unique within a subscription. | string |
state | State of digest configuration. | "Active" "Disabled" |