We recommend using Azure Native.
azure.maintenance.AssignmentDynamicScope
Explore with Pulumi AI
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
Assignment
Dynamic Scope Filter - A
filter
block as defined below. - Maintenance
Configuration 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
name
must be unique per subscription.
- Filter
Assignment
Dynamic Scope Filter Args - A
filter
block as defined below. - Maintenance
Configuration 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
name
must be unique per subscription.
- filter
Assignment
Dynamic Scope Filter - A
filter
block as defined below. - maintenance
Configuration 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
name
must be unique per subscription.
- filter
Assignment
Dynamic Scope Filter - A
filter
block as defined below. - maintenance
Configuration 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
name
must be unique per subscription.
- filter
Assignment
Dynamic Scope Filter Args - A
filter
block 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
name
must be unique per subscription.
- filter Property Map
- A
filter
block as defined below. - maintenance
Configuration 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
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.
- Filter
Assignment
Dynamic Scope Filter - A
filter
block as defined below. - Maintenance
Configuration 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
name
must be unique per subscription.
- Filter
Assignment
Dynamic Scope Filter Args - A
filter
block as defined below. - Maintenance
Configuration 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
name
must be unique per subscription.
- filter
Assignment
Dynamic Scope Filter - A
filter
block as defined below. - maintenance
Configuration 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
name
must be unique per subscription.
- filter
Assignment
Dynamic Scope Filter - A
filter
block as defined below. - maintenance
Configuration 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
name
must be unique per subscription.
- filter
Assignment
Dynamic Scope Filter Args - A
filter
block 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
name
must be unique per subscription.
- filter Property Map
- A
filter
block as defined below. - maintenance
Configuration 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
name
must be unique per subscription.
Supporting Types
AssignmentDynamicScopeFilter, AssignmentDynamicScopeFilterArgs
- Locations List<string>
- Specifies a list of locations to scope the query to.
- Os
Types List<string> - Specifies a list of allowed operating systems.
- Resource
Groups List<string> - Specifies a list of allowed resource groups.
- Resource
Types List<string> - Specifies a list of allowed resources.
- Tag
Filter string - Filter VMs by
Any
orAll
specified tags. Defaults toAny
. - List<Assignment
Dynamic Scope Filter Tag> - A mapping of tags for the VM
- Locations []string
- Specifies a list of locations to scope the query to.
- Os
Types []string - Specifies a list of allowed operating systems.
- Resource
Groups []string - Specifies a list of allowed resource groups.
- Resource
Types []string - Specifies a list of allowed resources.
- Tag
Filter string - Filter VMs by
Any
orAll
specified tags. Defaults toAny
. - []Assignment
Dynamic Scope Filter Tag - A mapping of tags for the VM
- locations List<String>
- Specifies a list of locations to scope the query to.
- os
Types List<String> - Specifies a list of allowed operating systems.
- resource
Groups List<String> - Specifies a list of allowed resource groups.
- resource
Types List<String> - Specifies a list of allowed resources.
- tag
Filter String - Filter VMs by
Any
orAll
specified tags. Defaults toAny
. - List<Assignment
Dynamic Scope Filter Tag> - A mapping of tags for the VM
- locations string[]
- Specifies a list of locations to scope the query to.
- os
Types string[] - Specifies a list of allowed operating systems.
- resource
Groups string[] - Specifies a list of allowed resource groups.
- resource
Types string[] - Specifies a list of allowed resources.
- tag
Filter string - Filter VMs by
Any
orAll
specified tags. Defaults toAny
. - Assignment
Dynamic 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
Any
orAll
specified tags. Defaults toAny
. - Sequence[Assignment
Dynamic Scope Filter Tag] - A mapping of tags for the VM
- locations List<String>
- Specifies a list of locations to scope the query to.
- os
Types List<String> - Specifies a list of allowed operating systems.
- resource
Groups List<String> - Specifies a list of allowed resource groups.
- resource
Types List<String> - Specifies a list of allowed resources.
- tag
Filter String - Filter VMs by
Any
orAll
specified 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
azurerm
Terraform Provider.