1. Packages
  2. Azure Classic
  3. API Docs
  4. maintenance
  5. AssignmentDynamicScope

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.maintenance.AssignmentDynamicScope

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Manages a Dynamic Maintenance Assignment.

    Note: Only valid for InGuestPatch Maintenance Configuration Scopes.

    Create AssignmentDynamicScope Resource

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

    Constructor syntax

    new AssignmentDynamicScope(name: string, args: AssignmentDynamicScopeArgs, opts?: CustomResourceOptions);
    @overload
    def AssignmentDynamicScope(resource_name: str,
                               args: AssignmentDynamicScopeArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def AssignmentDynamicScope(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               filter: Optional[AssignmentDynamicScopeFilterArgs] = None,
                               maintenance_configuration_id: Optional[str] = None,
                               name: Optional[str] = None)
    func NewAssignmentDynamicScope(ctx *Context, name string, args AssignmentDynamicScopeArgs, opts ...ResourceOption) (*AssignmentDynamicScope, error)
    public AssignmentDynamicScope(string name, AssignmentDynamicScopeArgs args, CustomResourceOptions? opts = null)
    public AssignmentDynamicScope(String name, AssignmentDynamicScopeArgs args)
    public AssignmentDynamicScope(String name, AssignmentDynamicScopeArgs args, CustomResourceOptions options)
    
    type: azure:maintenance:AssignmentDynamicScope
    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 AssignmentDynamicScopeArgs
    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 AssignmentDynamicScopeArgs
    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 AssignmentDynamicScopeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AssignmentDynamicScopeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AssignmentDynamicScopeArgs
    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 assignmentDynamicScopeResource = new Azure.Maintenance.AssignmentDynamicScope("assignmentDynamicScopeResource", new()
    {
        Filter = new Azure.Maintenance.Inputs.AssignmentDynamicScopeFilterArgs
        {
            Locations = new[]
            {
                "string",
            },
            OsTypes = new[]
            {
                "string",
            },
            ResourceGroups = new[]
            {
                "string",
            },
            ResourceTypes = new[]
            {
                "string",
            },
            TagFilter = "string",
            Tags = new[]
            {
                new Azure.Maintenance.Inputs.AssignmentDynamicScopeFilterTagArgs
                {
                    Tag = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
            },
        },
        MaintenanceConfigurationId = "string",
        Name = "string",
    });
    
    example, err := maintenance.NewAssignmentDynamicScope(ctx, "assignmentDynamicScopeResource", &maintenance.AssignmentDynamicScopeArgs{
    	Filter: &maintenance.AssignmentDynamicScopeFilterArgs{
    		Locations: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		OsTypes: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		ResourceGroups: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		ResourceTypes: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		TagFilter: pulumi.String("string"),
    		Tags: maintenance.AssignmentDynamicScopeFilterTagArray{
    			&maintenance.AssignmentDynamicScopeFilterTagArgs{
    				Tag: pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    	},
    	MaintenanceConfigurationId: pulumi.String("string"),
    	Name:                       pulumi.String("string"),
    })
    
    var assignmentDynamicScopeResource = new AssignmentDynamicScope("assignmentDynamicScopeResource", AssignmentDynamicScopeArgs.builder()
        .filter(AssignmentDynamicScopeFilterArgs.builder()
            .locations("string")
            .osTypes("string")
            .resourceGroups("string")
            .resourceTypes("string")
            .tagFilter("string")
            .tags(AssignmentDynamicScopeFilterTagArgs.builder()
                .tag("string")
                .values("string")
                .build())
            .build())
        .maintenanceConfigurationId("string")
        .name("string")
        .build());
    
    assignment_dynamic_scope_resource = azure.maintenance.AssignmentDynamicScope("assignmentDynamicScopeResource",
        filter={
            "locations": ["string"],
            "os_types": ["string"],
            "resource_groups": ["string"],
            "resource_types": ["string"],
            "tag_filter": "string",
            "tags": [{
                "tag": "string",
                "values": ["string"],
            }],
        },
        maintenance_configuration_id="string",
        name="string")
    
    const assignmentDynamicScopeResource = new azure.maintenance.AssignmentDynamicScope("assignmentDynamicScopeResource", {
        filter: {
            locations: ["string"],
            osTypes: ["string"],
            resourceGroups: ["string"],
            resourceTypes: ["string"],
            tagFilter: "string",
            tags: [{
                tag: "string",
                values: ["string"],
            }],
        },
        maintenanceConfigurationId: "string",
        name: "string",
    });
    
    type: azure:maintenance:AssignmentDynamicScope
    properties:
        filter:
            locations:
                - string
            osTypes:
                - string
            resourceGroups:
                - string
            resourceTypes:
                - string
            tagFilter: string
            tags:
                - tag: string
                  values:
                    - string
        maintenanceConfigurationId: string
        name: string
    

    AssignmentDynamicScope 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 AssignmentDynamicScope resource accepts the following input properties:

    Filter AssignmentDynamicScopeFilter
    A filter block as defined below.
    MaintenanceConfigurationId string
    The ID of the Maintenance Configuration Resource. Changing this forces a new Dynamic Maintenance Assignment to be created.
    Name string

    The name which should be used for this Dynamic Maintenance Assignment. Changing this forces a new Dynamic Maintenance Assignment to be created.

    Note: The name must be unique per subscription.

    Filter AssignmentDynamicScopeFilterArgs
    A filter block as defined below.
    MaintenanceConfigurationId string
    The ID of the Maintenance Configuration Resource. Changing this forces a new Dynamic Maintenance Assignment to be created.
    Name string

    The name which should be used for this Dynamic Maintenance Assignment. Changing this forces a new Dynamic Maintenance Assignment to be created.

    Note: The name must be unique per subscription.

    filter AssignmentDynamicScopeFilter
    A filter block as defined below.
    maintenanceConfigurationId String
    The ID of the Maintenance Configuration Resource. Changing this forces a new Dynamic Maintenance Assignment to be created.
    name String

    The name which should be used for this Dynamic Maintenance Assignment. Changing this forces a new Dynamic Maintenance Assignment to be created.

    Note: The name must be unique per subscription.

    filter AssignmentDynamicScopeFilter
    A filter block as defined below.
    maintenanceConfigurationId string
    The ID of the Maintenance Configuration Resource. Changing this forces a new Dynamic Maintenance Assignment to be created.
    name string

    The name which should be used for this Dynamic Maintenance Assignment. Changing this forces a new Dynamic Maintenance Assignment to be created.

    Note: The name must be unique per subscription.

    filter AssignmentDynamicScopeFilterArgs
    A filter block as defined below.
    maintenance_configuration_id str
    The ID of the Maintenance Configuration Resource. Changing this forces a new Dynamic Maintenance Assignment to be created.
    name str

    The name which should be used for this Dynamic Maintenance Assignment. Changing this forces a new Dynamic Maintenance Assignment to be created.

    Note: The name must be unique per subscription.

    filter Property Map
    A filter block as defined below.
    maintenanceConfigurationId String
    The ID of the Maintenance Configuration Resource. Changing this forces a new Dynamic Maintenance Assignment to be created.
    name String

    The name which should be used for this Dynamic Maintenance Assignment. Changing this forces a new Dynamic Maintenance Assignment to be created.

    Note: The name must be unique per subscription.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AssignmentDynamicScope Resource

    Get an existing AssignmentDynamicScope resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AssignmentDynamicScopeState, opts?: CustomResourceOptions): AssignmentDynamicScope
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            filter: Optional[AssignmentDynamicScopeFilterArgs] = None,
            maintenance_configuration_id: Optional[str] = None,
            name: Optional[str] = None) -> AssignmentDynamicScope
    func GetAssignmentDynamicScope(ctx *Context, name string, id IDInput, state *AssignmentDynamicScopeState, opts ...ResourceOption) (*AssignmentDynamicScope, error)
    public static AssignmentDynamicScope Get(string name, Input<string> id, AssignmentDynamicScopeState? state, CustomResourceOptions? opts = null)
    public static AssignmentDynamicScope get(String name, Output<String> id, AssignmentDynamicScopeState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Filter AssignmentDynamicScopeFilter
    A filter block as defined below.
    MaintenanceConfigurationId string
    The ID of the Maintenance Configuration Resource. Changing this forces a new Dynamic Maintenance Assignment to be created.
    Name string

    The name which should be used for this Dynamic Maintenance Assignment. Changing this forces a new Dynamic Maintenance Assignment to be created.

    Note: The name must be unique per subscription.

    Filter AssignmentDynamicScopeFilterArgs
    A filter block as defined below.
    MaintenanceConfigurationId string
    The ID of the Maintenance Configuration Resource. Changing this forces a new Dynamic Maintenance Assignment to be created.
    Name string

    The name which should be used for this Dynamic Maintenance Assignment. Changing this forces a new Dynamic Maintenance Assignment to be created.

    Note: The name must be unique per subscription.

    filter AssignmentDynamicScopeFilter
    A filter block as defined below.
    maintenanceConfigurationId String
    The ID of the Maintenance Configuration Resource. Changing this forces a new Dynamic Maintenance Assignment to be created.
    name String

    The name which should be used for this Dynamic Maintenance Assignment. Changing this forces a new Dynamic Maintenance Assignment to be created.

    Note: The name must be unique per subscription.

    filter AssignmentDynamicScopeFilter
    A filter block as defined below.
    maintenanceConfigurationId string
    The ID of the Maintenance Configuration Resource. Changing this forces a new Dynamic Maintenance Assignment to be created.
    name string

    The name which should be used for this Dynamic Maintenance Assignment. Changing this forces a new Dynamic Maintenance Assignment to be created.

    Note: The name must be unique per subscription.

    filter AssignmentDynamicScopeFilterArgs
    A filter block as defined below.
    maintenance_configuration_id str
    The ID of the Maintenance Configuration Resource. Changing this forces a new Dynamic Maintenance Assignment to be created.
    name str

    The name which should be used for this Dynamic Maintenance Assignment. Changing this forces a new Dynamic Maintenance Assignment to be created.

    Note: The name must be unique per subscription.

    filter Property Map
    A filter block as defined below.
    maintenanceConfigurationId String
    The ID of the Maintenance Configuration Resource. Changing this forces a new Dynamic Maintenance Assignment to be created.
    name String

    The name which should be used for this Dynamic Maintenance Assignment. Changing this forces a new Dynamic Maintenance Assignment to be created.

    Note: The name must be unique per subscription.

    Supporting Types

    AssignmentDynamicScopeFilter, AssignmentDynamicScopeFilterArgs

    Locations List<string>
    Specifies a list of locations to scope the query to.
    OsTypes List<string>
    Specifies a list of allowed operating systems.
    ResourceGroups List<string>
    Specifies a list of allowed resource groups.
    ResourceTypes List<string>
    Specifies a list of allowed resources.
    TagFilter string
    Filter VMs by Any or All specified tags. Defaults to Any.
    Tags List<AssignmentDynamicScopeFilterTag>
    A mapping of tags for the VM
    Locations []string
    Specifies a list of locations to scope the query to.
    OsTypes []string
    Specifies a list of allowed operating systems.
    ResourceGroups []string
    Specifies a list of allowed resource groups.
    ResourceTypes []string
    Specifies a list of allowed resources.
    TagFilter string
    Filter VMs by Any or All specified tags. Defaults to Any.
    Tags []AssignmentDynamicScopeFilterTag
    A mapping of tags for the VM
    locations List<String>
    Specifies a list of locations to scope the query to.
    osTypes List<String>
    Specifies a list of allowed operating systems.
    resourceGroups List<String>
    Specifies a list of allowed resource groups.
    resourceTypes List<String>
    Specifies a list of allowed resources.
    tagFilter String
    Filter VMs by Any or All specified tags. Defaults to Any.
    tags List<AssignmentDynamicScopeFilterTag>
    A mapping of tags for the VM
    locations string[]
    Specifies a list of locations to scope the query to.
    osTypes string[]
    Specifies a list of allowed operating systems.
    resourceGroups string[]
    Specifies a list of allowed resource groups.
    resourceTypes string[]
    Specifies a list of allowed resources.
    tagFilter string
    Filter VMs by Any or All specified tags. Defaults to Any.
    tags AssignmentDynamicScopeFilterTag[]
    A mapping of tags for the VM
    locations Sequence[str]
    Specifies a list of locations to scope the query to.
    os_types Sequence[str]
    Specifies a list of allowed operating systems.
    resource_groups Sequence[str]
    Specifies a list of allowed resource groups.
    resource_types Sequence[str]
    Specifies a list of allowed resources.
    tag_filter str
    Filter VMs by Any or All specified tags. Defaults to Any.
    tags Sequence[AssignmentDynamicScopeFilterTag]
    A mapping of tags for the VM
    locations List<String>
    Specifies a list of locations to scope the query to.
    osTypes List<String>
    Specifies a list of allowed operating systems.
    resourceGroups List<String>
    Specifies a list of allowed resource groups.
    resourceTypes List<String>
    Specifies a list of allowed resources.
    tagFilter String
    Filter VMs by Any or All specified tags. Defaults to Any.
    tags List<Property Map>
    A mapping of tags for the VM

    AssignmentDynamicScopeFilterTag, AssignmentDynamicScopeFilterTagArgs

    Tag string
    Specifies the tag to filter by.
    Values List<string>
    Specifies a list of values the defined tag can have.
    Tag string
    Specifies the tag to filter by.
    Values []string
    Specifies a list of values the defined tag can have.
    tag String
    Specifies the tag to filter by.
    values List<String>
    Specifies a list of values the defined tag can have.
    tag string
    Specifies the tag to filter by.
    values string[]
    Specifies a list of values the defined tag can have.
    tag str
    Specifies the tag to filter by.
    values Sequence[str]
    Specifies a list of values the defined tag can have.
    tag String
    Specifies the tag to filter by.
    values List<String>
    Specifies a list of values the defined tag can have.

    Import

    Dynamic Maintenance Assignments can be imported using the resource id, e.g.

    $ pulumi import azure:maintenance/assignmentDynamicScope:AssignmentDynamicScope example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/configurationAssignments/assignmentName
    

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

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi