Hana Instance Args
data class HanaInstanceArgs(val hanaInstanceName: Output<String>? = null, val location: Output<String>? = null, val networkProfile: Output<NetworkProfileArgs>? = null, val osProfile: Output<OSProfileArgs>? = null, val partnerNodeId: Output<String>? = null, val resourceGroupName: Output<String>? = null, val storageProfile: Output<StorageProfileArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<HanaInstanceArgs>
HANA instance info on Azure (ARM properties and HANA properties) API Version: 2017-11-03-preview.
Example Usage
Create a HANA instance
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var hanaInstance = new AzureNative.HanaOnAzure.HanaInstance("hanaInstance", new()
{
HanaInstanceName = "myHanaInstance",
Location = "westus",
NetworkProfile = new AzureNative.HanaOnAzure.Inputs.NetworkProfileArgs
{
NetworkInterfaces = new[]
{
new AzureNative.HanaOnAzure.Inputs.IpAddressArgs
{
IpAddress = "100.100.100.100",
},
},
},
OsProfile = new AzureNative.HanaOnAzure.Inputs.OSProfileArgs
{
ComputerName = "myComputerName",
SshPublicKey = "AAAAB3NzaC1yc2EAAAABJQAAAQB/nAmOjTmezNUDKYvEeIRf2YnwM9/uUG1d0BYsc8/tRtx+RGi7N2lUbp728MXGwdnL9od4cItzky/zVdLZE2cycOa18xBK9cOWmcKS0A8FYBxEQWJ/q9YVUgZbFKfYGaGQxsER+A0w/fX8ALuk78ktP31K69LcQgxIsl7rNzxsoOQKJ/CIxOGMMxczYTiEoLvQhapFQMs3FL96didKr/QbrfB1WT6s3838SEaXfgZvLef1YB2xmfhbT9OXFE3FXvh2UPBfN+ffE7iiayQf/2XR+8j4N4bW30DiPtOQLGUrH1y5X/rpNZNlWW2+jGIxqZtgWg7lTy3mXy5x836Sj/6L",
},
PartnerNodeId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/hanaInstances/myHanaInstance2",
ResourceGroupName = "myResourceGroup",
Tags =
{
{ "key", "value" },
},
});
});
Content copied to clipboard
package main
import (
hanaonazure "github.com/pulumi/pulumi-azure-native-sdk/hanaonazure"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hanaonazure.NewHanaInstance(ctx, "hanaInstance", &hanaonazure.HanaInstanceArgs{
HanaInstanceName: pulumi.String("myHanaInstance"),
Location: pulumi.String("westus"),
NetworkProfile: hanaonazure.NetworkProfileResponse{
NetworkInterfaces: hanaonazure.IpAddressArray{
&hanaonazure.IpAddressArgs{
IpAddress: pulumi.String("100.100.100.100"),
},
},
},
OsProfile: &hanaonazure.OSProfileArgs{
ComputerName: pulumi.String("myComputerName"),
SshPublicKey: pulumi.String("AAAAB3NzaC1yc2EAAAABJQAAAQB/nAmOjTmezNUDKYvEeIRf2YnwM9/uUG1d0BYsc8/tRtx+RGi7N2lUbp728MXGwdnL9od4cItzky/zVdLZE2cycOa18xBK9cOWmcKS0A8FYBxEQWJ/q9YVUgZbFKfYGaGQxsER+A0w/fX8ALuk78ktP31K69LcQgxIsl7rNzxsoOQKJ/CIxOGMMxczYTiEoLvQhapFQMs3FL96didKr/QbrfB1WT6s3838SEaXfgZvLef1YB2xmfhbT9OXFE3FXvh2UPBfN+ffE7iiayQf/2XR+8j4N4bW30DiPtOQLGUrH1y5X/rpNZNlWW2+jGIxqZtgWg7lTy3mXy5x836Sj/6L"),
},
PartnerNodeId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/hanaInstances/myHanaInstance2"),
ResourceGroupName: pulumi.String("myResourceGroup"),
Tags: pulumi.StringMap{
"key": pulumi.String("value"),
},
})
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.hanaonazure.HanaInstance;
import com.pulumi.azurenative.hanaonazure.HanaInstanceArgs;
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 hanaInstance = new HanaInstance("hanaInstance", HanaInstanceArgs.builder()
.hanaInstanceName("myHanaInstance")
.location("westus")
.networkProfile(Map.of("networkInterfaces", Map.of("ipAddress", "100.100.100.100")))
.osProfile(Map.ofEntries(
Map.entry("computerName", "myComputerName"),
Map.entry("sshPublicKey", "AAAAB3NzaC1yc2EAAAABJQAAAQB/nAmOjTmezNUDKYvEeIRf2YnwM9/uUG1d0BYsc8/tRtx+RGi7N2lUbp728MXGwdnL9od4cItzky/zVdLZE2cycOa18xBK9cOWmcKS0A8FYBxEQWJ/q9YVUgZbFKfYGaGQxsER+A0w/fX8ALuk78ktP31K69LcQgxIsl7rNzxsoOQKJ/CIxOGMMxczYTiEoLvQhapFQMs3FL96didKr/QbrfB1WT6s3838SEaXfgZvLef1YB2xmfhbT9OXFE3FXvh2UPBfN+ffE7iiayQf/2XR+8j4N4bW30DiPtOQLGUrH1y5X/rpNZNlWW2+jGIxqZtgWg7lTy3mXy5x836Sj/6L")
))
.partnerNodeId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/hanaInstances/myHanaInstance2")
.resourceGroupName("myResourceGroup")
.tags(Map.of("key", "value"))
.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:hanaonazure:HanaInstance myHanaInstance /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/hanaInstances/myHanaInstance
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(hanaInstanceName: Output<String>? = null, location: Output<String>? = null, networkProfile: Output<NetworkProfileArgs>? = null, osProfile: Output<OSProfileArgs>? = null, partnerNodeId: Output<String>? = null, resourceGroupName: Output<String>? = null, storageProfile: Output<StorageProfileArgs>? = null, tags: Output<Map<String, String>>? = null)
Properties
Link copied to clipboard
Name of the SAP HANA on Azure instance.
Link copied to clipboard
Specifies the network settings for the HANA instance.
Link copied to clipboard
Specifies the operating system settings for the HANA instance.
Link copied to clipboard
ARM ID of another HanaInstance that will share a network with this HanaInstance
Link copied to clipboard
Name of the resource group.
Link copied to clipboard
Specifies the storage settings for the HANA instance disks.