1. Packages
  2. Azure Native v1
  3. API Docs
  4. scvmm
  5. VirtualNetwork
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.scvmm.VirtualNetwork

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    The VirtualNetworks resource definition. API Version: 2020-06-05-preview.

    Example Usage

    CreateVirtualNetwork

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var virtualNetwork = new AzureNative.ScVmm.VirtualNetwork("virtualNetwork", new()
        {
            ExtendedLocation = new AzureNative.ScVmm.Inputs.ExtendedLocationArgs
            {
                Name = "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso",
                Type = "customLocation",
            },
            Location = "East US",
            ResourceGroupName = "testrg",
            Uuid = "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
            VirtualNetworkName = "HRVirtualNetwork",
            VmmServerId = "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer",
        });
    
    });
    
    package main
    
    import (
    	scvmm "github.com/pulumi/pulumi-azure-native-sdk/scvmm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scvmm.NewVirtualNetwork(ctx, "virtualNetwork", &scvmm.VirtualNetworkArgs{
    			ExtendedLocation: &scvmm.ExtendedLocationArgs{
    				Name: pulumi.String("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso"),
    				Type: pulumi.String("customLocation"),
    			},
    			Location:           pulumi.String("East US"),
    			ResourceGroupName:  pulumi.String("testrg"),
    			Uuid:               pulumi.String("aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"),
    			VirtualNetworkName: pulumi.String("HRVirtualNetwork"),
    			VmmServerId:        pulumi.String("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer"),
    		})
    		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.scvmm.VirtualNetwork;
    import com.pulumi.azurenative.scvmm.VirtualNetworkArgs;
    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 virtualNetwork = new VirtualNetwork("virtualNetwork", VirtualNetworkArgs.builder()        
                .extendedLocation(Map.ofEntries(
                    Map.entry("name", "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso"),
                    Map.entry("type", "customLocation")
                ))
                .location("East US")
                .resourceGroupName("testrg")
                .uuid("aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")
                .virtualNetworkName("HRVirtualNetwork")
                .vmmServerId("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    virtual_network = azure_native.scvmm.VirtualNetwork("virtualNetwork",
        extended_location=azure_native.scvmm.ExtendedLocationArgs(
            name="/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso",
            type="customLocation",
        ),
        location="East US",
        resource_group_name="testrg",
        uuid="aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
        virtual_network_name="HRVirtualNetwork",
        vmm_server_id="/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const virtualNetwork = new azure_native.scvmm.VirtualNetwork("virtualNetwork", {
        extendedLocation: {
            name: "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso",
            type: "customLocation",
        },
        location: "East US",
        resourceGroupName: "testrg",
        uuid: "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
        virtualNetworkName: "HRVirtualNetwork",
        vmmServerId: "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer",
    });
    
    resources:
      virtualNetwork:
        type: azure-native:scvmm:VirtualNetwork
        properties:
          extendedLocation:
            name: /subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso
            type: customLocation
          location: East US
          resourceGroupName: testrg
          uuid: aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
          virtualNetworkName: HRVirtualNetwork
          vmmServerId: /subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer
    

    Create VirtualNetwork Resource

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

    Constructor syntax

    new VirtualNetwork(name: string, args: VirtualNetworkArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualNetwork(resource_name: str,
                       args: VirtualNetworkArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def VirtualNetwork(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       extended_location: Optional[ExtendedLocationArgs] = None,
                       resource_group_name: Optional[str] = None,
                       inventory_item_id: Optional[str] = None,
                       location: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None,
                       uuid: Optional[str] = None,
                       virtual_network_name: Optional[str] = None,
                       vmm_server_id: Optional[str] = None)
    func NewVirtualNetwork(ctx *Context, name string, args VirtualNetworkArgs, opts ...ResourceOption) (*VirtualNetwork, error)
    public VirtualNetwork(string name, VirtualNetworkArgs args, CustomResourceOptions? opts = null)
    public VirtualNetwork(String name, VirtualNetworkArgs args)
    public VirtualNetwork(String name, VirtualNetworkArgs args, CustomResourceOptions options)
    
    type: azure-native:scvmm:VirtualNetwork
    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 VirtualNetworkArgs
    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 VirtualNetworkArgs
    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 VirtualNetworkArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualNetworkArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualNetworkArgs
    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 examplevirtualNetworkResourceResourceFromScvmm = new AzureNative.Scvmm.VirtualNetwork("examplevirtualNetworkResourceResourceFromScvmm", new()
    {
        ExtendedLocation = 
        {
            { "name", "string" },
            { "type", "string" },
        },
        ResourceGroupName = "string",
        InventoryItemId = "string",
        Location = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Uuid = "string",
        VirtualNetworkName = "string",
        VmmServerId = "string",
    });
    
    example, err := scvmm.NewVirtualNetwork(ctx, "examplevirtualNetworkResourceResourceFromScvmm", &scvmm.VirtualNetworkArgs{
    	ExtendedLocation: map[string]interface{}{
    		"name": "string",
    		"type": "string",
    	},
    	ResourceGroupName: "string",
    	InventoryItemId:   "string",
    	Location:          "string",
    	Tags: map[string]interface{}{
    		"string": "string",
    	},
    	Uuid:               "string",
    	VirtualNetworkName: "string",
    	VmmServerId:        "string",
    })
    
    var examplevirtualNetworkResourceResourceFromScvmm = new VirtualNetwork("examplevirtualNetworkResourceResourceFromScvmm", VirtualNetworkArgs.builder()
        .extendedLocation(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .resourceGroupName("string")
        .inventoryItemId("string")
        .location("string")
        .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .uuid("string")
        .virtualNetworkName("string")
        .vmmServerId("string")
        .build());
    
    examplevirtual_network_resource_resource_from_scvmm = azure_native.scvmm.VirtualNetwork("examplevirtualNetworkResourceResourceFromScvmm",
        extended_location={
            name: string,
            type: string,
        },
        resource_group_name=string,
        inventory_item_id=string,
        location=string,
        tags={
            string: string,
        },
        uuid=string,
        virtual_network_name=string,
        vmm_server_id=string)
    
    const examplevirtualNetworkResourceResourceFromScvmm = new azure_native.scvmm.VirtualNetwork("examplevirtualNetworkResourceResourceFromScvmm", {
        extendedLocation: {
            name: "string",
            type: "string",
        },
        resourceGroupName: "string",
        inventoryItemId: "string",
        location: "string",
        tags: {
            string: "string",
        },
        uuid: "string",
        virtualNetworkName: "string",
        vmmServerId: "string",
    });
    
    type: azure-native:scvmm:VirtualNetwork
    properties:
        extendedLocation:
            name: string
            type: string
        inventoryItemId: string
        location: string
        resourceGroupName: string
        tags:
            string: string
        uuid: string
        virtualNetworkName: string
        vmmServerId: string
    

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

    ExtendedLocation Pulumi.AzureNative.ScVmm.Inputs.ExtendedLocation
    The extended location.
    ResourceGroupName string
    The name of the resource group.
    InventoryItemId string
    Gets or sets the inventory Item ID for the resource.
    Location string
    Gets or sets the location.
    Tags Dictionary<string, string>
    Resource tags
    Uuid string
    Unique ID of the virtual network.
    VirtualNetworkName string
    Name of the VirtualNetwork.
    VmmServerId string
    ARM Id of the vmmServer resource in which this resource resides.
    ExtendedLocation ExtendedLocationArgs
    The extended location.
    ResourceGroupName string
    The name of the resource group.
    InventoryItemId string
    Gets or sets the inventory Item ID for the resource.
    Location string
    Gets or sets the location.
    Tags map[string]string
    Resource tags
    Uuid string
    Unique ID of the virtual network.
    VirtualNetworkName string
    Name of the VirtualNetwork.
    VmmServerId string
    ARM Id of the vmmServer resource in which this resource resides.
    extendedLocation ExtendedLocation
    The extended location.
    resourceGroupName String
    The name of the resource group.
    inventoryItemId String
    Gets or sets the inventory Item ID for the resource.
    location String
    Gets or sets the location.
    tags Map<String,String>
    Resource tags
    uuid String
    Unique ID of the virtual network.
    virtualNetworkName String
    Name of the VirtualNetwork.
    vmmServerId String
    ARM Id of the vmmServer resource in which this resource resides.
    extendedLocation ExtendedLocation
    The extended location.
    resourceGroupName string
    The name of the resource group.
    inventoryItemId string
    Gets or sets the inventory Item ID for the resource.
    location string
    Gets or sets the location.
    tags {[key: string]: string}
    Resource tags
    uuid string
    Unique ID of the virtual network.
    virtualNetworkName string
    Name of the VirtualNetwork.
    vmmServerId string
    ARM Id of the vmmServer resource in which this resource resides.
    extended_location ExtendedLocationArgs
    The extended location.
    resource_group_name str
    The name of the resource group.
    inventory_item_id str
    Gets or sets the inventory Item ID for the resource.
    location str
    Gets or sets the location.
    tags Mapping[str, str]
    Resource tags
    uuid str
    Unique ID of the virtual network.
    virtual_network_name str
    Name of the VirtualNetwork.
    vmm_server_id str
    ARM Id of the vmmServer resource in which this resource resides.
    extendedLocation Property Map
    The extended location.
    resourceGroupName String
    The name of the resource group.
    inventoryItemId String
    Gets or sets the inventory Item ID for the resource.
    location String
    Gets or sets the location.
    tags Map<String>
    Resource tags
    uuid String
    Unique ID of the virtual network.
    virtualNetworkName String
    Name of the VirtualNetwork.
    vmmServerId String
    ARM Id of the vmmServer resource in which this resource resides.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource Name
    NetworkName string
    Name of the virtual network in vmmServer.
    ProvisioningState string
    Gets or sets the provisioning state.
    SystemData Pulumi.AzureNative.ScVmm.Outputs.SystemDataResponse
    The system data.
    Type string
    Resource Type
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource Name
    NetworkName string
    Name of the virtual network in vmmServer.
    ProvisioningState string
    Gets or sets the provisioning state.
    SystemData SystemDataResponse
    The system data.
    Type string
    Resource Type
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource Name
    networkName String
    Name of the virtual network in vmmServer.
    provisioningState String
    Gets or sets the provisioning state.
    systemData SystemDataResponse
    The system data.
    type String
    Resource Type
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource Name
    networkName string
    Name of the virtual network in vmmServer.
    provisioningState string
    Gets or sets the provisioning state.
    systemData SystemDataResponse
    The system data.
    type string
    Resource Type
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource Name
    network_name str
    Name of the virtual network in vmmServer.
    provisioning_state str
    Gets or sets the provisioning state.
    system_data SystemDataResponse
    The system data.
    type str
    Resource Type
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource Name
    networkName String
    Name of the virtual network in vmmServer.
    provisioningState String
    Gets or sets the provisioning state.
    systemData Property Map
    The system data.
    type String
    Resource Type

    Supporting Types

    ExtendedLocation, ExtendedLocationArgs

    Name string
    The extended location name.
    Type string
    The extended location type.
    Name string
    The extended location name.
    Type string
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.
    name string
    The extended location name.
    type string
    The extended location type.
    name str
    The extended location name.
    type str
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.

    ExtendedLocationResponse, ExtendedLocationResponseArgs

    Name string
    The extended location name.
    Type string
    The extended location type.
    Name string
    The extended location name.
    Type string
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.
    name string
    The extended location name.
    type string
    The extended location type.
    name str
    The extended location name.
    type str
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.

    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:scvmm:VirtualNetwork HRVirtualNetwork /subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualNetworks/HRVirtualNetwork 
    

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

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi