azure-native.alertsmanagement.Issue
Explore with Pulumi AI
The Issue resource
Uses Azure REST API version 2025-03-01-preview.
Example Usage
Issue_Create_MaximumSet_Gen
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var issue = new AzureNative.AlertsManagement.Issue("issue", new()
{
IssueName = "3f29e1b2b05f8371595dc761fed8e8b3",
Properties = new AzureNative.AlertsManagement.Inputs.IssuePropertiesArgs
{
ImpactTime = "2024-12-13T02:45:33",
Severity = "Sev2",
Status = AzureNative.AlertsManagement.Status.New,
Title = "Alert fired on VM CPU",
},
ResourceUri = "subscriptions/aceaa046-91f0-492a-96dc-45e10a9183dc/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
});
});
package main
import (
alertsmanagement "github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := alertsmanagement.NewIssue(ctx, "issue", &alertsmanagement.IssueArgs{
IssueName: pulumi.String("3f29e1b2b05f8371595dc761fed8e8b3"),
Properties: &alertsmanagement.IssuePropertiesArgs{
ImpactTime: pulumi.String("2024-12-13T02:45:33"),
Severity: pulumi.String("Sev2"),
Status: pulumi.String(alertsmanagement.StatusNew),
Title: pulumi.String("Alert fired on VM CPU"),
},
ResourceUri: pulumi.String("subscriptions/aceaa046-91f0-492a-96dc-45e10a9183dc/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.alertsmanagement.Issue;
import com.pulumi.azurenative.alertsmanagement.IssueArgs;
import com.pulumi.azurenative.alertsmanagement.inputs.IssuePropertiesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var issue = new Issue("issue", IssueArgs.builder()
.issueName("3f29e1b2b05f8371595dc761fed8e8b3")
.properties(IssuePropertiesArgs.builder()
.impactTime("2024-12-13T02:45:33")
.severity("Sev2")
.status("New")
.title("Alert fired on VM CPU")
.build())
.resourceUri("subscriptions/aceaa046-91f0-492a-96dc-45e10a9183dc/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const issue = new azure_native.alertsmanagement.Issue("issue", {
issueName: "3f29e1b2b05f8371595dc761fed8e8b3",
properties: {
impactTime: "2024-12-13T02:45:33",
severity: "Sev2",
status: azure_native.alertsmanagement.Status.New,
title: "Alert fired on VM CPU",
},
resourceUri: "subscriptions/aceaa046-91f0-492a-96dc-45e10a9183dc/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
});
import pulumi
import pulumi_azure_native as azure_native
issue = azure_native.alertsmanagement.Issue("issue",
issue_name="3f29e1b2b05f8371595dc761fed8e8b3",
properties={
"impact_time": "2024-12-13T02:45:33",
"severity": "Sev2",
"status": azure_native.alertsmanagement.Status.NEW,
"title": "Alert fired on VM CPU",
},
resource_uri="subscriptions/aceaa046-91f0-492a-96dc-45e10a9183dc/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1")
resources:
issue:
type: azure-native:alertsmanagement:Issue
properties:
issueName: 3f29e1b2b05f8371595dc761fed8e8b3
properties:
impactTime: 2024-12-13T02:45:33
severity: Sev2
status: New
title: Alert fired on VM CPU
resourceUri: subscriptions/aceaa046-91f0-492a-96dc-45e10a9183dc/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1
Create Issue Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Issue(name: string, args: IssueArgs, opts?: CustomResourceOptions);
@overload
def Issue(resource_name: str,
args: IssueArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Issue(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_uri: Optional[str] = None,
issue_name: Optional[str] = None,
properties: Optional[IssuePropertiesArgs] = None)
func NewIssue(ctx *Context, name string, args IssueArgs, opts ...ResourceOption) (*Issue, error)
public Issue(string name, IssueArgs args, CustomResourceOptions? opts = null)
type: azure-native:alertsmanagement:Issue
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args IssueArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args IssueArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args IssueArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IssueArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IssueArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var issueResource = new AzureNative.AlertsManagement.Issue("issueResource", new()
{
ResourceUri = "string",
IssueName = "string",
Properties = new AzureNative.AlertsManagement.Inputs.IssuePropertiesArgs
{
ImpactTime = "string",
Severity = "string",
Status = "string",
Title = "string",
},
});
example, err := alertsmanagement.NewIssue(ctx, "issueResource", &alertsmanagement.IssueArgs{
ResourceUri: pulumi.String("string"),
IssueName: pulumi.String("string"),
Properties: &alertsmanagement.IssuePropertiesArgs{
ImpactTime: pulumi.String("string"),
Severity: pulumi.String("string"),
Status: pulumi.String("string"),
Title: pulumi.String("string"),
},
})
var issueResource = new Issue("issueResource", IssueArgs.builder()
.resourceUri("string")
.issueName("string")
.properties(IssuePropertiesArgs.builder()
.impactTime("string")
.severity("string")
.status("string")
.title("string")
.build())
.build());
issue_resource = azure_native.alertsmanagement.Issue("issueResource",
resource_uri="string",
issue_name="string",
properties={
"impact_time": "string",
"severity": "string",
"status": "string",
"title": "string",
})
const issueResource = new azure_native.alertsmanagement.Issue("issueResource", {
resourceUri: "string",
issueName: "string",
properties: {
impactTime: "string",
severity: "string",
status: "string",
title: "string",
},
});
type: azure-native:alertsmanagement:Issue
properties:
issueName: string
properties:
impactTime: string
severity: string
status: string
title: string
resourceUri: string
Issue Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Issue resource accepts the following input properties:
- Resource
Uri string - The fully qualified Azure Resource manager identifier of the resource.
- Issue
Name string - The name of the IssueResource
- Properties
Pulumi.
Azure Native. Alerts Management. Inputs. Issue Properties - The resource-specific properties for this resource.
- Resource
Uri string - The fully qualified Azure Resource manager identifier of the resource.
- Issue
Name string - The name of the IssueResource
- Properties
Issue
Properties Args - The resource-specific properties for this resource.
- resource
Uri String - The fully qualified Azure Resource manager identifier of the resource.
- issue
Name String - The name of the IssueResource
- properties
Issue
Properties - The resource-specific properties for this resource.
- resource
Uri string - The fully qualified Azure Resource manager identifier of the resource.
- issue
Name string - The name of the IssueResource
- properties
Issue
Properties - The resource-specific properties for this resource.
- resource_
uri str - The fully qualified Azure Resource manager identifier of the resource.
- issue_
name str - The name of the IssueResource
- properties
Issue
Properties Args - The resource-specific properties for this resource.
- resource
Uri String - The fully qualified Azure Resource manager identifier of the resource.
- issue
Name String - The name of the IssueResource
- properties Property Map
- The resource-specific properties for this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Issue resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Alerts Management. 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
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the 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
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the 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
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the 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
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the 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
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the 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
InvestigationExecutionResponse, InvestigationExecutionResponseArgs
- Completed
At string - The time at which the investigation execution completed (in UTC)
- Run
State string - The state of the investigation execution
- Completed
At string - The time at which the investigation execution completed (in UTC)
- Run
State string - The state of the investigation execution
- completed
At String - The time at which the investigation execution completed (in UTC)
- run
State String - The state of the investigation execution
- completed
At string - The time at which the investigation execution completed (in UTC)
- run
State string - The state of the investigation execution
- completed_
at str - The time at which the investigation execution completed (in UTC)
- run_
state str - The state of the investigation execution
- completed
At String - The time at which the investigation execution completed (in UTC)
- run
State String - The state of the investigation execution
InvestigationMetadataResponse, InvestigationMetadataResponseArgs
- Created
At string - The creation time of the investigation (in UTC)
- Execution
Pulumi.
Azure Native. Alerts Management. Inputs. Investigation Execution Response - The execution details of the investigation
- Id string
- The unique identifier of the investigation
- Run
Parameters Pulumi.Azure Native. Alerts Management. Inputs. Run Parameters Response - The parameters that were used to start the investigation
- Created
At string - The creation time of the investigation (in UTC)
- Execution
Investigation
Execution Response - The execution details of the investigation
- Id string
- The unique identifier of the investigation
- Run
Parameters RunParameters Response - The parameters that were used to start the investigation
- created
At String - The creation time of the investigation (in UTC)
- execution
Investigation
Execution Response - The execution details of the investigation
- id String
- The unique identifier of the investigation
- run
Parameters RunParameters Response - The parameters that were used to start the investigation
- created
At string - The creation time of the investigation (in UTC)
- execution
Investigation
Execution Response - The execution details of the investigation
- id string
- The unique identifier of the investigation
- run
Parameters RunParameters Response - The parameters that were used to start the investigation
- created_
at str - The creation time of the investigation (in UTC)
- execution
Investigation
Execution Response - The execution details of the investigation
- id str
- The unique identifier of the investigation
- run_
parameters RunParameters Response - The parameters that were used to start the investigation
- created
At String - The creation time of the investigation (in UTC)
- execution Property Map
- The execution details of the investigation
- id String
- The unique identifier of the investigation
- run
Parameters Property Map - The parameters that were used to start the investigation
InvestigationScopeResponse, InvestigationScopeResponseArgs
- Id string
- The ID of the scope of the investigation - either an Azure alert ID or an Azure resource ID
- Origin
Pulumi.
Azure Native. Alerts Management. Inputs. Origin Response - The origin of the scope
- Relevance string
- The relevance of the scope
- Id string
- The ID of the scope of the investigation - either an Azure alert ID or an Azure resource ID
- Origin
Origin
Response - The origin of the scope
- Relevance string
- The relevance of the scope
- id String
- The ID of the scope of the investigation - either an Azure alert ID or an Azure resource ID
- origin
Origin
Response - The origin of the scope
- relevance String
- The relevance of the scope
- id string
- The ID of the scope of the investigation - either an Azure alert ID or an Azure resource ID
- origin
Origin
Response - The origin of the scope
- relevance string
- The relevance of the scope
- id str
- The ID of the scope of the investigation - either an Azure alert ID or an Azure resource ID
- origin
Origin
Response - The origin of the scope
- relevance str
- The relevance of the scope
- id String
- The ID of the scope of the investigation - either an Azure alert ID or an Azure resource ID
- origin Property Map
- The origin of the scope
- relevance String
- The relevance of the scope
IssueProperties, IssuePropertiesArgs
- Impact
Time string - The issue impact time (in UTC)
- Severity string
- The issue severity
- Status
string | Pulumi.
Azure Native. Alerts Management. Status - The issue status
- Title string
- The issue title
- Impact
Time string - The issue impact time (in UTC)
- Severity string
- The issue severity
- Status string | Status
- The issue status
- Title string
- The issue title
- impact
Time String - The issue impact time (in UTC)
- severity String
- The issue severity
- status String | Status
- The issue status
- title String
- The issue title
- impact
Time string - The issue impact time (in UTC)
- severity string
- The issue severity
- status string | Status
- The issue status
- title string
- The issue title
- impact_
time str - The issue impact time (in UTC)
- severity str
- The issue severity
- status str | Status
- The issue status
- title str
- The issue title
- impact
Time String - The issue impact time (in UTC)
- severity String
- The issue severity
- status
String | "New" | "In
Progress" | "Mitigated" | "Closed" | "Canceled" - The issue status
- title String
- The issue title
IssuePropertiesResponse, IssuePropertiesResponseArgs
- Impact
Time string - The issue impact time (in UTC)
- Investigations
List<Pulumi.
Azure Native. Alerts Management. Inputs. Investigation Metadata Response> - The list of investigations in the issue
- Investigations
Count int - The number of investigations in the issue
- Provisioning
State string - The provisioning state of the resource.
- Severity string
- The issue severity
- Status string
- The issue status
- Title string
- The issue title
- Impact
Time string - The issue impact time (in UTC)
- Investigations
[]Investigation
Metadata Response - The list of investigations in the issue
- Investigations
Count int - The number of investigations in the issue
- Provisioning
State string - The provisioning state of the resource.
- Severity string
- The issue severity
- Status string
- The issue status
- Title string
- The issue title
- impact
Time String - The issue impact time (in UTC)
- investigations
List<Investigation
Metadata Response> - The list of investigations in the issue
- investigations
Count Integer - The number of investigations in the issue
- provisioning
State String - The provisioning state of the resource.
- severity String
- The issue severity
- status String
- The issue status
- title String
- The issue title
- impact
Time string - The issue impact time (in UTC)
- investigations
Investigation
Metadata Response[] - The list of investigations in the issue
- investigations
Count number - The number of investigations in the issue
- provisioning
State string - The provisioning state of the resource.
- severity string
- The issue severity
- status string
- The issue status
- title string
- The issue title
- impact_
time str - The issue impact time (in UTC)
- investigations
Sequence[Investigation
Metadata Response] - The list of investigations in the issue
- investigations_
count int - The number of investigations in the issue
- provisioning_
state str - The provisioning state of the resource.
- severity str
- The issue severity
- status str
- The issue status
- title str
- The issue title
- impact
Time String - The issue impact time (in UTC)
- investigations List<Property Map>
- The list of investigations in the issue
- investigations
Count Number - The number of investigations in the issue
- provisioning
State String - The provisioning state of the resource.
- severity String
- The issue severity
- status String
- The issue status
- title String
- The issue title
OriginResponse, OriginResponseArgs
- Added
By string - The ID of the origin - for example, in case of 'Manual', the object ID of the identity, and in case of 'Automatic', the name of the automatic system
- Added
By stringType - The source of the origin - Manual or Automatic
- Added
By string - The ID of the origin - for example, in case of 'Manual', the object ID of the identity, and in case of 'Automatic', the name of the automatic system
- Added
By stringType - The source of the origin - Manual or Automatic
- added
By String - The ID of the origin - for example, in case of 'Manual', the object ID of the identity, and in case of 'Automatic', the name of the automatic system
- added
By StringType - The source of the origin - Manual or Automatic
- added
By string - The ID of the origin - for example, in case of 'Manual', the object ID of the identity, and in case of 'Automatic', the name of the automatic system
- added
By stringType - The source of the origin - Manual or Automatic
- added_
by str - The ID of the origin - for example, in case of 'Manual', the object ID of the identity, and in case of 'Automatic', the name of the automatic system
- added_
by_ strtype - The source of the origin - Manual or Automatic
- added
By String - The ID of the origin - for example, in case of 'Manual', the object ID of the identity, and in case of 'Automatic', the name of the automatic system
- added
By StringType - The source of the origin - Manual or Automatic
RunParametersResponse, RunParametersResponseArgs
- Alerts
List<Pulumi.
Azure Native. Alerts Management. Inputs. Investigation Scope Response> - The alerts used to run the investigation
- Impact
Time string - The impact time to investigate (in UTC)
- Resources
List<Pulumi.
Azure Native. Alerts Management. Inputs. Investigation Scope Response> - The resources used to run the investigation
- Alerts
[]Investigation
Scope Response - The alerts used to run the investigation
- Impact
Time string - The impact time to investigate (in UTC)
- Resources
[]Investigation
Scope Response - The resources used to run the investigation
- alerts
List<Investigation
Scope Response> - The alerts used to run the investigation
- impact
Time String - The impact time to investigate (in UTC)
- resources
List<Investigation
Scope Response> - The resources used to run the investigation
- alerts
Investigation
Scope Response[] - The alerts used to run the investigation
- impact
Time string - The impact time to investigate (in UTC)
- resources
Investigation
Scope Response[] - The resources used to run the investigation
- alerts
Sequence[Investigation
Scope Response] - The alerts used to run the investigation
- impact_
time str - The impact time to investigate (in UTC)
- resources
Sequence[Investigation
Scope Response] - The resources used to run the investigation
- alerts List<Property Map>
- The alerts used to run the investigation
- impact
Time String - The impact time to investigate (in UTC)
- resources List<Property Map>
- The resources used to run the investigation
Status, StatusArgs
- New
- NewThe issue is new
- In
Progress - InProgressThe issue is in progress
- Mitigated
- MitigatedThe issue is mitigated
- Closed
- ClosedThe issue is closed
- Canceled
- CanceledThe issue is canceled
- Status
New - NewThe issue is new
- Status
In Progress - InProgressThe issue is in progress
- Status
Mitigated - MitigatedThe issue is mitigated
- Status
Closed - ClosedThe issue is closed
- Status
Canceled - CanceledThe issue is canceled
- New
- NewThe issue is new
- In
Progress - InProgressThe issue is in progress
- Mitigated
- MitigatedThe issue is mitigated
- Closed
- ClosedThe issue is closed
- Canceled
- CanceledThe issue is canceled
- New
- NewThe issue is new
- In
Progress - InProgressThe issue is in progress
- Mitigated
- MitigatedThe issue is mitigated
- Closed
- ClosedThe issue is closed
- Canceled
- CanceledThe issue is canceled
- NEW
- NewThe issue is new
- IN_PROGRESS
- InProgressThe issue is in progress
- MITIGATED
- MitigatedThe issue is mitigated
- CLOSED
- ClosedThe issue is closed
- CANCELED
- CanceledThe issue is canceled
- "New"
- NewThe issue is new
- "In
Progress" - InProgressThe issue is in progress
- "Mitigated"
- MitigatedThe issue is mitigated
- "Closed"
- ClosedThe issue is closed
- "Canceled"
- CanceledThe issue is canceled
SystemDataResponse, SystemDataResponseArgs
- 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.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:alertsmanagement:Issue 3f29e1b2b05f8371595dc761fed8e8b3 /{resourceUri}/providers/Microsoft.AlertsManagement/issues/{issueName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0