az monitor health-models
Note
This reference is part of the health-models extension for the Azure CLI (version 2.75.0 or higher). The extension will automatically install the first time you run an az monitor health-models command. Learn more about extensions.
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage Azure Monitor health models.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az monitor health-models authentication-setting |
Manage Authenticationsetting. |
Extension | Preview |
| az monitor health-models authentication-setting create |
Create a AuthenticationSetting. |
Extension | Preview |
| az monitor health-models authentication-setting delete |
Delete a AuthenticationSetting. |
Extension | Preview |
| az monitor health-models authentication-setting list |
List AuthenticationSetting resources by HealthModel. |
Extension | Preview |
| az monitor health-models authentication-setting show |
Get a AuthenticationSetting. |
Extension | Preview |
| az monitor health-models authentication-setting update |
Update a AuthenticationSetting. |
Extension | Preview |
| az monitor health-models authentication-setting wait |
Place the CLI in a waiting state until a condition is met. |
Extension | Preview |
| az monitor health-models create |
Create a HealthModel. |
Extension | Preview |
| az monitor health-models delete |
Delete a HealthModel. |
Extension | Preview |
| az monitor health-models discovery-rule |
Manage Discoveryrule. |
Extension | Preview |
| az monitor health-models discovery-rule create |
Create a DiscoveryRule. |
Extension | Preview |
| az monitor health-models discovery-rule delete |
Delete a DiscoveryRule. |
Extension | Preview |
| az monitor health-models discovery-rule list |
List DiscoveryRule resources by HealthModel. |
Extension | Preview |
| az monitor health-models discovery-rule show |
Get a DiscoveryRule. |
Extension | Preview |
| az monitor health-models discovery-rule update |
Update a DiscoveryRule. |
Extension | Preview |
| az monitor health-models discovery-rule wait |
Place the CLI in a waiting state until a condition is met. |
Extension | Preview |
| az monitor health-models entity |
Manage Entity. |
Extension | Preview |
| az monitor health-models entity add-data-annotation |
Add a data annotation to an entity. |
Extension | Preview |
| az monitor health-models entity create |
Create a Entity. |
Extension | Preview |
| az monitor health-models entity delete |
Delete a Entity. |
Extension | Preview |
| az monitor health-models entity get-data-annotations |
Retrieve data annotations for an entity. |
Extension | Preview |
| az monitor health-models entity get-history |
Retrieve the health state transition history for an entity. |
Extension | Preview |
| az monitor health-models entity get-signal-history |
Retrieve the time series history for a signal on an entity. |
Extension | Preview |
| az monitor health-models entity get-signal-recommendations |
Get recommended signal configurations for a given Entity (only applicable for Entities representing Azure resources). |
Extension | Preview |
| az monitor health-models entity ingest-health-report |
Ingest a health report for a specific signal on an entity (the entity must already exist). |
Extension | Preview |
| az monitor health-models entity list |
List Entity resources by HealthModel. |
Extension | Preview |
| az monitor health-models entity show |
Get a Entity. |
Extension | Preview |
| az monitor health-models entity update |
Update a Entity. |
Extension | Preview |
| az monitor health-models entity wait |
Place the CLI in a waiting state until a condition is met. |
Extension | Preview |
| az monitor health-models identity |
Manage Identity. |
Extension | Preview |
| az monitor health-models identity assign |
Assign the user or system managed identities. |
Extension | Preview |
| az monitor health-models identity remove |
Remove the user or system managed identities. |
Extension | Preview |
| az monitor health-models identity show |
Show the details of managed identities. |
Extension | Preview |
| az monitor health-models identity wait |
Place the CLI in a waiting state until a condition is met. |
Extension | Preview |
| az monitor health-models list |
List HealthModel resources by subscription ID. |
Extension | Preview |
| az monitor health-models relationship |
Manage Relationship. |
Extension | Preview |
| az monitor health-models relationship create |
Create a Relationship. |
Extension | Preview |
| az monitor health-models relationship delete |
Delete a Relationship. |
Extension | Preview |
| az monitor health-models relationship list |
List Relationship resources by HealthModel. |
Extension | Preview |
| az monitor health-models relationship show |
Get a Relationship. |
Extension | Preview |
| az monitor health-models relationship update |
Update a Relationship. |
Extension | Preview |
| az monitor health-models relationship wait |
Place the CLI in a waiting state until a condition is met. |
Extension | Preview |
| az monitor health-models show |
Get a HealthModel. |
Extension | Preview |
| az monitor health-models signal-definition |
Manage Signaldefinition. |
Extension | Preview |
| az monitor health-models signal-definition create |
Create a SignalDefinition. |
Extension | Preview |
| az monitor health-models signal-definition delete |
Delete a SignalDefinition. |
Extension | Preview |
| az monitor health-models signal-definition list |
List SignalDefinition resources by HealthModel. |
Extension | Preview |
| az monitor health-models signal-definition show |
Get a SignalDefinition. |
Extension | Preview |
| az monitor health-models signal-definition update |
Update a SignalDefinition. |
Extension | Preview |
| az monitor health-models signal-definition wait |
Place the CLI in a waiting state until a condition is met. |
Extension | Preview |
| az monitor health-models update |
Update a HealthModel. |
Extension | Preview |
| az monitor health-models wait |
Place the CLI in a waiting state until a condition is met. |
Extension | Preview |
az monitor health-models create
Command group 'az monitor health-models' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create a HealthModel.
az monitor health-models create --health-model-name --name
--resource-group
[--acquire-policy-token]
[--change-reference]
[--location]
[--mi-system-assigned --system-assigned]
[--mi-user-assigned --user-assigned]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--tags]
Examples
HealthModels_Create
az monitor health-models create --resource-group rgopenapi --health-model-name model1 --type SystemAssigned, UserAssigned --user-assigned-identities "{/subscriptions/4980D7D5-4E07-47AD-AD34-E76C6BC9F061/resourceGroups/rgopenapi/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ua1:{}}" --tags "{key2961:hbljozzkqrpcthsjtfkyozpwyx}" --location eastus2
Required Parameters
Name of health model resource.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The geo-location where the resource lives When not specified, the location of the resource group will be used.
| Property | Value |
|---|---|
| Parameter group: | Resource Arguments |
Set the system managed identity.
| Property | Value |
|---|---|
| Parameter group: | Identity Arguments |
Set the user managed identities. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | Identity Arguments |
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Resource tags. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | Resource Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az monitor health-models delete
Command group 'az monitor health-models' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete a HealthModel.
az monitor health-models delete [--acquire-policy-token]
[--change-reference]
[--health-model-name --name]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
[--yes]
Examples
HealthModels_Delete
az monitor health-models delete --resource-group rgopenapi --health-model-name model1
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Name of health model resource.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Do not prompt for confirmation.
| Property | Value |
|---|---|
| Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az monitor health-models list
Command group 'az monitor health-models' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List HealthModel resources by subscription ID.
az monitor health-models list [--max-items]
[--next-token]
[--resource-group]
Examples
HealthModels_ListBySubscription
az monitor health-models list
HealthModels_ListByResourceGroup
az monitor health-models list --resource-group rgopenapi
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token argument of a subsequent command.
| Property | Value |
|---|---|
| Parameter group: | Pagination Arguments |
Token to specify where to start paginating. This is the token value from a previously truncated response.
| Property | Value |
|---|---|
| Parameter group: | Pagination Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az monitor health-models show
Command group 'az monitor health-models' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get a HealthModel.
az monitor health-models show [--health-model-name --name]
[--ids]
[--resource-group]
[--subscription]
Examples
HealthModels_Get
az monitor health-models show --resource-group rgopenapi --health-model-name myHealthModel
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Name of health model resource.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az monitor health-models update
Command group 'az monitor health-models' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update a HealthModel.
az monitor health-models update [--acquire-policy-token]
[--add]
[--change-reference]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--health-model-name --name]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--remove]
[--resource-group]
[--set]
[--subscription]
[--tags]
Examples
HealthModels_Create
az monitor health-models update --resource-group rgopenapi --health-model-name model1 --type SystemAssigned, UserAssigned --user-assigned-identities "{/subscriptions/4980D7D5-4E07-47AD-AD34-E76C6BC9F061/resourceGroups/rgopenapi/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ua1:{}}" --tags "{key2961:hbljozzkqrpcthsjtfkyozpwyx}"
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.
| Property | Value |
|---|---|
| Parameter group: | Generic Update Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
| Property | Value |
|---|---|
| Parameter group: | Generic Update Arguments |
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Name of health model resource.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Remove a property or an element from a list. Example: --remove property.list <indexToRemove> OR --remove propertyToRemove.
| Property | Value |
|---|---|
| Parameter group: | Generic Update Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>.
| Property | Value |
|---|---|
| Parameter group: | Generic Update Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Resource tags. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | Resource Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az monitor health-models wait
Command group 'az monitor health-models' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Place the CLI in a waiting state until a condition is met.
az monitor health-models wait [--acquire-policy-token]
[--change-reference]
[--created]
[--custom]
[--deleted]
[--exists]
[--health-model-name --name]
[--ids]
[--interval]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Wait until created with 'provisioningState' at 'Succeeded'.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
Wait until deleted.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Wait until the resource exists.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Name of health model resource.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Polling interval in seconds.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | 30 |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Maximum wait in seconds.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | 3600 |
Wait until updated with provisioningState at 'Succeeded'.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |