We recommend using Azure Native.
azure.maintenance.AssignmentDynamicScope
Explore with Pulumi AI
Manages a Dynamic Maintenance Assignment.
Note: Only valid for
InGuestPatchMaintenance 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
AssignmentDynamic Scope Filter 
- A filterblock as defined below.
- MaintenanceConfiguration stringId 
- 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 - namemust be unique per subscription.
- Filter
AssignmentDynamic Scope Filter Args 
- A filterblock as defined below.
- MaintenanceConfiguration stringId 
- 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 - namemust be unique per subscription.
- filter
AssignmentDynamic Scope Filter 
- A filterblock as defined below.
- maintenanceConfiguration StringId 
- 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 - namemust be unique per subscription.
- filter
AssignmentDynamic Scope Filter 
- A filterblock as defined below.
- maintenanceConfiguration stringId 
- 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 - namemust be unique per subscription.
- filter
AssignmentDynamic Scope Filter Args 
- A filterblock as defined below.
- maintenance_configuration_ strid 
- 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 - namemust be unique per subscription.
- filter Property Map
- A filterblock as defined below.
- maintenanceConfiguration StringId 
- 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 - namemust 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) -> AssignmentDynamicScopefunc 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)resources:  _:    type: azure:maintenance:AssignmentDynamicScope    get:      id: ${id}- 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.
- Filter
AssignmentDynamic Scope Filter 
- A filterblock as defined below.
- MaintenanceConfiguration stringId 
- 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 - namemust be unique per subscription.
- Filter
AssignmentDynamic Scope Filter Args 
- A filterblock as defined below.
- MaintenanceConfiguration stringId 
- 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 - namemust be unique per subscription.
- filter
AssignmentDynamic Scope Filter 
- A filterblock as defined below.
- maintenanceConfiguration StringId 
- 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 - namemust be unique per subscription.
- filter
AssignmentDynamic Scope Filter 
- A filterblock as defined below.
- maintenanceConfiguration stringId 
- 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 - namemust be unique per subscription.
- filter
AssignmentDynamic Scope Filter Args 
- A filterblock as defined below.
- maintenance_configuration_ strid 
- 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 - namemust be unique per subscription.
- filter Property Map
- A filterblock as defined below.
- maintenanceConfiguration StringId 
- 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 - namemust 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 AnyorAllspecified tags. Defaults toAny.
- 
List<AssignmentDynamic Scope Filter Tag> 
- 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 AnyorAllspecified tags. Defaults toAny.
- 
[]AssignmentDynamic Scope Filter Tag 
- 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 AnyorAllspecified tags. Defaults toAny.
- 
List<AssignmentDynamic Scope Filter Tag> 
- 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 AnyorAllspecified tags. Defaults toAny.
- 
AssignmentDynamic Scope Filter Tag[] 
- 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 AnyorAllspecified tags. Defaults toAny.
- 
Sequence[AssignmentDynamic Scope Filter Tag] 
- 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 AnyorAllspecified tags. Defaults toAny.
- List<Property Map>
- A mapping of tags for the VM
AssignmentDynamicScopeFilterTag, AssignmentDynamicScopeFilterTagArgs          
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 azurermTerraform Provider.