azure-native.offazure.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:
- Resource
Group stringName 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.
Azure Native. Off Azure. Inputs. Site Properties Args Nested properties of Hyper-V site.
- Site
Name string Site name.
- Dictionary<string, string>
- Resource
Group stringName 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
Site
Properties Args Nested properties of Hyper-V site.
- Site
Name string Site name.
- map[string]string
- resource
Group StringName The name of the resource group. The name is case insensitive.
- e
Tag String eTag for concurrency control.
- location String
Azure location in which Sites is created.
- name String
Name of the Hyper-V site.
- properties
Site
Properties Args Nested properties of Hyper-V site.
- site
Name String Site name.
- Map<String,String>
- resource
Group stringName The name of the resource group. The name is case insensitive.
- e
Tag string eTag for concurrency control.
- location string
Azure location in which Sites is created.
- name string
Name of the Hyper-V site.
- properties
Site
Properties Args Nested properties of Hyper-V site.
- site
Name string Site name.
- {[key: string]: string}
- resource_
group_ strname 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
Site
Properties Args Nested properties of Hyper-V site.
- site_
name str Site name.
- Mapping[str, str]
- resource
Group StringName The name of the resource group. The name is case insensitive.
- e
Tag 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.
- site
Name String Site name.
- Map<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the HyperVSite resource produces the following output properties:
Supporting Types
SiteAgentProperties
- Key
Vault stringId Key vault ARM Id.
- Key
Vault stringUri Key vault URI.
- Key
Vault stringId Key vault ARM Id.
- Key
Vault stringUri Key vault URI.
- key
Vault StringId Key vault ARM Id.
- key
Vault StringUri Key vault URI.
- key
Vault stringId Key vault ARM Id.
- key
Vault stringUri Key vault URI.
- key_
vault_ strid Key vault ARM Id.
- key_
vault_ struri Key vault URI.
- key
Vault StringId Key vault ARM Id.
- key
Vault StringUri Key vault URI.
SiteAgentPropertiesResponse
- Id string
ID of the agent.
- Last
Heart stringBeat Utc Last heartbeat time of the agent in UTC.
- Version string
Version of the agent.
- Key
Vault stringId Key vault ARM Id.
- Key
Vault stringUri Key vault URI.
- Id string
ID of the agent.
- Last
Heart stringBeat Utc Last heartbeat time of the agent in UTC.
- Version string
Version of the agent.
- Key
Vault stringId Key vault ARM Id.
- Key
Vault stringUri Key vault URI.
- id String
ID of the agent.
- last
Heart StringBeat Utc Last heartbeat time of the agent in UTC.
- version String
Version of the agent.
- key
Vault StringId Key vault ARM Id.
- key
Vault StringUri Key vault URI.
- id string
ID of the agent.
- last
Heart stringBeat Utc Last heartbeat time of the agent in UTC.
- version string
Version of the agent.
- key
Vault stringId Key vault ARM Id.
- key
Vault stringUri Key vault URI.
- id str
ID of the agent.
- last_
heart_ strbeat_ utc Last heartbeat time of the agent in UTC.
- version str
Version of the agent.
- key_
vault_ strid Key vault ARM Id.
- key_
vault_ struri Key vault URI.
- id String
ID of the agent.
- last
Heart StringBeat Utc Last heartbeat time of the agent in UTC.
- version String
Version of the agent.
- key
Vault StringId Key vault ARM Id.
- key
Vault StringUri Key vault URI.
SiteProperties
- Agent
Details Pulumi.Azure Native. Off Azure. Inputs. Site Agent Properties On-premises agent details.
- Appliance
Name string Appliance Name.
- Discovery
Solution stringId ARM ID of migration hub solution for SDS.
- Service
Principal Pulumi.Identity Details Azure Native. Off Azure. Inputs. Site Spn Properties Service principal identity details used by agent for communication to the service.
- Agent
Details SiteAgent Properties On-premises agent details.
- Appliance
Name string Appliance Name.
- Discovery
Solution stringId ARM ID of migration hub solution for SDS.
- Service
Principal SiteIdentity Details Spn Properties Service principal identity details used by agent for communication to the service.
- agent
Details SiteAgent Properties On-premises agent details.
- appliance
Name String Appliance Name.
- discovery
Solution StringId ARM ID of migration hub solution for SDS.
- service
Principal SiteIdentity Details Spn Properties Service principal identity details used by agent for communication to the service.
- agent
Details SiteAgent Properties On-premises agent details.
- appliance
Name string Appliance Name.
- discovery
Solution stringId ARM ID of migration hub solution for SDS.
- service
Principal SiteIdentity Details Spn Properties Service principal identity details used by agent for communication to the service.
- agent_
details SiteAgent Properties On-premises agent details.
- appliance_
name str Appliance Name.
- discovery_
solution_ strid ARM ID of migration hub solution for SDS.
- service_
principal_ Siteidentity_ details Spn Properties Service principal identity details used by agent for communication to the service.
- agent
Details Property Map On-premises agent details.
- appliance
Name String Appliance Name.
- discovery
Solution StringId ARM ID of migration hub solution for SDS.
- service
Principal Property MapIdentity Details Service principal identity details used by agent for communication to the service.
SitePropertiesResponse
- Service
Endpoint string Service endpoint.
- Agent
Details Pulumi.Azure Native. Off Azure. Inputs. Site Agent Properties Response On-premises agent details.
- Appliance
Name string Appliance Name.
- Discovery
Solution stringId ARM ID of migration hub solution for SDS.
- Service
Principal Pulumi.Identity Details Azure Native. Off Azure. Inputs. Site Spn Properties Response Service principal identity details used by agent for communication to the service.
- Service
Endpoint string Service endpoint.
- Agent
Details SiteAgent Properties Response On-premises agent details.
- Appliance
Name string Appliance Name.
- Discovery
Solution stringId ARM ID of migration hub solution for SDS.
- Service
Principal SiteIdentity Details Spn Properties Response Service principal identity details used by agent for communication to the service.
- service
Endpoint String Service endpoint.
- agent
Details SiteAgent Properties Response On-premises agent details.
- appliance
Name String Appliance Name.
- discovery
Solution StringId ARM ID of migration hub solution for SDS.
- service
Principal SiteIdentity Details Spn Properties Response Service principal identity details used by agent for communication to the service.
- service
Endpoint string Service endpoint.
- agent
Details SiteAgent Properties Response On-premises agent details.
- appliance
Name string Appliance Name.
- discovery
Solution stringId ARM ID of migration hub solution for SDS.
- service
Principal SiteIdentity Details Spn Properties Response Service principal identity details used by agent for communication to the service.
- service_
endpoint str Service endpoint.
- agent_
details SiteAgent Properties Response On-premises agent details.
- appliance_
name str Appliance Name.
- discovery_
solution_ strid ARM ID of migration hub solution for SDS.
- service_
principal_ Siteidentity_ details Spn Properties Response Service principal identity details used by agent for communication to the service.
- service
Endpoint String Service endpoint.
- agent
Details Property Map On-premises agent details.
- appliance
Name String Appliance Name.
- discovery
Solution StringId ARM ID of migration hub solution for SDS.
- service
Principal Property MapIdentity Details Service principal identity details used by agent for communication to the service.
SiteSpnProperties
- string
AAD Authority URL which was used to request the token for the service principal.
- Application
Id 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.
- Object
Id string Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
- Raw
Cert stringData Raw certificate data for building certificate expiry flows.
- Tenant
Id string Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
- string
AAD Authority URL which was used to request the token for the service principal.
- Application
Id 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.
- Object
Id string Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
- Raw
Cert stringData Raw certificate data for building certificate expiry flows.
- Tenant
Id string Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
- String
AAD Authority URL which was used to request the token for the service principal.
- application
Id 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.
- object
Id String Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
- raw
Cert StringData Raw certificate data for building certificate expiry flows.
- tenant
Id String Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
- string
AAD Authority URL which was used to request the token for the service principal.
- application
Id 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.
- object
Id string Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
- raw
Cert stringData Raw certificate data for building certificate expiry flows.
- tenant
Id string Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
- 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_ strdata 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.
- String
AAD Authority URL which was used to request the token for the service principal.
- application
Id 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.
- object
Id String Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
- raw
Cert StringData Raw certificate data for building certificate expiry flows.
- tenant
Id String Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
SiteSpnPropertiesResponse
- string
AAD Authority URL which was used to request the token for the service principal.
- Application
Id 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.
- Object
Id string Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
- Raw
Cert stringData Raw certificate data for building certificate expiry flows.
- Tenant
Id string Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
- string
AAD Authority URL which was used to request the token for the service principal.
- Application
Id 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.
- Object
Id string Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
- Raw
Cert stringData Raw certificate data for building certificate expiry flows.
- Tenant
Id string Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
- String
AAD Authority URL which was used to request the token for the service principal.
- application
Id 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.
- object
Id String Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
- raw
Cert StringData Raw certificate data for building certificate expiry flows.
- tenant
Id String Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
- string
AAD Authority URL which was used to request the token for the service principal.
- application
Id 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.
- object
Id string Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
- raw
Cert stringData Raw certificate data for building certificate expiry flows.
- tenant
Id string Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
- 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_ strdata 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.
- String
AAD Authority URL which was used to request the token for the service principal.
- application
Id 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.
- object
Id String Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
- raw
Cert StringData Raw certificate data for building certificate expiry flows.
- tenant
Id 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
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0