HyperVSite

class HyperVSite : KotlinCustomResource

Site REST Resource. Uses Azure REST API version 2020-07-07. In version 2.x of the Azure Native provider, it used API version 2020-07-07.

Example Usage

Create Hyper-V site

using System.Collections.Generic;
using System.Linq;
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/offazure/v2"
"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.SitePropertiesArgs{
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 com.pulumi.azurenative.offazure.inputs.SitePropertiesArgs;
import com.pulumi.azurenative.offazure.inputs.SiteSpnPropertiesArgs;
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(SitePropertiesArgs.builder()
.servicePrincipalIdentityDetails(SiteSpnPropertiesArgs.builder()
.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")
.build())
.build())
.resourceGroupName("pajindTest")
.siteName("appliance1e39site")
.build());
}
}

Import

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

$ pulumi import azure-native:offazure:HyperVSite appliance1e39site /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/HyperVSites/{siteName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val eTag: Output<String>?

eTag for concurrency control.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>?

Azure location in which Sites is created.

Link copied to clipboard
val name: Output<String>?

Name of the Hyper-V site.

Link copied to clipboard

Nested properties of Hyper-V site.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

Link copied to clipboard
val tags: Output<Map<String, String>>?
Link copied to clipboard
val type: Output<String>

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

Link copied to clipboard
val urn: Output<String>