Azure Native

v1.88.1 published on Thursday, Dec 1, 2022 by Pulumi

HyperVSite

Site REST Resource. API Version: 2020-01-01.

Example Usage

Create Hyper-V site

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var hyperVSite = new AzureNative.OffAzure.HyperVSite("hyperVSite", new()
    {
        Location = "eastus",
        Properties = new AzureNative.OffAzure.Inputs.SitePropertiesArgs
        {
            ServicePrincipalIdentityDetails = new AzureNative.OffAzure.Inputs.SiteSpnPropertiesArgs
            {
                AadAuthority = "https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47",
                ApplicationId = "e9f013df-2a2a-4871-b766-e79867f30348",
                Audience = "https://72f988bf-86f1-41af-91ab-2d7cd011db47/MaheshSite17ac9agentauthaadapp",
                ObjectId = "2cd492bc-7ef3-4ee0-b301-59a88108b47b",
                TenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47",
            },
        },
        ResourceGroupName = "pajindTest",
        SiteName = "appliance1e39site",
    });

});
package main

import (
	offazure "github.com/pulumi/pulumi-azure-native/sdk/go/azure/offazure"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := offazure.NewHyperVSite(ctx, "hyperVSite", &offazure.HyperVSiteArgs{
			Location: pulumi.String("eastus"),
			Properties: offazure.SitePropertiesResponse{
				ServicePrincipalIdentityDetails: &offazure.SiteSpnPropertiesArgs{
					AadAuthority:  pulumi.String("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"),
					ApplicationId: pulumi.String("e9f013df-2a2a-4871-b766-e79867f30348"),
					Audience:      pulumi.String("https://72f988bf-86f1-41af-91ab-2d7cd011db47/MaheshSite17ac9agentauthaadapp"),
					ObjectId:      pulumi.String("2cd492bc-7ef3-4ee0-b301-59a88108b47b"),
					TenantId:      pulumi.String("72f988bf-86f1-41af-91ab-2d7cd011db47"),
				},
			},
			ResourceGroupName: pulumi.String("pajindTest"),
			SiteName:          pulumi.String("appliance1e39site"),
		})
		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.offazure.HyperVSite;
import com.pulumi.azurenative.offazure.HyperVSiteArgs;
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 hyperVSite = new HyperVSite("hyperVSite", HyperVSiteArgs.builder()        
            .location("eastus")
            .properties(Map.of("servicePrincipalIdentityDetails", Map.ofEntries(
                Map.entry("aadAuthority", "https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"),
                Map.entry("applicationId", "e9f013df-2a2a-4871-b766-e79867f30348"),
                Map.entry("audience", "https://72f988bf-86f1-41af-91ab-2d7cd011db47/MaheshSite17ac9agentauthaadapp"),
                Map.entry("objectId", "2cd492bc-7ef3-4ee0-b301-59a88108b47b"),
                Map.entry("tenantId", "72f988bf-86f1-41af-91ab-2d7cd011db47")
            )))
            .resourceGroupName("pajindTest")
            .siteName("appliance1e39site")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

hyper_v_site = azure_native.offazure.HyperVSite("hyperVSite",
    location="eastus",
    properties=azure_native.offazure.SitePropertiesResponseArgs(
        service_principal_identity_details=azure_native.offazure.SiteSpnPropertiesArgs(
            aad_authority="https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47",
            application_id="e9f013df-2a2a-4871-b766-e79867f30348",
            audience="https://72f988bf-86f1-41af-91ab-2d7cd011db47/MaheshSite17ac9agentauthaadapp",
            object_id="2cd492bc-7ef3-4ee0-b301-59a88108b47b",
            tenant_id="72f988bf-86f1-41af-91ab-2d7cd011db47",
        ),
    ),
    resource_group_name="pajindTest",
    site_name="appliance1e39site")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const hyperVSite = new azure_native.offazure.HyperVSite("hyperVSite", {
    location: "eastus",
    properties: {
        servicePrincipalIdentityDetails: {
            aadAuthority: "https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47",
            applicationId: "e9f013df-2a2a-4871-b766-e79867f30348",
            audience: "https://72f988bf-86f1-41af-91ab-2d7cd011db47/MaheshSite17ac9agentauthaadapp",
            objectId: "2cd492bc-7ef3-4ee0-b301-59a88108b47b",
            tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47",
        },
    },
    resourceGroupName: "pajindTest",
    siteName: "appliance1e39site",
});
resources:
  hyperVSite:
    type: azure-native:offazure:HyperVSite
    properties:
      location: eastus
      properties:
        servicePrincipalIdentityDetails:
          aadAuthority: https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47
          applicationId: e9f013df-2a2a-4871-b766-e79867f30348
          audience: https://72f988bf-86f1-41af-91ab-2d7cd011db47/MaheshSite17ac9agentauthaadapp
          objectId: 2cd492bc-7ef3-4ee0-b301-59a88108b47b
          tenantId: 72f988bf-86f1-41af-91ab-2d7cd011db47
      resourceGroupName: pajindTest
      siteName: appliance1e39site

Create HyperVSite Resource

new HyperVSite(name: string, args: HyperVSiteArgs, opts?: CustomResourceOptions);
@overload
def HyperVSite(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               e_tag: Optional[str] = None,
               location: Optional[str] = None,
               name: Optional[str] = None,
               properties: Optional[SitePropertiesArgs] = None,
               resource_group_name: Optional[str] = None,
               site_name: Optional[str] = None,
               tags: Optional[Mapping[str, str]] = None)
@overload
def HyperVSite(resource_name: str,
               args: HyperVSiteArgs,
               opts: Optional[ResourceOptions] = None)
func NewHyperVSite(ctx *Context, name string, args HyperVSiteArgs, opts ...ResourceOption) (*HyperVSite, error)
public HyperVSite(string name, HyperVSiteArgs args, CustomResourceOptions? opts = null)
public HyperVSite(String name, HyperVSiteArgs args)
public HyperVSite(String name, HyperVSiteArgs args, CustomResourceOptions options)
type: azure-native:offazure:HyperVSite
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args HyperVSiteArgs
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 HyperVSiteArgs
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 HyperVSiteArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args HyperVSiteArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args HyperVSiteArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

HyperVSite Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The HyperVSite resource accepts the following input properties:

ResourceGroupName string

The name of the resource group. The name is case insensitive.

ETag string

eTag for concurrency control.

Location string

Azure location in which Sites is created.

Name string

Name of the Hyper-V site.

Properties Pulumi.AzureNative.OffAzure.Inputs.SitePropertiesArgs

Nested properties of Hyper-V site.

SiteName string

Site name.

Tags Dictionary<string, string>
ResourceGroupName string

The name of the resource group. The name is case insensitive.

ETag string

eTag for concurrency control.

Location string

Azure location in which Sites is created.

Name string

Name of the Hyper-V site.

Properties SitePropertiesArgs

Nested properties of Hyper-V site.

SiteName string

Site name.

Tags map[string]string
resourceGroupName String

The name of the resource group. The name is case insensitive.

eTag String

eTag for concurrency control.

location String

Azure location in which Sites is created.

name String

Name of the Hyper-V site.

properties SitePropertiesArgs

Nested properties of Hyper-V site.

siteName String

Site name.

tags Map<String,String>
resourceGroupName string

The name of the resource group. The name is case insensitive.

eTag string

eTag for concurrency control.

location string

Azure location in which Sites is created.

name string

Name of the Hyper-V site.

properties SitePropertiesArgs

Nested properties of Hyper-V site.

siteName string

Site name.

tags {[key: string]: string}
resource_group_name str

The name of the resource group. The name is case insensitive.

e_tag str

eTag for concurrency control.

location str

Azure location in which Sites is created.

name str

Name of the Hyper-V site.

properties SitePropertiesArgs

Nested properties of Hyper-V site.

site_name str

Site name.

tags Mapping[str, str]
resourceGroupName String

The name of the resource group. The name is case insensitive.

eTag String

eTag for concurrency control.

location String

Azure location in which Sites is created.

name String

Name of the Hyper-V site.

properties Property Map

Nested properties of Hyper-V site.

siteName String

Site name.

tags Map<String>

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Type string

Type of resource. Type = Microsoft.OffAzure/HyperVSites.

Id string

The provider-assigned unique ID for this managed resource.

Type string

Type of resource. Type = Microsoft.OffAzure/HyperVSites.

id String

The provider-assigned unique ID for this managed resource.

type String

Type of resource. Type = Microsoft.OffAzure/HyperVSites.

id string

The provider-assigned unique ID for this managed resource.

type string

Type of resource. Type = Microsoft.OffAzure/HyperVSites.

id str

The provider-assigned unique ID for this managed resource.

type str

Type of resource. Type = Microsoft.OffAzure/HyperVSites.

id String

The provider-assigned unique ID for this managed resource.

type String

Type of resource. Type = Microsoft.OffAzure/HyperVSites.

Supporting Types

SiteAgentProperties

KeyVaultId string

Key vault ARM Id.

KeyVaultUri string

Key vault URI.

KeyVaultId string

Key vault ARM Id.

KeyVaultUri string

Key vault URI.

keyVaultId String

Key vault ARM Id.

keyVaultUri String

Key vault URI.

keyVaultId string

Key vault ARM Id.

keyVaultUri string

Key vault URI.

key_vault_id str

Key vault ARM Id.

key_vault_uri str

Key vault URI.

keyVaultId String

Key vault ARM Id.

keyVaultUri String

Key vault URI.

SiteAgentPropertiesResponse

Id string

ID of the agent.

LastHeartBeatUtc string

Last heartbeat time of the agent in UTC.

Version string

Version of the agent.

KeyVaultId string

Key vault ARM Id.

KeyVaultUri string

Key vault URI.

Id string

ID of the agent.

LastHeartBeatUtc string

Last heartbeat time of the agent in UTC.

Version string

Version of the agent.

KeyVaultId string

Key vault ARM Id.

KeyVaultUri string

Key vault URI.

id String

ID of the agent.

lastHeartBeatUtc String

Last heartbeat time of the agent in UTC.

version String

Version of the agent.

keyVaultId String

Key vault ARM Id.

keyVaultUri String

Key vault URI.

id string

ID of the agent.

lastHeartBeatUtc string

Last heartbeat time of the agent in UTC.

version string

Version of the agent.

keyVaultId string

Key vault ARM Id.

keyVaultUri string

Key vault URI.

id str

ID of the agent.

last_heart_beat_utc str

Last heartbeat time of the agent in UTC.

version str

Version of the agent.

key_vault_id str

Key vault ARM Id.

key_vault_uri str

Key vault URI.

id String

ID of the agent.

lastHeartBeatUtc String

Last heartbeat time of the agent in UTC.

version String

Version of the agent.

keyVaultId String

Key vault ARM Id.

keyVaultUri String

Key vault URI.

SiteProperties

AgentDetails Pulumi.AzureNative.OffAzure.Inputs.SiteAgentProperties

On-premises agent details.

ApplianceName string

Appliance Name.

DiscoverySolutionId string

ARM ID of migration hub solution for SDS.

ServicePrincipalIdentityDetails Pulumi.AzureNative.OffAzure.Inputs.SiteSpnProperties

Service principal identity details used by agent for communication to the service.

AgentDetails SiteAgentProperties

On-premises agent details.

ApplianceName string

Appliance Name.

DiscoverySolutionId string

ARM ID of migration hub solution for SDS.

ServicePrincipalIdentityDetails SiteSpnProperties

Service principal identity details used by agent for communication to the service.

agentDetails SiteAgentProperties

On-premises agent details.

applianceName String

Appliance Name.

discoverySolutionId String

ARM ID of migration hub solution for SDS.

servicePrincipalIdentityDetails SiteSpnProperties

Service principal identity details used by agent for communication to the service.

agentDetails SiteAgentProperties

On-premises agent details.

applianceName string

Appliance Name.

discoverySolutionId string

ARM ID of migration hub solution for SDS.

servicePrincipalIdentityDetails SiteSpnProperties

Service principal identity details used by agent for communication to the service.

agent_details SiteAgentProperties

On-premises agent details.

appliance_name str

Appliance Name.

discovery_solution_id str

ARM ID of migration hub solution for SDS.

service_principal_identity_details SiteSpnProperties

Service principal identity details used by agent for communication to the service.

agentDetails Property Map

On-premises agent details.

applianceName String

Appliance Name.

discoverySolutionId String

ARM ID of migration hub solution for SDS.

servicePrincipalIdentityDetails Property Map

Service principal identity details used by agent for communication to the service.

SitePropertiesResponse

ServiceEndpoint string

Service endpoint.

AgentDetails Pulumi.AzureNative.OffAzure.Inputs.SiteAgentPropertiesResponse

On-premises agent details.

ApplianceName string

Appliance Name.

DiscoverySolutionId string

ARM ID of migration hub solution for SDS.

ServicePrincipalIdentityDetails Pulumi.AzureNative.OffAzure.Inputs.SiteSpnPropertiesResponse

Service principal identity details used by agent for communication to the service.

ServiceEndpoint string

Service endpoint.

AgentDetails SiteAgentPropertiesResponse

On-premises agent details.

ApplianceName string

Appliance Name.

DiscoverySolutionId string

ARM ID of migration hub solution for SDS.

ServicePrincipalIdentityDetails SiteSpnPropertiesResponse

Service principal identity details used by agent for communication to the service.

serviceEndpoint String

Service endpoint.

agentDetails SiteAgentPropertiesResponse

On-premises agent details.

applianceName String

Appliance Name.

discoverySolutionId String

ARM ID of migration hub solution for SDS.

servicePrincipalIdentityDetails SiteSpnPropertiesResponse

Service principal identity details used by agent for communication to the service.

serviceEndpoint string

Service endpoint.

agentDetails SiteAgentPropertiesResponse

On-premises agent details.

applianceName string

Appliance Name.

discoverySolutionId string

ARM ID of migration hub solution for SDS.

servicePrincipalIdentityDetails SiteSpnPropertiesResponse

Service principal identity details used by agent for communication to the service.

service_endpoint str

Service endpoint.

agent_details SiteAgentPropertiesResponse

On-premises agent details.

appliance_name str

Appliance Name.

discovery_solution_id str

ARM ID of migration hub solution for SDS.

service_principal_identity_details SiteSpnPropertiesResponse

Service principal identity details used by agent for communication to the service.

serviceEndpoint String

Service endpoint.

agentDetails Property Map

On-premises agent details.

applianceName String

Appliance Name.

discoverySolutionId String

ARM ID of migration hub solution for SDS.

servicePrincipalIdentityDetails Property Map

Service principal identity details used by agent for communication to the service.

SiteSpnProperties

AadAuthority string

AAD Authority URL which was used to request the token for the service principal.

ApplicationId string

Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

Audience string

Intended audience for the service principal.

ObjectId string

Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.

RawCertData string

Raw certificate data for building certificate expiry flows.

TenantId string

Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

AadAuthority string

AAD Authority URL which was used to request the token for the service principal.

ApplicationId string

Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

Audience string

Intended audience for the service principal.

ObjectId string

Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.

RawCertData string

Raw certificate data for building certificate expiry flows.

TenantId string

Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

aadAuthority String

AAD Authority URL which was used to request the token for the service principal.

applicationId String

Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

audience String

Intended audience for the service principal.

objectId String

Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.

rawCertData String

Raw certificate data for building certificate expiry flows.

tenantId String

Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

aadAuthority string

AAD Authority URL which was used to request the token for the service principal.

applicationId string

Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

audience string

Intended audience for the service principal.

objectId string

Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.

rawCertData string

Raw certificate data for building certificate expiry flows.

tenantId string

Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

aad_authority str

AAD Authority URL which was used to request the token for the service principal.

application_id str

Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

audience str

Intended audience for the service principal.

object_id str

Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.

raw_cert_data str

Raw certificate data for building certificate expiry flows.

tenant_id str

Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

aadAuthority String

AAD Authority URL which was used to request the token for the service principal.

applicationId String

Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

audience String

Intended audience for the service principal.

objectId String

Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.

rawCertData String

Raw certificate data for building certificate expiry flows.

tenantId String

Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

SiteSpnPropertiesResponse

AadAuthority string

AAD Authority URL which was used to request the token for the service principal.

ApplicationId string

Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

Audience string

Intended audience for the service principal.

ObjectId string

Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.

RawCertData string

Raw certificate data for building certificate expiry flows.

TenantId string

Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

AadAuthority string

AAD Authority URL which was used to request the token for the service principal.

ApplicationId string

Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

Audience string

Intended audience for the service principal.

ObjectId string

Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.

RawCertData string

Raw certificate data for building certificate expiry flows.

TenantId string

Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

aadAuthority String

AAD Authority URL which was used to request the token for the service principal.

applicationId String

Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

audience String

Intended audience for the service principal.

objectId String

Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.

rawCertData String

Raw certificate data for building certificate expiry flows.

tenantId String

Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

aadAuthority string

AAD Authority URL which was used to request the token for the service principal.

applicationId string

Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

audience string

Intended audience for the service principal.

objectId string

Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.

rawCertData string

Raw certificate data for building certificate expiry flows.

tenantId string

Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

aad_authority str

AAD Authority URL which was used to request the token for the service principal.

application_id str

Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

audience str

Intended audience for the service principal.

object_id str

Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.

raw_cert_data str

Raw certificate data for building certificate expiry flows.

tenant_id str

Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

aadAuthority String

AAD Authority URL which was used to request the token for the service principal.

applicationId String

Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

audience String

Intended audience for the service principal.

objectId String

Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.

rawCertData String

Raw certificate data for building certificate expiry flows.

tenantId String

Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:offazure:HyperVSite appliance1e39site /subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/pajindTest/providers/Microsoft.OffAzure/HyperVSites/appliance1e39site 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0