Hyperv Host Controller Args
data class HypervHostControllerArgs(val fqdn: Output<String>? = null, val hostName: Output<String>? = null, val provisioningState: Output<Either<String, ProvisioningState>>? = null, val resourceGroupName: Output<String>? = null, val runAsAccountId: Output<String>? = null, val siteName: Output<String>? = null) : ConvertibleToJava<HypervHostControllerArgs>
A host resource belonging to a site resource. Uses Azure REST API version 2023-10-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-06-06. Other available API versions: 2023-06-06, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native offazure [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
HypervHostController_Create_MaximumSet_Gen
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var hypervHostController = new AzureNative.OffAzure.HypervHostController("hypervHostController", new()
{
Fqdn = "lk",
HostName = "1FXhE45296-eJUF1Y-",
ProvisioningState = AzureNative.OffAzure.ProvisioningState.Created,
ResourceGroupName = "rgmigrate",
RunAsAccountId = "epkvjlsbaigwfxwgzo",
SiteName = "f3m9-Tf--3-n7-40USK7XX",
});
});
Content copied to clipboard
package main
import (
offazure "github.com/pulumi/pulumi-azure-native-sdk/offazure/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := offazure.NewHypervHostController(ctx, "hypervHostController", &offazure.HypervHostControllerArgs{
Fqdn: pulumi.String("lk"),
HostName: pulumi.String("1FXhE45296-eJUF1Y-"),
ProvisioningState: pulumi.String(offazure.ProvisioningStateCreated),
ResourceGroupName: pulumi.String("rgmigrate"),
RunAsAccountId: pulumi.String("epkvjlsbaigwfxwgzo"),
SiteName: pulumi.String("f3m9-Tf--3-n7-40USK7XX"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.offazure.HypervHostController;
import com.pulumi.azurenative.offazure.HypervHostControllerArgs;
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 hypervHostController = new HypervHostController("hypervHostController", HypervHostControllerArgs.builder()
.fqdn("lk")
.hostName("1FXhE45296-eJUF1Y-")
.provisioningState("Created")
.resourceGroupName("rgmigrate")
.runAsAccountId("epkvjlsbaigwfxwgzo")
.siteName("f3m9-Tf--3-n7-40USK7XX")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:offazure:HypervHostController otjimvbvxztyisadood /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/hypervSites/{siteName}/hosts/{hostName}
Content copied to clipboard