azure-native.azuredata.SqlServerRegistration
Explore with Pulumi AI
A SQL server registration. API Version: 2019-07-24-preview.
Example Usage
Creates or updates a SQL Server registration.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var sqlServerRegistration = new AzureNative.AzureData.SqlServerRegistration("sqlServerRegistration", new()
{
Location = "northeurope",
ResourceGroupName = "testrg",
SqlServerRegistrationName = "testsqlregistration",
Tags =
{
{ "mytag", "myval" },
},
});
});
package main
import (
azuredata "github.com/pulumi/pulumi-azure-native-sdk/azuredata"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azuredata.NewSqlServerRegistration(ctx, "sqlServerRegistration", &azuredata.SqlServerRegistrationArgs{
Location: pulumi.String("northeurope"),
ResourceGroupName: pulumi.String("testrg"),
SqlServerRegistrationName: pulumi.String("testsqlregistration"),
Tags: pulumi.StringMap{
"mytag": pulumi.String("myval"),
},
})
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.azuredata.SqlServerRegistration;
import com.pulumi.azurenative.azuredata.SqlServerRegistrationArgs;
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 sqlServerRegistration = new SqlServerRegistration("sqlServerRegistration", SqlServerRegistrationArgs.builder()
.location("northeurope")
.resourceGroupName("testrg")
.sqlServerRegistrationName("testsqlregistration")
.tags(Map.of("mytag", "myval"))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
sql_server_registration = azure_native.azuredata.SqlServerRegistration("sqlServerRegistration",
location="northeurope",
resource_group_name="testrg",
sql_server_registration_name="testsqlregistration",
tags={
"mytag": "myval",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const sqlServerRegistration = new azure_native.azuredata.SqlServerRegistration("sqlServerRegistration", {
location: "northeurope",
resourceGroupName: "testrg",
sqlServerRegistrationName: "testsqlregistration",
tags: {
mytag: "myval",
},
});
resources:
sqlServerRegistration:
type: azure-native:azuredata:SqlServerRegistration
properties:
location: northeurope
resourceGroupName: testrg
sqlServerRegistrationName: testsqlregistration
tags:
mytag: myval
Create SqlServerRegistration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SqlServerRegistration(name: string, args: SqlServerRegistrationArgs, opts?: CustomResourceOptions);
@overload
def SqlServerRegistration(resource_name: str,
args: SqlServerRegistrationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SqlServerRegistration(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
location: Optional[str] = None,
property_bag: Optional[str] = None,
resource_group: Optional[str] = None,
sql_server_registration_name: Optional[str] = None,
subscription_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewSqlServerRegistration(ctx *Context, name string, args SqlServerRegistrationArgs, opts ...ResourceOption) (*SqlServerRegistration, error)
public SqlServerRegistration(string name, SqlServerRegistrationArgs args, CustomResourceOptions? opts = null)
public SqlServerRegistration(String name, SqlServerRegistrationArgs args)
public SqlServerRegistration(String name, SqlServerRegistrationArgs args, CustomResourceOptions options)
type: azure-native:azuredata:SqlServerRegistration
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 SqlServerRegistrationArgs
- 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 SqlServerRegistrationArgs
- 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 SqlServerRegistrationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SqlServerRegistrationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SqlServerRegistrationArgs
- 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 sqlServerRegistrationResource = new AzureNative.Azuredata.SqlServerRegistration("sqlServerRegistrationResource", new()
{
ResourceGroupName = "string",
Location = "string",
PropertyBag = "string",
ResourceGroup = "string",
SqlServerRegistrationName = "string",
SubscriptionId = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := azuredata.NewSqlServerRegistration(ctx, "sqlServerRegistrationResource", &azuredata.SqlServerRegistrationArgs{
ResourceGroupName: "string",
Location: "string",
PropertyBag: "string",
ResourceGroup: "string",
SqlServerRegistrationName: "string",
SubscriptionId: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var sqlServerRegistrationResource = new SqlServerRegistration("sqlServerRegistrationResource", SqlServerRegistrationArgs.builder()
.resourceGroupName("string")
.location("string")
.propertyBag("string")
.resourceGroup("string")
.sqlServerRegistrationName("string")
.subscriptionId("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
sql_server_registration_resource = azure_native.azuredata.SqlServerRegistration("sqlServerRegistrationResource",
resource_group_name=string,
location=string,
property_bag=string,
resource_group=string,
sql_server_registration_name=string,
subscription_id=string,
tags={
string: string,
})
const sqlServerRegistrationResource = new azure_native.azuredata.SqlServerRegistration("sqlServerRegistrationResource", {
resourceGroupName: "string",
location: "string",
propertyBag: "string",
resourceGroup: "string",
sqlServerRegistrationName: "string",
subscriptionId: "string",
tags: {
string: "string",
},
});
type: azure-native:azuredata:SqlServerRegistration
properties:
location: string
propertyBag: string
resourceGroup: string
resourceGroupName: string
sqlServerRegistrationName: string
subscriptionId: string
tags:
string: string
SqlServerRegistration 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 SqlServerRegistration resource accepts the following input properties:
- Resource
Group stringName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Location string
- The geo-location where the resource lives
- Property
Bag string - Optional Properties as JSON string
- Resource
Group string - Resource Group Name
- Sql
Server stringRegistration Name - Name of the SQL Server registration.
- Subscription
Id string - Subscription Id
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Location string
- The geo-location where the resource lives
- Property
Bag string - Optional Properties as JSON string
- Resource
Group string - Resource Group Name
- Sql
Server stringRegistration Name - Name of the SQL Server registration.
- Subscription
Id string - Subscription Id
- map[string]string
- Resource tags.
- resource
Group StringName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- location String
- The geo-location where the resource lives
- property
Bag String - Optional Properties as JSON string
- resource
Group String - Resource Group Name
- sql
Server StringRegistration Name - Name of the SQL Server registration.
- subscription
Id String - Subscription Id
- Map<String,String>
- Resource tags.
- resource
Group stringName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- location string
- The geo-location where the resource lives
- property
Bag string - Optional Properties as JSON string
- resource
Group string - Resource Group Name
- sql
Server stringRegistration Name - Name of the SQL Server registration.
- subscription
Id string - Subscription Id
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- location str
- The geo-location where the resource lives
- property_
bag str - Optional Properties as JSON string
- resource_
group str - Resource Group Name
- sql_
server_ strregistration_ name - Name of the SQL Server registration.
- subscription_
id str - Subscription Id
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- location String
- The geo-location where the resource lives
- property
Bag String - Optional Properties as JSON string
- resource
Group String - Resource Group Name
- sql
Server StringRegistration Name - Name of the SQL Server registration.
- subscription
Id String - Subscription Id
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the SqlServerRegistration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Azure Data. Outputs. System Data Response - Read only system data
- Type string
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data SystemData Response - Read only system data
- Type string
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data SystemData Response - Read only system data
- type String
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- system
Data SystemData Response - Read only system data
- type string
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- system_
data SystemData Response - Read only system data
- type str
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data Property Map - Read only system data
- type String
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
Supporting Types
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC)
- Created
By string - An identifier for 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 - An identifier for 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 - An identifier for 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 - An identifier for 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 - An identifier for 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 - An identifier for 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 - An identifier for 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 - An identifier for 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 - An identifier for 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 - An identifier for 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 - An identifier for 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 - An identifier for 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:azuredata:SqlServerRegistration testsqlregistration /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration
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