azure-native-v2.managednetwork.ScopeAssignment
Explore with Pulumi AI
The Managed Network resource Azure REST API version: 2019-06-01-preview. Prior API version in Azure Native 1.x: 2019-06-01-preview.
Create ScopeAssignment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScopeAssignment(name: string, args: ScopeAssignmentArgs, opts?: CustomResourceOptions);
@overload
def ScopeAssignment(resource_name: str,
args: ScopeAssignmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ScopeAssignment(resource_name: str,
opts: Optional[ResourceOptions] = None,
scope: Optional[str] = None,
assigned_managed_network: Optional[str] = None,
location: Optional[str] = None,
scope_assignment_name: Optional[str] = None)
func NewScopeAssignment(ctx *Context, name string, args ScopeAssignmentArgs, opts ...ResourceOption) (*ScopeAssignment, error)
public ScopeAssignment(string name, ScopeAssignmentArgs args, CustomResourceOptions? opts = null)
public ScopeAssignment(String name, ScopeAssignmentArgs args)
public ScopeAssignment(String name, ScopeAssignmentArgs args, CustomResourceOptions options)
type: azure-native:managednetwork:ScopeAssignment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ScopeAssignmentArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. ScopeAssignmentArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ScopeAssignmentArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ScopeAssignmentArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. ScopeAssignmentArgs - 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 scopeAssignmentResource = new AzureNative.Managednetwork.ScopeAssignment("scopeAssignmentResource", new()
{
Scope = "string",
AssignedManagedNetwork = "string",
Location = "string",
ScopeAssignmentName = "string",
});
example, err := managednetwork.NewScopeAssignment(ctx, "scopeAssignmentResource", &managednetwork.ScopeAssignmentArgs{
Scope: "string",
AssignedManagedNetwork: "string",
Location: "string",
ScopeAssignmentName: "string",
})
var scopeAssignmentResource = new ScopeAssignment("scopeAssignmentResource", ScopeAssignmentArgs.builder()
.scope("string")
.assignedManagedNetwork("string")
.location("string")
.scopeAssignmentName("string")
.build());
scope_assignment_resource = azure_native.managednetwork.ScopeAssignment("scopeAssignmentResource",
scope=string,
assigned_managed_network=string,
location=string,
scope_assignment_name=string)
const scopeAssignmentResource = new azure_native.managednetwork.ScopeAssignment("scopeAssignmentResource", {
scope: "string",
assignedManagedNetwork: "string",
location: "string",
scopeAssignmentName: "string",
});
type: azure-native:managednetwork:ScopeAssignment
properties:
assignedManagedNetwork: string
location: string
scope: string
scopeAssignmentName: string
ScopeAssignment 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 ScopeAssignment resource accepts the following input properties:
- Scope
This property is required. Changes to this property will trigger replacement.
- The base resource of the scope assignment to create. The scope can be any REST resource instance. For example, use 'subscriptions/{subscription-id}' for a subscription, 'subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and 'subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource.
- Assigned
Managed stringNetwork - The managed network ID with scope will be assigned to.
- Location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- Scope
Assignment Name Changes to this property will trigger replacement.
- The name of the scope assignment to create.
- Scope
This property is required. Changes to this property will trigger replacement.
- The base resource of the scope assignment to create. The scope can be any REST resource instance. For example, use 'subscriptions/{subscription-id}' for a subscription, 'subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and 'subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource.
- Assigned
Managed stringNetwork - The managed network ID with scope will be assigned to.
- Location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- Scope
Assignment Name Changes to this property will trigger replacement.
- The name of the scope assignment to create.
- scope
This property is required. Changes to this property will trigger replacement.
- The base resource of the scope assignment to create. The scope can be any REST resource instance. For example, use 'subscriptions/{subscription-id}' for a subscription, 'subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and 'subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource.
- assigned
Managed StringNetwork - The managed network ID with scope will be assigned to.
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- scope
Assignment Name Changes to this property will trigger replacement.
- The name of the scope assignment to create.
- scope
This property is required. Changes to this property will trigger replacement.
- The base resource of the scope assignment to create. The scope can be any REST resource instance. For example, use 'subscriptions/{subscription-id}' for a subscription, 'subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and 'subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource.
- assigned
Managed stringNetwork - The managed network ID with scope will be assigned to.
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- scope
Assignment Name Changes to this property will trigger replacement.
- The name of the scope assignment to create.
- scope
This property is required. Changes to this property will trigger replacement.
- The base resource of the scope assignment to create. The scope can be any REST resource instance. For example, use 'subscriptions/{subscription-id}' for a subscription, 'subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and 'subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource.
- assigned_
managed_ strnetwork - The managed network ID with scope will be assigned to.
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- scope_
assignment_ name Changes to this property will trigger replacement.
- The name of the scope assignment to create.
- scope
This property is required. Changes to this property will trigger replacement.
- The base resource of the scope assignment to create. The scope can be any REST resource instance. For example, use 'subscriptions/{subscription-id}' for a subscription, 'subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and 'subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource.
- assigned
Managed StringNetwork - The managed network ID with scope will be assigned to.
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- scope
Assignment Name Changes to this property will trigger replacement.
- The name of the scope assignment to create.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScopeAssignment resource produces the following output properties:
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Provisioning state of the ManagedNetwork resource.
- Type string
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Provisioning state of the ManagedNetwork resource.
- Type string
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Provisioning state of the ManagedNetwork resource.
- type String
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - Provisioning state of the ManagedNetwork resource.
- type string
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- etag str
- A unique read-only string that changes whenever the resource is updated.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - Provisioning state of the ManagedNetwork resource.
- type str
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Provisioning state of the ManagedNetwork resource.
- type String
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:managednetwork:ScopeAssignment subscriptionCAssignment /{scope}/providers/Microsoft.ManagedNetwork/scopeAssignments/{scopeAssignmentName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0