published on Saturday, Jul 18, 2026 by Pulumi
published on Saturday, Jul 18, 2026 by Pulumi
Security Application over a given scope
Uses Azure REST API version 2022-07-01-preview. In version 2.x of the Azure Native provider, it used API version 2022-07-01-preview.
Example Usage
Create application
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var application = new AzureNative.Security.Application("application", new()
{
ApplicationId = "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
ConditionSets = new[]
{
new Dictionary<string, object?>
{
["conditions"] = new[]
{
new Dictionary<string, object?>
{
["operator"] = "contains",
["property"] = "$.Id",
["value"] = "-bil-",
},
},
},
},
Description = "An application on critical recommendations",
DisplayName = "Admin's application",
SourceResourceType = AzureNative.Security.ApplicationSourceResourceType.Assessments,
});
});
package main
import (
security "github.com/pulumi/pulumi-azure-native-sdk/security/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := security.NewApplication(ctx, "application", &security.ApplicationArgs{
ApplicationId: pulumi.String("ad9a8e26-29d9-4829-bb30-e597a58cdbb8"),
ConditionSets: pulumi.Array{
pulumi.Any(map[string]interface{}{
"conditions": []map[string]interface{}{
map[string]interface{}{
"operator": "contains",
"property": "$.Id",
"value": "-bil-",
},
},
}),
},
Description: pulumi.String("An application on critical recommendations"),
DisplayName: pulumi.String("Admin's application"),
SourceResourceType: pulumi.String(security.ApplicationSourceResourceTypeAssessments),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_security_application" "application" {
application_id = "ad9a8e26-29d9-4829-bb30-e597a58cdbb8"
condition_sets = [{
"conditions" = [{
"operator" = "contains"
"property" = "$.Id"
"value" = "-bil-"
}]
}]
description = "An application on critical recommendations"
display_name = "Admin's application"
source_resource_type = "Assessments"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.security.Application;
import com.pulumi.azurenative.security.ApplicationArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 application = new Application("application", ApplicationArgs.builder()
.applicationId("ad9a8e26-29d9-4829-bb30-e597a58cdbb8")
.conditionSets(Map.of("conditions", Arrays.asList(Map.ofEntries(
Map.entry("operator", "contains"),
Map.entry("property", "$.Id"),
Map.entry("value", "-bil-")
))))
.description("An application on critical recommendations")
.displayName("Admin's application")
.sourceResourceType("Assessments")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const application = new azure_native.security.Application("application", {
applicationId: "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
conditionSets: [{
conditions: [{
operator: "contains",
property: "$.Id",
value: "-bil-",
}],
}],
description: "An application on critical recommendations",
displayName: "Admin's application",
sourceResourceType: azure_native.security.ApplicationSourceResourceType.Assessments,
});
import pulumi
import pulumi_azure_native as azure_native
application = azure_native.security.Application("application",
application_id="ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
condition_sets=[{
"conditions": [{
"operator": "contains",
"property": "$.Id",
"value": "-bil-",
}],
}],
description="An application on critical recommendations",
display_name="Admin's application",
source_resource_type=azure_native.security.ApplicationSourceResourceType.ASSESSMENTS)
resources:
application:
type: azure-native:security:Application
properties:
applicationId: ad9a8e26-29d9-4829-bb30-e597a58cdbb8
conditionSets:
- conditions:
- operator: contains
property: $.Id
value: -bil-
description: An application on critical recommendations
displayName: Admin's application
sourceResourceType: Assessments
Create Application Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Application(name: string, args: ApplicationArgs, opts?: CustomResourceOptions);@overload
def Application(resource_name: str,
args: ApplicationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Application(resource_name: str,
opts: Optional[ResourceOptions] = None,
condition_sets: Optional[Sequence[Any]] = None,
source_resource_type: Optional[Union[str, ApplicationSourceResourceType]] = None,
application_id: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None)func NewApplication(ctx *Context, name string, args ApplicationArgs, opts ...ResourceOption) (*Application, error)public Application(string name, ApplicationArgs args, CustomResourceOptions? opts = null)
public Application(String name, ApplicationArgs args)
public Application(String name, ApplicationArgs args, CustomResourceOptions options)
type: azure-native:security:Application
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure-native_security_application" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ApplicationArgs
- 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 ApplicationArgs
- 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 ApplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApplicationArgs
- 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 exampleapplicationResourceResourceFromSecurity = new AzureNative.Security.Application("exampleapplicationResourceResourceFromSecurity", new()
{
ConditionSets = new[]
{
"any",
},
SourceResourceType = "string",
ApplicationId = "string",
Description = "string",
DisplayName = "string",
});
example, err := security.NewApplication(ctx, "exampleapplicationResourceResourceFromSecurity", &security.ApplicationArgs{
ConditionSets: pulumi.Array{
pulumi.Any("any"),
},
SourceResourceType: pulumi.String("string"),
ApplicationId: pulumi.String("string"),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
})
resource "azure-native_security_application" "exampleapplicationResourceResourceFromSecurity" {
lifecycle {
create_before_destroy = true
}
condition_sets = ["any"]
source_resource_type = "string"
application_id = "string"
description = "string"
display_name = "string"
}
var exampleapplicationResourceResourceFromSecurity = new com.pulumi.azurenative.security.Application("exampleapplicationResourceResourceFromSecurity", com.pulumi.azurenative.security.ApplicationArgs.builder()
.conditionSets("any")
.sourceResourceType("string")
.applicationId("string")
.description("string")
.displayName("string")
.build());
exampleapplication_resource_resource_from_security = azure_native.security.Application("exampleapplicationResourceResourceFromSecurity",
condition_sets=["any"],
source_resource_type="string",
application_id="string",
description="string",
display_name="string")
const exampleapplicationResourceResourceFromSecurity = new azure_native.security.Application("exampleapplicationResourceResourceFromSecurity", {
conditionSets: ["any"],
sourceResourceType: "string",
applicationId: "string",
description: "string",
displayName: "string",
});
type: azure-native:security:Application
properties:
applicationId: string
conditionSets:
- any
description: string
displayName: string
sourceResourceType: string
Application 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 Application resource accepts the following input properties:
- Condition
Sets List<object> - The application conditionSets - see examples
- Source
Resource string | Pulumi.Type Azure Native. Security. Application Source Resource Type - The application source, what it affects, e.g. Assessments
- Application
Id string - The security Application key - unique key for the standard application
- Description string
- description of the application
- Display
Name string - display name of the application
- Condition
Sets []interface{} - The application conditionSets - see examples
- Source
Resource string | ApplicationType Source Resource Type - The application source, what it affects, e.g. Assessments
- Application
Id string - The security Application key - unique key for the standard application
- Description string
- description of the application
- Display
Name string - display name of the application
- condition_
sets list(any) - The application conditionSets - see examples
- source_
resource_ string | "Assessments"type - The application source, what it affects, e.g. Assessments
- application_
id string - The security Application key - unique key for the standard application
- description string
- description of the application
- display_
name string - display name of the application
- condition
Sets List<Object> - The application conditionSets - see examples
- source
Resource String | ApplicationType Source Resource Type - The application source, what it affects, e.g. Assessments
- application
Id String - The security Application key - unique key for the standard application
- description String
- description of the application
- display
Name String - display name of the application
- condition
Sets any[] - The application conditionSets - see examples
- source
Resource string | ApplicationType Source Resource Type - The application source, what it affects, e.g. Assessments
- application
Id string - The security Application key - unique key for the standard application
- description string
- description of the application
- display
Name string - display name of the application
- condition_
sets Sequence[Any] - The application conditionSets - see examples
- source_
resource_ str | Applicationtype Source Resource Type - The application source, what it affects, e.g. Assessments
- application_
id str - The security Application key - unique key for the standard application
- description str
- description of the application
- display_
name str - display name of the application
- condition
Sets List<Any> - The application conditionSets - see examples
- source
Resource String | "Assessments"Type - The application source, what it affects, e.g. Assessments
- application
Id String - The security Application key - unique key for the standard application
- description String
- description of the application
- display
Name String - display name of the application
Outputs
All input properties are implicitly available as output properties. Additionally, the Application 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. Security. 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 object - 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
ApplicationSourceResourceType, ApplicationSourceResourceTypeArgs
- Assessments
AssessmentsThe source of the application is assessments
- Application
Source Resource Type Assessments AssessmentsThe source of the application is assessments
- "Assessments"
AssessmentsThe source of the application is assessments
- Assessments
AssessmentsThe source of the application is assessments
- Assessments
AssessmentsThe source of the application is assessments
- ASSESSMENTS
AssessmentsThe source of the application is assessments
- "Assessments"
AssessmentsThe source of the application is assessments
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of 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 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:security:Application 1f3afdf9-d0c9-4c3d-847f-89da613e70a8 /subscriptions/{subscriptionId}/providers/Microsoft.Security/applications/{applicationId}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
published on Saturday, Jul 18, 2026 by Pulumi