This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.policyinsights.getRemediationAtResource
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Gets an existing remediation at resource scope. Azure REST API version: 2021-10-01.
Other available API versions: 2024-10-01.
Using getRemediationAtResource
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 getRemediationAtResource(args: GetRemediationAtResourceArgs, opts?: InvokeOptions): Promise<GetRemediationAtResourceResult>
function getRemediationAtResourceOutput(args: GetRemediationAtResourceOutputArgs, opts?: InvokeOptions): Output<GetRemediationAtResourceResult>def get_remediation_at_resource(remediation_name: Optional[str] = None,
                                resource_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetRemediationAtResourceResult
def get_remediation_at_resource_output(remediation_name: Optional[pulumi.Input[str]] = None,
                                resource_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetRemediationAtResourceResult]func LookupRemediationAtResource(ctx *Context, args *LookupRemediationAtResourceArgs, opts ...InvokeOption) (*LookupRemediationAtResourceResult, error)
func LookupRemediationAtResourceOutput(ctx *Context, args *LookupRemediationAtResourceOutputArgs, opts ...InvokeOption) LookupRemediationAtResourceResultOutput> Note: This function is named LookupRemediationAtResource in the Go SDK.
public static class GetRemediationAtResource 
{
    public static Task<GetRemediationAtResourceResult> InvokeAsync(GetRemediationAtResourceArgs args, InvokeOptions? opts = null)
    public static Output<GetRemediationAtResourceResult> Invoke(GetRemediationAtResourceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRemediationAtResourceResult> getRemediationAtResource(GetRemediationAtResourceArgs args, InvokeOptions options)
public static Output<GetRemediationAtResourceResult> getRemediationAtResource(GetRemediationAtResourceArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:policyinsights:getRemediationAtResource
  arguments:
    # arguments dictionaryThe following arguments are supported:
- RemediationName string
- The name of the remediation.
- ResourceId string
- Resource ID.
- RemediationName string
- The name of the remediation.
- ResourceId string
- Resource ID.
- remediationName String
- The name of the remediation.
- resourceId String
- Resource ID.
- remediationName string
- The name of the remediation.
- resourceId string
- Resource ID.
- remediation_name str
- The name of the remediation.
- resource_id str
- Resource ID.
- remediationName String
- The name of the remediation.
- resourceId String
- Resource ID.
getRemediationAtResource Result
The following output properties are available:
- CorrelationId string
- The remediation correlation Id. Can be used to find events related to the remediation in the activity log.
- CreatedOn string
- The time at which the remediation was created.
- DeploymentStatus Pulumi.Azure Native. Policy Insights. Outputs. Remediation Deployment Summary Response 
- The deployment status summary for all deployments created by the remediation.
- Id string
- The ID of the remediation.
- LastUpdated stringOn 
- The time at which the remediation was last updated.
- Name string
- The name of the remediation.
- ProvisioningState string
- The status of the remediation. This refers to the entire remediation task, not individual deployments. Allowed values are Evaluating, Canceled, Cancelling, Failed, Complete, or Succeeded.
- StatusMessage string
- The remediation status message. Provides additional details regarding the state of the remediation.
- SystemData Pulumi.Azure Native. Policy Insights. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the remediation.
- FailureThreshold Pulumi.Azure Native. Policy Insights. Outputs. Remediation Properties Response Failure Threshold 
- The remediation failure threshold settings
- Filters
Pulumi.Azure Native. Policy Insights. Outputs. Remediation Filters Response 
- The filters that will be applied to determine which resources to remediate.
- ParallelDeployments int
- Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.
- PolicyAssignment stringId 
- The resource ID of the policy assignment that should be remediated.
- PolicyDefinition stringReference Id 
- The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
- ResourceCount int
- Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.
- ResourceDiscovery stringMode 
- The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.
- CorrelationId string
- The remediation correlation Id. Can be used to find events related to the remediation in the activity log.
- CreatedOn string
- The time at which the remediation was created.
- DeploymentStatus RemediationDeployment Summary Response 
- The deployment status summary for all deployments created by the remediation.
- Id string
- The ID of the remediation.
- LastUpdated stringOn 
- The time at which the remediation was last updated.
- Name string
- The name of the remediation.
- ProvisioningState string
- The status of the remediation. This refers to the entire remediation task, not individual deployments. Allowed values are Evaluating, Canceled, Cancelling, Failed, Complete, or Succeeded.
- StatusMessage string
- The remediation status message. Provides additional details regarding the state of the remediation.
- SystemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the remediation.
- FailureThreshold RemediationProperties Response Failure Threshold 
- The remediation failure threshold settings
- Filters
RemediationFilters Response 
- The filters that will be applied to determine which resources to remediate.
- ParallelDeployments int
- Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.
- PolicyAssignment stringId 
- The resource ID of the policy assignment that should be remediated.
- PolicyDefinition stringReference Id 
- The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
- ResourceCount int
- Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.
- ResourceDiscovery stringMode 
- The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.
- correlationId String
- The remediation correlation Id. Can be used to find events related to the remediation in the activity log.
- createdOn String
- The time at which the remediation was created.
- deploymentStatus RemediationDeployment Summary Response 
- The deployment status summary for all deployments created by the remediation.
- id String
- The ID of the remediation.
- lastUpdated StringOn 
- The time at which the remediation was last updated.
- name String
- The name of the remediation.
- provisioningState String
- The status of the remediation. This refers to the entire remediation task, not individual deployments. Allowed values are Evaluating, Canceled, Cancelling, Failed, Complete, or Succeeded.
- statusMessage String
- The remediation status message. Provides additional details regarding the state of the remediation.
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the remediation.
- failureThreshold RemediationProperties Response Failure Threshold 
- The remediation failure threshold settings
- filters
RemediationFilters Response 
- The filters that will be applied to determine which resources to remediate.
- parallelDeployments Integer
- Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.
- policyAssignment StringId 
- The resource ID of the policy assignment that should be remediated.
- policyDefinition StringReference Id 
- The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
- resourceCount Integer
- Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.
- resourceDiscovery StringMode 
- The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.
- correlationId string
- The remediation correlation Id. Can be used to find events related to the remediation in the activity log.
- createdOn string
- The time at which the remediation was created.
- deploymentStatus RemediationDeployment Summary Response 
- The deployment status summary for all deployments created by the remediation.
- id string
- The ID of the remediation.
- lastUpdated stringOn 
- The time at which the remediation was last updated.
- name string
- The name of the remediation.
- provisioningState string
- The status of the remediation. This refers to the entire remediation task, not individual deployments. Allowed values are Evaluating, Canceled, Cancelling, Failed, Complete, or Succeeded.
- statusMessage string
- The remediation status message. Provides additional details regarding the state of the remediation.
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the remediation.
- failureThreshold RemediationProperties Response Failure Threshold 
- The remediation failure threshold settings
- filters
RemediationFilters Response 
- The filters that will be applied to determine which resources to remediate.
- parallelDeployments number
- Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.
- policyAssignment stringId 
- The resource ID of the policy assignment that should be remediated.
- policyDefinition stringReference Id 
- The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
- resourceCount number
- Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.
- resourceDiscovery stringMode 
- The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.
- correlation_id str
- The remediation correlation Id. Can be used to find events related to the remediation in the activity log.
- created_on str
- The time at which the remediation was created.
- deployment_status RemediationDeployment Summary Response 
- The deployment status summary for all deployments created by the remediation.
- id str
- The ID of the remediation.
- last_updated_ stron 
- The time at which the remediation was last updated.
- name str
- The name of the remediation.
- provisioning_state str
- The status of the remediation. This refers to the entire remediation task, not individual deployments. Allowed values are Evaluating, Canceled, Cancelling, Failed, Complete, or Succeeded.
- status_message str
- The remediation status message. Provides additional details regarding the state of the remediation.
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the remediation.
- failure_threshold RemediationProperties Response Failure Threshold 
- The remediation failure threshold settings
- filters
RemediationFilters Response 
- The filters that will be applied to determine which resources to remediate.
- parallel_deployments int
- Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.
- policy_assignment_ strid 
- The resource ID of the policy assignment that should be remediated.
- policy_definition_ strreference_ id 
- The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
- resource_count int
- Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.
- resource_discovery_ strmode 
- The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.
- correlationId String
- The remediation correlation Id. Can be used to find events related to the remediation in the activity log.
- createdOn String
- The time at which the remediation was created.
- deploymentStatus Property Map
- The deployment status summary for all deployments created by the remediation.
- id String
- The ID of the remediation.
- lastUpdated StringOn 
- The time at which the remediation was last updated.
- name String
- The name of the remediation.
- provisioningState String
- The status of the remediation. This refers to the entire remediation task, not individual deployments. Allowed values are Evaluating, Canceled, Cancelling, Failed, Complete, or Succeeded.
- statusMessage String
- The remediation status message. Provides additional details regarding the state of the remediation.
- systemData Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the remediation.
- failureThreshold Property Map
- The remediation failure threshold settings
- filters Property Map
- The filters that will be applied to determine which resources to remediate.
- parallelDeployments Number
- Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used.
- policyAssignment StringId 
- The resource ID of the policy assignment that should be remediated.
- policyDefinition StringReference Id 
- The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
- resourceCount Number
- Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used.
- resourceDiscovery StringMode 
- The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.
Supporting Types
RemediationDeploymentSummaryResponse   
- FailedDeployments int
- The number of deployments required by the remediation that have failed.
- SuccessfulDeployments int
- The number of deployments required by the remediation that have succeeded.
- TotalDeployments int
- The number of deployments required by the remediation.
- FailedDeployments int
- The number of deployments required by the remediation that have failed.
- SuccessfulDeployments int
- The number of deployments required by the remediation that have succeeded.
- TotalDeployments int
- The number of deployments required by the remediation.
- failedDeployments Integer
- The number of deployments required by the remediation that have failed.
- successfulDeployments Integer
- The number of deployments required by the remediation that have succeeded.
- totalDeployments Integer
- The number of deployments required by the remediation.
- failedDeployments number
- The number of deployments required by the remediation that have failed.
- successfulDeployments number
- The number of deployments required by the remediation that have succeeded.
- totalDeployments number
- The number of deployments required by the remediation.
- failed_deployments int
- The number of deployments required by the remediation that have failed.
- successful_deployments int
- The number of deployments required by the remediation that have succeeded.
- total_deployments int
- The number of deployments required by the remediation.
- failedDeployments Number
- The number of deployments required by the remediation that have failed.
- successfulDeployments Number
- The number of deployments required by the remediation that have succeeded.
- totalDeployments Number
- The number of deployments required by the remediation.
RemediationFiltersResponse  
- Locations List<string>
- The resource locations that will be remediated.
- Locations []string
- The resource locations that will be remediated.
- locations List<String>
- The resource locations that will be remediated.
- locations string[]
- The resource locations that will be remediated.
- locations Sequence[str]
- The resource locations that will be remediated.
- locations List<String>
- The resource locations that will be remediated.
RemediationPropertiesResponseFailureThreshold    
- Percentage double
- A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
- Percentage float64
- A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
- percentage Double
- A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
- percentage number
- A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
- percentage float
- A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
- percentage Number
- A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
SystemDataResponse  
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified 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.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified 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 v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi