azure-native.workloads.SAPDatabaseInstance
Explore with Pulumi AI
Define the Database resource. API Version: 2021-12-01-preview.
Example Usage
Create SAP Database Instances for HA System with Availability Set
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var sapDatabaseInstance = new AzureNative.Workloads.SAPDatabaseInstance("sapDatabaseInstance", new()
{
DatabaseInstanceName = "databaseServer",
Location = "westcentralus",
ResourceGroupName = "test-rg",
SapVirtualInstanceName = "X00",
Tags = null,
});
});
package main
import (
workloads "github.com/pulumi/pulumi-azure-native-sdk/workloads"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := workloads.NewSAPDatabaseInstance(ctx, "sapDatabaseInstance", &workloads.SAPDatabaseInstanceArgs{
DatabaseInstanceName: pulumi.String("databaseServer"),
Location: pulumi.String("westcentralus"),
ResourceGroupName: pulumi.String("test-rg"),
SapVirtualInstanceName: pulumi.String("X00"),
Tags: nil,
})
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.workloads.SAPDatabaseInstance;
import com.pulumi.azurenative.workloads.SAPDatabaseInstanceArgs;
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 sapDatabaseInstance = new SAPDatabaseInstance("sapDatabaseInstance", SAPDatabaseInstanceArgs.builder()
.databaseInstanceName("databaseServer")
.location("westcentralus")
.resourceGroupName("test-rg")
.sapVirtualInstanceName("X00")
.tags()
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
sap_database_instance = azure_native.workloads.SAPDatabaseInstance("sapDatabaseInstance",
database_instance_name="databaseServer",
location="westcentralus",
resource_group_name="test-rg",
sap_virtual_instance_name="X00",
tags={})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const sapDatabaseInstance = new azure_native.workloads.SAPDatabaseInstance("sapDatabaseInstance", {
databaseInstanceName: "databaseServer",
location: "westcentralus",
resourceGroupName: "test-rg",
sapVirtualInstanceName: "X00",
tags: {},
});
resources:
sapDatabaseInstance:
type: azure-native:workloads:SAPDatabaseInstance
properties:
databaseInstanceName: databaseServer
location: westcentralus
resourceGroupName: test-rg
sapVirtualInstanceName: X00
tags: {}
SAPDatabaseInstances_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var sapDatabaseInstance = new AzureNative.Workloads.SAPDatabaseInstance("sapDatabaseInstance", new()
{
DatabaseInstanceName = "databaseServer",
Location = "westcentralus",
ResourceGroupName = "test-rg",
SapVirtualInstanceName = "X00",
Tags = null,
});
});
package main
import (
workloads "github.com/pulumi/pulumi-azure-native-sdk/workloads"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := workloads.NewSAPDatabaseInstance(ctx, "sapDatabaseInstance", &workloads.SAPDatabaseInstanceArgs{
DatabaseInstanceName: pulumi.String("databaseServer"),
Location: pulumi.String("westcentralus"),
ResourceGroupName: pulumi.String("test-rg"),
SapVirtualInstanceName: pulumi.String("X00"),
Tags: nil,
})
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.workloads.SAPDatabaseInstance;
import com.pulumi.azurenative.workloads.SAPDatabaseInstanceArgs;
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 sapDatabaseInstance = new SAPDatabaseInstance("sapDatabaseInstance", SAPDatabaseInstanceArgs.builder()
.databaseInstanceName("databaseServer")
.location("westcentralus")
.resourceGroupName("test-rg")
.sapVirtualInstanceName("X00")
.tags()
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
sap_database_instance = azure_native.workloads.SAPDatabaseInstance("sapDatabaseInstance",
database_instance_name="databaseServer",
location="westcentralus",
resource_group_name="test-rg",
sap_virtual_instance_name="X00",
tags={})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const sapDatabaseInstance = new azure_native.workloads.SAPDatabaseInstance("sapDatabaseInstance", {
databaseInstanceName: "databaseServer",
location: "westcentralus",
resourceGroupName: "test-rg",
sapVirtualInstanceName: "X00",
tags: {},
});
resources:
sapDatabaseInstance:
type: azure-native:workloads:SAPDatabaseInstance
properties:
databaseInstanceName: databaseServer
location: westcentralus
resourceGroupName: test-rg
sapVirtualInstanceName: X00
tags: {}
Create SAPDatabaseInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SAPDatabaseInstance(name: string, args: SAPDatabaseInstanceArgs, opts?: CustomResourceOptions);
@overload
def SAPDatabaseInstance(resource_name: str,
args: SAPDatabaseInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SAPDatabaseInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
sap_virtual_instance_name: Optional[str] = None,
database_instance_name: Optional[str] = None,
location: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewSAPDatabaseInstance(ctx *Context, name string, args SAPDatabaseInstanceArgs, opts ...ResourceOption) (*SAPDatabaseInstance, error)
public SAPDatabaseInstance(string name, SAPDatabaseInstanceArgs args, CustomResourceOptions? opts = null)
public SAPDatabaseInstance(String name, SAPDatabaseInstanceArgs args)
public SAPDatabaseInstance(String name, SAPDatabaseInstanceArgs args, CustomResourceOptions options)
type: azure-native:workloads:SAPDatabaseInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SAPDatabaseInstanceArgs
- 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 SAPDatabaseInstanceArgs
- 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 SAPDatabaseInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SAPDatabaseInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SAPDatabaseInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sapdatabaseInstanceResource = new AzureNative.Workloads.SAPDatabaseInstance("sapdatabaseInstanceResource", new()
{
ResourceGroupName = "string",
SapVirtualInstanceName = "string",
DatabaseInstanceName = "string",
Location = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := workloads.NewSAPDatabaseInstance(ctx, "sapdatabaseInstanceResource", &workloads.SAPDatabaseInstanceArgs{
ResourceGroupName: "string",
SapVirtualInstanceName: "string",
DatabaseInstanceName: "string",
Location: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var sapdatabaseInstanceResource = new SAPDatabaseInstance("sapdatabaseInstanceResource", SAPDatabaseInstanceArgs.builder()
.resourceGroupName("string")
.sapVirtualInstanceName("string")
.databaseInstanceName("string")
.location("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
sapdatabase_instance_resource = azure_native.workloads.SAPDatabaseInstance("sapdatabaseInstanceResource",
resource_group_name=string,
sap_virtual_instance_name=string,
database_instance_name=string,
location=string,
tags={
string: string,
})
const sapdatabaseInstanceResource = new azure_native.workloads.SAPDatabaseInstance("sapdatabaseInstanceResource", {
resourceGroupName: "string",
sapVirtualInstanceName: "string",
databaseInstanceName: "string",
location: "string",
tags: {
string: "string",
},
});
type: azure-native:workloads:SAPDatabaseInstance
properties:
databaseInstanceName: string
location: string
resourceGroupName: string
sapVirtualInstanceName: string
tags:
string: string
SAPDatabaseInstance 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 SAPDatabaseInstance resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Sap
Virtual stringInstance Name - The name of the Virtual Instances for SAP solutions resource
- Database
Instance stringName - Database resource name string modeled as parameter for auto generation to work correctly.
- Location string
- The geo-location where the resource lives
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Sap
Virtual stringInstance Name - The name of the Virtual Instances for SAP solutions resource
- Database
Instance stringName - Database resource name string modeled as parameter for auto generation to work correctly.
- Location string
- The geo-location where the resource lives
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- sap
Virtual StringInstance Name - The name of the Virtual Instances for SAP solutions resource
- database
Instance StringName - Database resource name string modeled as parameter for auto generation to work correctly.
- location String
- The geo-location where the resource lives
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- sap
Virtual stringInstance Name - The name of the Virtual Instances for SAP solutions resource
- database
Instance stringName - Database resource name string modeled as parameter for auto generation to work correctly.
- location string
- The geo-location where the resource lives
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- sap_
virtual_ strinstance_ name - The name of the Virtual Instances for SAP solutions resource
- database_
instance_ strname - Database resource name string modeled as parameter for auto generation to work correctly.
- location str
- The geo-location where the resource lives
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- sap
Virtual StringInstance Name - The name of the Virtual Instances for SAP solutions resource
- database
Instance StringName - Database resource name string modeled as parameter for auto generation to work correctly.
- location String
- The geo-location where the resource lives
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the SAPDatabaseInstance resource produces the following output properties:
- Database
Sid string - Database SID name.
- Database
Type string - Database type, that is if the DB is HANA, DB2, Oracle, SAP ASE, Max DB or MS SQL Server.
- Errors
Pulumi.
Azure Native. Workloads. Outputs. SAPVirtual Instance Error Response - Defines the errors related to Database resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - Database IP Address.
- Load
Balancer Pulumi.Details Azure Native. Workloads. Outputs. Load Balancer Details Response - The Load Balancer details such as LoadBalancer ID attached to Database Virtual Machines
- Name string
- The name of the resource
- Provisioning
State string - Defines the provisioning states.
- Status string
- Defines the SAP Instance status.
- Subnet string
- Database subnet.
- System
Data Pulumi.Azure Native. Workloads. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Vm
Details List<Pulumi.Azure Native. Workloads. Outputs. Database Vm Details Response> - The list of virtual machines corresponding to the Database resource.
- Database
Sid string - Database SID name.
- Database
Type string - Database type, that is if the DB is HANA, DB2, Oracle, SAP ASE, Max DB or MS SQL Server.
- Errors
SAPVirtual
Instance Error Response - Defines the errors related to Database resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - Database IP Address.
- Load
Balancer LoadDetails Balancer Details Response - The Load Balancer details such as LoadBalancer ID attached to Database Virtual Machines
- Name string
- The name of the resource
- Provisioning
State string - Defines the provisioning states.
- Status string
- Defines the SAP Instance status.
- Subnet string
- Database subnet.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Vm
Details []DatabaseVm Details Response - The list of virtual machines corresponding to the Database resource.
- database
Sid String - Database SID name.
- database
Type String - Database type, that is if the DB is HANA, DB2, Oracle, SAP ASE, Max DB or MS SQL Server.
- errors
SAPVirtual
Instance Error Response - Defines the errors related to Database resource.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - Database IP Address.
- load
Balancer LoadDetails Balancer Details Response - The Load Balancer details such as LoadBalancer ID attached to Database Virtual Machines
- name String
- The name of the resource
- provisioning
State String - Defines the provisioning states.
- status String
- Defines the SAP Instance status.
- subnet String
- Database subnet.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- vm
Details List<DatabaseVm Details Response> - The list of virtual machines corresponding to the Database resource.
- database
Sid string - Database SID name.
- database
Type string - Database type, that is if the DB is HANA, DB2, Oracle, SAP ASE, Max DB or MS SQL Server.
- errors
SAPVirtual
Instance Error Response - Defines the errors related to Database resource.
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Address string - Database IP Address.
- load
Balancer LoadDetails Balancer Details Response - The Load Balancer details such as LoadBalancer ID attached to Database Virtual Machines
- name string
- The name of the resource
- provisioning
State string - Defines the provisioning states.
- status string
- Defines the SAP Instance status.
- subnet string
- Database subnet.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- vm
Details DatabaseVm Details Response[] - The list of virtual machines corresponding to the Database resource.
- database_
sid str - Database SID name.
- database_
type str - Database type, that is if the DB is HANA, DB2, Oracle, SAP ASE, Max DB or MS SQL Server.
- errors
SAPVirtual
Instance Error Response - Defines the errors related to Database resource.
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
address str - Database IP Address.
- load_
balancer_ Loaddetails Balancer Details Response - The Load Balancer details such as LoadBalancer ID attached to Database Virtual Machines
- name str
- The name of the resource
- provisioning_
state str - Defines the provisioning states.
- status str
- Defines the SAP Instance status.
- subnet str
- Database subnet.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- vm_
details Sequence[DatabaseVm Details Response] - The list of virtual machines corresponding to the Database resource.
- database
Sid String - Database SID name.
- database
Type String - Database type, that is if the DB is HANA, DB2, Oracle, SAP ASE, Max DB or MS SQL Server.
- errors Property Map
- Defines the errors related to Database resource.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - Database IP Address.
- load
Balancer Property MapDetails - The Load Balancer details such as LoadBalancer ID attached to Database Virtual Machines
- name String
- The name of the resource
- provisioning
State String - Defines the provisioning states.
- status String
- Defines the SAP Instance status.
- subnet String
- Database subnet.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- vm
Details List<Property Map> - The list of virtual machines corresponding to the Database resource.
Supporting Types
DatabaseVmDetailsResponse, DatabaseVmDetailsResponseArgs
- Status string
- Defines the SAP Instance status.
- Storage
Details List<Pulumi.Azure Native. Workloads. Inputs. Storage Information Response> - Storage details of all the Storage Accounts attached to the Database Virtual Machine. For e.g. NFS on AFS Shared Storage.
- Virtual
Machine stringId
- Status string
- Defines the SAP Instance status.
- Storage
Details []StorageInformation Response - Storage details of all the Storage Accounts attached to the Database Virtual Machine. For e.g. NFS on AFS Shared Storage.
- Virtual
Machine stringId
- status String
- Defines the SAP Instance status.
- storage
Details List<StorageInformation Response> - Storage details of all the Storage Accounts attached to the Database Virtual Machine. For e.g. NFS on AFS Shared Storage.
- virtual
Machine StringId
- status string
- Defines the SAP Instance status.
- storage
Details StorageInformation Response[] - Storage details of all the Storage Accounts attached to the Database Virtual Machine. For e.g. NFS on AFS Shared Storage.
- virtual
Machine stringId
- status str
- Defines the SAP Instance status.
- storage_
details Sequence[StorageInformation Response] - Storage details of all the Storage Accounts attached to the Database Virtual Machine. For e.g. NFS on AFS Shared Storage.
- virtual_
machine_ strid
- status String
- Defines the SAP Instance status.
- storage
Details List<Property Map> - Storage details of all the Storage Accounts attached to the Database Virtual Machine. For e.g. NFS on AFS Shared Storage.
- virtual
Machine StringId
ErrorDefinitionResponse, ErrorDefinitionResponseArgs
- Code string
- Service specific error code which serves as the substatus for the HTTP error code.
- Details
List<Pulumi.
Azure Native. Workloads. Inputs. Error Definition Response> - Internal error details.
- Message string
- Description of the error.
- Code string
- Service specific error code which serves as the substatus for the HTTP error code.
- Details
[]Error
Definition Response - Internal error details.
- Message string
- Description of the error.
- code String
- Service specific error code which serves as the substatus for the HTTP error code.
- details
List<Error
Definition Response> - Internal error details.
- message String
- Description of the error.
- code string
- Service specific error code which serves as the substatus for the HTTP error code.
- details
Error
Definition Response[] - Internal error details.
- message string
- Description of the error.
- code str
- Service specific error code which serves as the substatus for the HTTP error code.
- details
Sequence[Error
Definition Response] - Internal error details.
- message str
- Description of the error.
- code String
- Service specific error code which serves as the substatus for the HTTP error code.
- details List<Property Map>
- Internal error details.
- message String
- Description of the error.
LoadBalancerDetailsResponse, LoadBalancerDetailsResponseArgs
- Id string
- Id string
- id String
- id string
- id str
- id String
SAPVirtualInstanceErrorResponse, SAPVirtualInstanceErrorResponseArgs
- Properties
Pulumi.
Azure Native. Workloads. Inputs. Error Definition Response - The Virtual Instance for SAP error body.
- Properties
Error
Definition Response - The Virtual Instance for SAP error body.
- properties
Error
Definition Response - The Virtual Instance for SAP error body.
- properties
Error
Definition Response - The Virtual Instance for SAP error body.
- properties
Error
Definition Response - The Virtual Instance for SAP error body.
- properties Property Map
- The Virtual Instance for SAP error body.
StorageInformationResponse, StorageInformationResponseArgs
- Id string
- Id string
- id String
- id string
- id str
- id String
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:workloads:SAPDatabaseInstance databaseServer /subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/databaseInstances/databaseServer
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0