1. Packages
  2. Azure Native
  3. API Docs
  4. security
  5. DevOpsPolicyAssignment
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.51.0 published on Tuesday, Jul 23, 2024 by Pulumi

azure-native.security.DevOpsPolicyAssignment

Explore with Pulumi AI

azure-native logo
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.51.0 published on Tuesday, Jul 23, 2024 by Pulumi

    DevOps Policy assignment resource. Azure REST API version: 2024-05-15-preview.

    Example Usage

    CreateOrUpdate_DevOpsPolicyAssignments

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var devOpsPolicyAssignment = new AzureNative.Security.DevOpsPolicyAssignment("devOpsPolicyAssignment", new()
        {
            PolicyAssignmentId = "5ec87f43-62d8-437b-8f46-4c8d4032cf6d",
            Properties = new AzureNative.Security.Inputs.DevOpsPolicyAssignmentPropertiesArgs
            {
                DescendantBehavior = AzureNative.Security.DescendantBehavior.Override,
                Policy = new AzureNative.Security.Inputs.DevOpsPolicyDescriptorArgs
                {
                    PolicyId = "00000000-0000-0000-0000-000000000000",
                    PolicyName = "myDevOpsPolicy",
                    PolicyType = AzureNative.Security.DevOpsPolicyType.Pipeline,
                    PolicyVersion = "1.0",
                },
                ResourceId = "/subscriptions/0806e1cd-cfda-4ff8-b99c-2b0af42cffd3/resourcegroups/myRg/providers/Microsoft.Security/securityConnectors/mySecurityConnectorName/devops/default/azureDevOpsOrgs/Contoso",
            },
            ResourceGroupName = "myRg",
            SecurityConnectorName = "mySecurityConnectorName",
        });
    
    });
    
    package main
    
    import (
    	security "github.com/pulumi/pulumi-azure-native-sdk/security/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := security.NewDevOpsPolicyAssignment(ctx, "devOpsPolicyAssignment", &security.DevOpsPolicyAssignmentArgs{
    			PolicyAssignmentId: pulumi.String("5ec87f43-62d8-437b-8f46-4c8d4032cf6d"),
    			Properties: &security.DevOpsPolicyAssignmentPropertiesArgs{
    				DescendantBehavior: pulumi.String(security.DescendantBehaviorOverride),
    				Policy: &security.DevOpsPolicyDescriptorArgs{
    					PolicyId:      pulumi.String("00000000-0000-0000-0000-000000000000"),
    					PolicyName:    pulumi.String("myDevOpsPolicy"),
    					PolicyType:    pulumi.String(security.DevOpsPolicyTypePipeline),
    					PolicyVersion: pulumi.String("1.0"),
    				},
    				ResourceId: pulumi.String("/subscriptions/0806e1cd-cfda-4ff8-b99c-2b0af42cffd3/resourcegroups/myRg/providers/Microsoft.Security/securityConnectors/mySecurityConnectorName/devops/default/azureDevOpsOrgs/Contoso"),
    			},
    			ResourceGroupName:     pulumi.String("myRg"),
    			SecurityConnectorName: pulumi.String("mySecurityConnectorName"),
    		})
    		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.security.DevOpsPolicyAssignment;
    import com.pulumi.azurenative.security.DevOpsPolicyAssignmentArgs;
    import com.pulumi.azurenative.security.inputs.DevOpsPolicyAssignmentPropertiesArgs;
    import com.pulumi.azurenative.security.inputs.DevOpsPolicyDescriptorArgs;
    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 devOpsPolicyAssignment = new DevOpsPolicyAssignment("devOpsPolicyAssignment", DevOpsPolicyAssignmentArgs.builder()
                .policyAssignmentId("5ec87f43-62d8-437b-8f46-4c8d4032cf6d")
                .properties(DevOpsPolicyAssignmentPropertiesArgs.builder()
                    .descendantBehavior("Override")
                    .policy(DevOpsPolicyDescriptorArgs.builder()
                        .policyId("00000000-0000-0000-0000-000000000000")
                        .policyName("myDevOpsPolicy")
                        .policyType("Pipeline")
                        .policyVersion("1.0")
                        .build())
                    .resourceId("/subscriptions/0806e1cd-cfda-4ff8-b99c-2b0af42cffd3/resourcegroups/myRg/providers/Microsoft.Security/securityConnectors/mySecurityConnectorName/devops/default/azureDevOpsOrgs/Contoso")
                    .build())
                .resourceGroupName("myRg")
                .securityConnectorName("mySecurityConnectorName")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    dev_ops_policy_assignment = azure_native.security.DevOpsPolicyAssignment("devOpsPolicyAssignment",
        policy_assignment_id="5ec87f43-62d8-437b-8f46-4c8d4032cf6d",
        properties={
            "descendant_behavior": azure_native.security.DescendantBehavior.OVERRIDE,
            "policy": {
                "policy_id": "00000000-0000-0000-0000-000000000000",
                "policy_name": "myDevOpsPolicy",
                "policy_type": azure_native.security.DevOpsPolicyType.PIPELINE,
                "policy_version": "1.0",
            },
            "resource_id": "/subscriptions/0806e1cd-cfda-4ff8-b99c-2b0af42cffd3/resourcegroups/myRg/providers/Microsoft.Security/securityConnectors/mySecurityConnectorName/devops/default/azureDevOpsOrgs/Contoso",
        },
        resource_group_name="myRg",
        security_connector_name="mySecurityConnectorName")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const devOpsPolicyAssignment = new azure_native.security.DevOpsPolicyAssignment("devOpsPolicyAssignment", {
        policyAssignmentId: "5ec87f43-62d8-437b-8f46-4c8d4032cf6d",
        properties: {
            descendantBehavior: azure_native.security.DescendantBehavior.Override,
            policy: {
                policyId: "00000000-0000-0000-0000-000000000000",
                policyName: "myDevOpsPolicy",
                policyType: azure_native.security.DevOpsPolicyType.Pipeline,
                policyVersion: "1.0",
            },
            resourceId: "/subscriptions/0806e1cd-cfda-4ff8-b99c-2b0af42cffd3/resourcegroups/myRg/providers/Microsoft.Security/securityConnectors/mySecurityConnectorName/devops/default/azureDevOpsOrgs/Contoso",
        },
        resourceGroupName: "myRg",
        securityConnectorName: "mySecurityConnectorName",
    });
    
    resources:
      devOpsPolicyAssignment:
        type: azure-native:security:DevOpsPolicyAssignment
        properties:
          policyAssignmentId: 5ec87f43-62d8-437b-8f46-4c8d4032cf6d
          properties:
            descendantBehavior: Override
            policy:
              policyId: 00000000-0000-0000-0000-000000000000
              policyName: myDevOpsPolicy
              policyType: Pipeline
              policyVersion: '1.0'
            resourceId: /subscriptions/0806e1cd-cfda-4ff8-b99c-2b0af42cffd3/resourcegroups/myRg/providers/Microsoft.Security/securityConnectors/mySecurityConnectorName/devops/default/azureDevOpsOrgs/Contoso
          resourceGroupName: myRg
          securityConnectorName: mySecurityConnectorName
    

    Create DevOpsPolicyAssignment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DevOpsPolicyAssignment(name: string, args: DevOpsPolicyAssignmentArgs, opts?: CustomResourceOptions);
    @overload
    def DevOpsPolicyAssignment(resource_name: str,
                               args: DevOpsPolicyAssignmentArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def DevOpsPolicyAssignment(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               resource_group_name: Optional[str] = None,
                               security_connector_name: Optional[str] = None,
                               policy_assignment_id: Optional[str] = None,
                               properties: Optional[DevOpsPolicyAssignmentPropertiesArgs] = None)
    func NewDevOpsPolicyAssignment(ctx *Context, name string, args DevOpsPolicyAssignmentArgs, opts ...ResourceOption) (*DevOpsPolicyAssignment, error)
    public DevOpsPolicyAssignment(string name, DevOpsPolicyAssignmentArgs args, CustomResourceOptions? opts = null)
    public DevOpsPolicyAssignment(String name, DevOpsPolicyAssignmentArgs args)
    public DevOpsPolicyAssignment(String name, DevOpsPolicyAssignmentArgs args, CustomResourceOptions options)
    
    type: azure-native:security:DevOpsPolicyAssignment
    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 DevOpsPolicyAssignmentArgs
    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 DevOpsPolicyAssignmentArgs
    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 DevOpsPolicyAssignmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DevOpsPolicyAssignmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DevOpsPolicyAssignmentArgs
    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 devOpsPolicyAssignmentResource = new AzureNative.Security.DevOpsPolicyAssignment("devOpsPolicyAssignmentResource", new()
    {
        ResourceGroupName = "string",
        SecurityConnectorName = "string",
        PolicyAssignmentId = "string",
        Properties = new AzureNative.Security.Inputs.DevOpsPolicyAssignmentPropertiesArgs
        {
            AssignedAt = "string",
            DescendantBehavior = "string",
            Policy = new AzureNative.Security.Inputs.DevOpsPolicyDescriptorArgs
            {
                PolicyId = "string",
                PolicyName = "string",
                PolicyType = "string",
                PolicyVersion = "string",
            },
            ResourceId = "string",
        },
    });
    
    example, err := security.NewDevOpsPolicyAssignment(ctx, "devOpsPolicyAssignmentResource", &security.DevOpsPolicyAssignmentArgs{
    	ResourceGroupName:     pulumi.String("string"),
    	SecurityConnectorName: pulumi.String("string"),
    	PolicyAssignmentId:    pulumi.String("string"),
    	Properties: &security.DevOpsPolicyAssignmentPropertiesArgs{
    		AssignedAt:         pulumi.String("string"),
    		DescendantBehavior: pulumi.String("string"),
    		Policy: &security.DevOpsPolicyDescriptorArgs{
    			PolicyId:      pulumi.String("string"),
    			PolicyName:    pulumi.String("string"),
    			PolicyType:    pulumi.String("string"),
    			PolicyVersion: pulumi.String("string"),
    		},
    		ResourceId: pulumi.String("string"),
    	},
    })
    
    var devOpsPolicyAssignmentResource = new DevOpsPolicyAssignment("devOpsPolicyAssignmentResource", DevOpsPolicyAssignmentArgs.builder()
        .resourceGroupName("string")
        .securityConnectorName("string")
        .policyAssignmentId("string")
        .properties(DevOpsPolicyAssignmentPropertiesArgs.builder()
            .assignedAt("string")
            .descendantBehavior("string")
            .policy(DevOpsPolicyDescriptorArgs.builder()
                .policyId("string")
                .policyName("string")
                .policyType("string")
                .policyVersion("string")
                .build())
            .resourceId("string")
            .build())
        .build());
    
    dev_ops_policy_assignment_resource = azure_native.security.DevOpsPolicyAssignment("devOpsPolicyAssignmentResource",
        resource_group_name="string",
        security_connector_name="string",
        policy_assignment_id="string",
        properties={
            "assignedAt": "string",
            "descendantBehavior": "string",
            "policy": {
                "policyId": "string",
                "policyName": "string",
                "policyType": "string",
                "policyVersion": "string",
            },
            "resourceId": "string",
        })
    
    const devOpsPolicyAssignmentResource = new azure_native.security.DevOpsPolicyAssignment("devOpsPolicyAssignmentResource", {
        resourceGroupName: "string",
        securityConnectorName: "string",
        policyAssignmentId: "string",
        properties: {
            assignedAt: "string",
            descendantBehavior: "string",
            policy: {
                policyId: "string",
                policyName: "string",
                policyType: "string",
                policyVersion: "string",
            },
            resourceId: "string",
        },
    });
    
    type: azure-native:security:DevOpsPolicyAssignment
    properties:
        policyAssignmentId: string
        properties:
            assignedAt: string
            descendantBehavior: string
            policy:
                policyId: string
                policyName: string
                policyType: string
                policyVersion: string
            resourceId: string
        resourceGroupName: string
        securityConnectorName: string
    

    DevOpsPolicyAssignment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The DevOpsPolicyAssignment resource accepts the following input properties:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    SecurityConnectorName string
    The security connector name.
    PolicyAssignmentId string
    The policy assignment Id.
    Properties Pulumi.AzureNative.Security.Inputs.DevOpsPolicyAssignmentProperties
    Properties of the DevOps policy assignment resource.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    SecurityConnectorName string
    The security connector name.
    PolicyAssignmentId string
    The policy assignment Id.
    Properties DevOpsPolicyAssignmentPropertiesArgs
    Properties of the DevOps policy assignment resource.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    securityConnectorName String
    The security connector name.
    policyAssignmentId String
    The policy assignment Id.
    properties DevOpsPolicyAssignmentProperties
    Properties of the DevOps policy assignment resource.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    securityConnectorName string
    The security connector name.
    policyAssignmentId string
    The policy assignment Id.
    properties DevOpsPolicyAssignmentProperties
    Properties of the DevOps policy assignment resource.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    security_connector_name str
    The security connector name.
    policy_assignment_id str
    The policy assignment Id.
    properties DevOpsPolicyAssignmentPropertiesArgs
    Properties of the DevOps policy assignment resource.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    securityConnectorName String
    The security connector name.
    policyAssignmentId String
    The policy assignment Id.
    properties Property Map
    Properties of the DevOps policy assignment resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DevOpsPolicyAssignment resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData Pulumi.AzureNative.Security.Outputs.SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    system_data SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData Property Map
    Metadata pertaining to creation and last modification of the resource.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    DescendantBehavior, DescendantBehaviorArgs

    Unknown
    Unknown
    Override
    Override
    FallBack
    FallBack
    DescendantBehaviorUnknown
    Unknown
    DescendantBehaviorOverride
    Override
    DescendantBehaviorFallBack
    FallBack
    Unknown
    Unknown
    Override
    Override
    FallBack
    FallBack
    Unknown
    Unknown
    Override
    Override
    FallBack
    FallBack
    UNKNOWN
    Unknown
    OVERRIDE
    Override
    FALL_BACK
    FallBack
    "Unknown"
    Unknown
    "Override"
    Override
    "FallBack"
    FallBack

    DevOpsPolicyAssignmentProperties, DevOpsPolicyAssignmentPropertiesArgs

    AssignedAt string
    Gets or sets time when the assignment was created in UTC.
    DescendantBehavior string | Pulumi.AzureNative.Security.DescendantBehavior
    The behavior of a policy on descendant resources.
    Policy Pulumi.AzureNative.Security.Inputs.DevOpsPolicyDescriptor
    Condensed information to identify a DevOps Policy resource.
    ResourceId string
    Gets or sets the Azure resource id.
    AssignedAt string
    Gets or sets time when the assignment was created in UTC.
    DescendantBehavior string | DescendantBehavior
    The behavior of a policy on descendant resources.
    Policy DevOpsPolicyDescriptor
    Condensed information to identify a DevOps Policy resource.
    ResourceId string
    Gets or sets the Azure resource id.
    assignedAt String
    Gets or sets time when the assignment was created in UTC.
    descendantBehavior String | DescendantBehavior
    The behavior of a policy on descendant resources.
    policy DevOpsPolicyDescriptor
    Condensed information to identify a DevOps Policy resource.
    resourceId String
    Gets or sets the Azure resource id.
    assignedAt string
    Gets or sets time when the assignment was created in UTC.
    descendantBehavior string | DescendantBehavior
    The behavior of a policy on descendant resources.
    policy DevOpsPolicyDescriptor
    Condensed information to identify a DevOps Policy resource.
    resourceId string
    Gets or sets the Azure resource id.
    assigned_at str
    Gets or sets time when the assignment was created in UTC.
    descendant_behavior str | DescendantBehavior
    The behavior of a policy on descendant resources.
    policy DevOpsPolicyDescriptor
    Condensed information to identify a DevOps Policy resource.
    resource_id str
    Gets or sets the Azure resource id.
    assignedAt String
    Gets or sets time when the assignment was created in UTC.
    descendantBehavior String | "Unknown" | "Override" | "FallBack"
    The behavior of a policy on descendant resources.
    policy Property Map
    Condensed information to identify a DevOps Policy resource.
    resourceId String
    Gets or sets the Azure resource id.

    DevOpsPolicyAssignmentPropertiesResponse, DevOpsPolicyAssignmentPropertiesResponseArgs

    ProvisioningState string

    The provisioning state of the resource.

    Pending - Provisioning pending. Failed - Provisioning failed. Succeeded - Successful provisioning. Canceled - Provisioning canceled. PendingDeletion - Deletion pending. DeletionSuccess - Deletion successful. DeletionFailure - Deletion failure.

    ProvisioningStatusMessage string
    Gets the resource status message.
    ProvisioningStatusUpdateTimeUtc string
    Gets the time when resource was last checked.
    AssignedAt string
    Gets or sets time when the assignment was created in UTC.
    DescendantBehavior string
    The behavior of a policy on descendant resources.
    Policy Pulumi.AzureNative.Security.Inputs.DevOpsPolicyDescriptorResponse
    Condensed information to identify a DevOps Policy resource.
    ResourceId string
    Gets or sets the Azure resource id.
    ProvisioningState string

    The provisioning state of the resource.

    Pending - Provisioning pending. Failed - Provisioning failed. Succeeded - Successful provisioning. Canceled - Provisioning canceled. PendingDeletion - Deletion pending. DeletionSuccess - Deletion successful. DeletionFailure - Deletion failure.

    ProvisioningStatusMessage string
    Gets the resource status message.
    ProvisioningStatusUpdateTimeUtc string
    Gets the time when resource was last checked.
    AssignedAt string
    Gets or sets time when the assignment was created in UTC.
    DescendantBehavior string
    The behavior of a policy on descendant resources.
    Policy DevOpsPolicyDescriptorResponse
    Condensed information to identify a DevOps Policy resource.
    ResourceId string
    Gets or sets the Azure resource id.
    provisioningState String

    The provisioning state of the resource.

    Pending - Provisioning pending. Failed - Provisioning failed. Succeeded - Successful provisioning. Canceled - Provisioning canceled. PendingDeletion - Deletion pending. DeletionSuccess - Deletion successful. DeletionFailure - Deletion failure.

    provisioningStatusMessage String
    Gets the resource status message.
    provisioningStatusUpdateTimeUtc String
    Gets the time when resource was last checked.
    assignedAt String
    Gets or sets time when the assignment was created in UTC.
    descendantBehavior String
    The behavior of a policy on descendant resources.
    policy DevOpsPolicyDescriptorResponse
    Condensed information to identify a DevOps Policy resource.
    resourceId String
    Gets or sets the Azure resource id.
    provisioningState string

    The provisioning state of the resource.

    Pending - Provisioning pending. Failed - Provisioning failed. Succeeded - Successful provisioning. Canceled - Provisioning canceled. PendingDeletion - Deletion pending. DeletionSuccess - Deletion successful. DeletionFailure - Deletion failure.

    provisioningStatusMessage string
    Gets the resource status message.
    provisioningStatusUpdateTimeUtc string
    Gets the time when resource was last checked.
    assignedAt string
    Gets or sets time when the assignment was created in UTC.
    descendantBehavior string
    The behavior of a policy on descendant resources.
    policy DevOpsPolicyDescriptorResponse
    Condensed information to identify a DevOps Policy resource.
    resourceId string
    Gets or sets the Azure resource id.
    provisioning_state str

    The provisioning state of the resource.

    Pending - Provisioning pending. Failed - Provisioning failed. Succeeded - Successful provisioning. Canceled - Provisioning canceled. PendingDeletion - Deletion pending. DeletionSuccess - Deletion successful. DeletionFailure - Deletion failure.

    provisioning_status_message str
    Gets the resource status message.
    provisioning_status_update_time_utc str
    Gets the time when resource was last checked.
    assigned_at str
    Gets or sets time when the assignment was created in UTC.
    descendant_behavior str
    The behavior of a policy on descendant resources.
    policy DevOpsPolicyDescriptorResponse
    Condensed information to identify a DevOps Policy resource.
    resource_id str
    Gets or sets the Azure resource id.
    provisioningState String

    The provisioning state of the resource.

    Pending - Provisioning pending. Failed - Provisioning failed. Succeeded - Successful provisioning. Canceled - Provisioning canceled. PendingDeletion - Deletion pending. DeletionSuccess - Deletion successful. DeletionFailure - Deletion failure.

    provisioningStatusMessage String
    Gets the resource status message.
    provisioningStatusUpdateTimeUtc String
    Gets the time when resource was last checked.
    assignedAt String
    Gets or sets time when the assignment was created in UTC.
    descendantBehavior String
    The behavior of a policy on descendant resources.
    policy Property Map
    Condensed information to identify a DevOps Policy resource.
    resourceId String
    Gets or sets the Azure resource id.

    DevOpsPolicyDescriptor, DevOpsPolicyDescriptorArgs

    PolicyId string
    Gets or sets the policy GUID.
    PolicyName string
    Gets or sets the policy name.
    PolicyType string | Pulumi.AzureNative.Security.DevOpsPolicyType
    DevOps Policy resource types.
    PolicyVersion string
    Gets or sets the version.
    PolicyId string
    Gets or sets the policy GUID.
    PolicyName string
    Gets or sets the policy name.
    PolicyType string | DevOpsPolicyType
    DevOps Policy resource types.
    PolicyVersion string
    Gets or sets the version.
    policyId String
    Gets or sets the policy GUID.
    policyName String
    Gets or sets the policy name.
    policyType String | DevOpsPolicyType
    DevOps Policy resource types.
    policyVersion String
    Gets or sets the version.
    policyId string
    Gets or sets the policy GUID.
    policyName string
    Gets or sets the policy name.
    policyType string | DevOpsPolicyType
    DevOps Policy resource types.
    policyVersion string
    Gets or sets the version.
    policy_id str
    Gets or sets the policy GUID.
    policy_name str
    Gets or sets the policy name.
    policy_type str | DevOpsPolicyType
    DevOps Policy resource types.
    policy_version str
    Gets or sets the version.
    policyId String
    Gets or sets the policy GUID.
    policyName String
    Gets or sets the policy name.
    policyType String | "Unknown" | "Pipeline"
    DevOps Policy resource types.
    policyVersion String
    Gets or sets the version.

    DevOpsPolicyDescriptorResponse, DevOpsPolicyDescriptorResponseArgs

    PolicyId string
    Gets or sets the policy GUID.
    PolicyName string
    Gets or sets the policy name.
    PolicyType string
    DevOps Policy resource types.
    PolicyVersion string
    Gets or sets the version.
    PolicyId string
    Gets or sets the policy GUID.
    PolicyName string
    Gets or sets the policy name.
    PolicyType string
    DevOps Policy resource types.
    PolicyVersion string
    Gets or sets the version.
    policyId String
    Gets or sets the policy GUID.
    policyName String
    Gets or sets the policy name.
    policyType String
    DevOps Policy resource types.
    policyVersion String
    Gets or sets the version.
    policyId string
    Gets or sets the policy GUID.
    policyName string
    Gets or sets the policy name.
    policyType string
    DevOps Policy resource types.
    policyVersion string
    Gets or sets the version.
    policy_id str
    Gets or sets the policy GUID.
    policy_name str
    Gets or sets the policy name.
    policy_type str
    DevOps Policy resource types.
    policy_version str
    Gets or sets the version.
    policyId String
    Gets or sets the policy GUID.
    policyName String
    Gets or sets the policy name.
    policyType String
    DevOps Policy resource types.
    policyVersion String
    Gets or sets the version.

    DevOpsPolicyType, DevOpsPolicyTypeArgs

    Unknown
    Unknown
    Pipeline
    Pipeline
    DevOpsPolicyTypeUnknown
    Unknown
    DevOpsPolicyTypePipeline
    Pipeline
    Unknown
    Unknown
    Pipeline
    Pipeline
    Unknown
    Unknown
    Pipeline
    Pipeline
    UNKNOWN
    Unknown
    PIPELINE
    Pipeline
    "Unknown"
    Unknown
    "Pipeline"
    Pipeline

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    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.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    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.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    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.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    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_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    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.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    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:DevOpsPolicyAssignment 5ec87f43-62d8-437b-8f46-4c8d4032cf6d /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/policyAssignments/{policyAssignmentId} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    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.51.0 published on Tuesday, Jul 23, 2024 by Pulumi