This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.6.1 published on Friday, Aug 1, 2025 by Pulumi
azure-native.cloudhealth.getDiscoveryRule
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.6.1 published on Friday, Aug 1, 2025 by Pulumi
Get a DiscoveryRule
Uses Azure REST API version 2025-05-01-preview.
Using getDiscoveryRule
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDiscoveryRule(args: GetDiscoveryRuleArgs, opts?: InvokeOptions): Promise<GetDiscoveryRuleResult>
function getDiscoveryRuleOutput(args: GetDiscoveryRuleOutputArgs, opts?: InvokeOptions): Output<GetDiscoveryRuleResult>
def get_discovery_rule(discovery_rule_name: Optional[str] = None,
health_model_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDiscoveryRuleResult
def get_discovery_rule_output(discovery_rule_name: Optional[pulumi.Input[str]] = None,
health_model_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDiscoveryRuleResult]
func LookupDiscoveryRule(ctx *Context, args *LookupDiscoveryRuleArgs, opts ...InvokeOption) (*LookupDiscoveryRuleResult, error)
func LookupDiscoveryRuleOutput(ctx *Context, args *LookupDiscoveryRuleOutputArgs, opts ...InvokeOption) LookupDiscoveryRuleResultOutput
> Note: This function is named LookupDiscoveryRule
in the Go SDK.
public static class GetDiscoveryRule
{
public static Task<GetDiscoveryRuleResult> InvokeAsync(GetDiscoveryRuleArgs args, InvokeOptions? opts = null)
public static Output<GetDiscoveryRuleResult> Invoke(GetDiscoveryRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDiscoveryRuleResult> getDiscoveryRule(GetDiscoveryRuleArgs args, InvokeOptions options)
public static Output<GetDiscoveryRuleResult> getDiscoveryRule(GetDiscoveryRuleArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:cloudhealth:getDiscoveryRule
arguments:
# arguments dictionary
The following arguments are supported:
- Discovery
Rule stringName - Name of the discovery rule. Must be unique within a health model.
- Health
Model stringName - Name of health model resource
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Discovery
Rule stringName - Name of the discovery rule. Must be unique within a health model.
- Health
Model stringName - Name of health model resource
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- discovery
Rule StringName - Name of the discovery rule. Must be unique within a health model.
- health
Model StringName - Name of health model resource
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- discovery
Rule stringName - Name of the discovery rule. Must be unique within a health model.
- health
Model stringName - Name of health model resource
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- discovery_
rule_ strname - Name of the discovery rule. Must be unique within a health model.
- health_
model_ strname - Name of health model resource
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- discovery
Rule StringName - Name of the discovery rule. Must be unique within a health model.
- health
Model StringName - Name of health model resource
- resource
Group StringName - The name of the resource group. The name is case insensitive.
getDiscoveryRule Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- Properties
Pulumi.
Azure Native. Cloud Health. Outputs. Discovery Rule Properties Response - The resource-specific properties for this resource.
- System
Data Pulumi.Azure Native. Cloud Health. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- Properties
Discovery
Rule Properties Response - The resource-specific properties for this resource.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- properties
Discovery
Rule Properties Response - The resource-specific properties for this resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name string
- The name of the resource
- properties
Discovery
Rule Properties Response - The resource-specific properties for this resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name str
- The name of the resource
- properties
Discovery
Rule Properties Response - The resource-specific properties for this resource.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- properties Property Map
- The resource-specific properties for this resource.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
DiscoveryRulePropertiesResponse
- Add
Recommended stringSignals - Whether to add all recommended signals to the discovered entities.
- Authentication
Setting string - Reference to the name of the authentication setting which is used for querying Azure Resource Graph. The same authentication setting will also be assigned to any discovered entities.
- Deletion
Date string - Date when the discovery rule was (soft-)deleted.
- Discover
Relationships string - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- Entity
Name string - Name of the entity which represents the discovery rule. Note: It might take a few minutes after creating the discovery rule until the entity is created.
- Error
Message string - Error message if the last discovery operation failed.
- Number
Of intDiscovered Entities - Number of discovered entities in the last discovery operation.
- Provisioning
State string - The status of the last operation.
- Resource
Graph stringQuery - Azure Resource Graph query text in KQL syntax. The query must return at least a column named 'id' which contains the resource ID of the discovered resources.
- Display
Name string - Display name
- Add
Recommended stringSignals - Whether to add all recommended signals to the discovered entities.
- Authentication
Setting string - Reference to the name of the authentication setting which is used for querying Azure Resource Graph. The same authentication setting will also be assigned to any discovered entities.
- Deletion
Date string - Date when the discovery rule was (soft-)deleted.
- Discover
Relationships string - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- Entity
Name string - Name of the entity which represents the discovery rule. Note: It might take a few minutes after creating the discovery rule until the entity is created.
- Error
Message string - Error message if the last discovery operation failed.
- Number
Of intDiscovered Entities - Number of discovered entities in the last discovery operation.
- Provisioning
State string - The status of the last operation.
- Resource
Graph stringQuery - Azure Resource Graph query text in KQL syntax. The query must return at least a column named 'id' which contains the resource ID of the discovered resources.
- Display
Name string - Display name
- add
Recommended StringSignals - Whether to add all recommended signals to the discovered entities.
- authentication
Setting String - Reference to the name of the authentication setting which is used for querying Azure Resource Graph. The same authentication setting will also be assigned to any discovered entities.
- deletion
Date String - Date when the discovery rule was (soft-)deleted.
- discover
Relationships String - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- entity
Name String - Name of the entity which represents the discovery rule. Note: It might take a few minutes after creating the discovery rule until the entity is created.
- error
Message String - Error message if the last discovery operation failed.
- number
Of IntegerDiscovered Entities - Number of discovered entities in the last discovery operation.
- provisioning
State String - The status of the last operation.
- resource
Graph StringQuery - Azure Resource Graph query text in KQL syntax. The query must return at least a column named 'id' which contains the resource ID of the discovered resources.
- display
Name String - Display name
- add
Recommended stringSignals - Whether to add all recommended signals to the discovered entities.
- authentication
Setting string - Reference to the name of the authentication setting which is used for querying Azure Resource Graph. The same authentication setting will also be assigned to any discovered entities.
- deletion
Date string - Date when the discovery rule was (soft-)deleted.
- discover
Relationships string - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- entity
Name string - Name of the entity which represents the discovery rule. Note: It might take a few minutes after creating the discovery rule until the entity is created.
- error
Message string - Error message if the last discovery operation failed.
- number
Of numberDiscovered Entities - Number of discovered entities in the last discovery operation.
- provisioning
State string - The status of the last operation.
- resource
Graph stringQuery - Azure Resource Graph query text in KQL syntax. The query must return at least a column named 'id' which contains the resource ID of the discovered resources.
- display
Name string - Display name
- add_
recommended_ strsignals - Whether to add all recommended signals to the discovered entities.
- authentication_
setting str - Reference to the name of the authentication setting which is used for querying Azure Resource Graph. The same authentication setting will also be assigned to any discovered entities.
- deletion_
date str - Date when the discovery rule was (soft-)deleted.
- discover_
relationships str - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- entity_
name str - Name of the entity which represents the discovery rule. Note: It might take a few minutes after creating the discovery rule until the entity is created.
- error_
message str - Error message if the last discovery operation failed.
- number_
of_ intdiscovered_ entities - Number of discovered entities in the last discovery operation.
- provisioning_
state str - The status of the last operation.
- resource_
graph_ strquery - Azure Resource Graph query text in KQL syntax. The query must return at least a column named 'id' which contains the resource ID of the discovered resources.
- display_
name str - Display name
- add
Recommended StringSignals - Whether to add all recommended signals to the discovered entities.
- authentication
Setting String - Reference to the name of the authentication setting which is used for querying Azure Resource Graph. The same authentication setting will also be assigned to any discovered entities.
- deletion
Date String - Date when the discovery rule was (soft-)deleted.
- discover
Relationships String - Whether to create relationships between the discovered entities based on a set of built-in rules. These relationships cannot be manually deleted.
- entity
Name String - Name of the entity which represents the discovery rule. Note: It might take a few minutes after creating the discovery rule until the entity is created.
- error
Message String - Error message if the last discovery operation failed.
- number
Of NumberDiscovered Entities - Number of discovered entities in the last discovery operation.
- provisioning
State String - The status of the last operation.
- resource
Graph StringQuery - Azure Resource Graph query text in KQL syntax. The query must return at least a column named 'id' which contains the resource ID of the discovered resources.
- display
Name String - Display name
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.6.1 published on Friday, Aug 1, 2025 by Pulumi