1. Packages
  2. Azure Native
  3. API Docs
  4. sql
  5. ServerAzureADOnlyAuthentication
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native.sql.ServerAzureADOnlyAuthentication

Explore with Pulumi AI

Azure Active Directory only authentication.

Uses Azure REST API version 2021-11-01. In version 1.x of the Azure Native provider, it used API version 2020-11-01-preview.

Other available API versions: 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01, 2023-08-01-preview, 2024-05-01-preview.

Example Usage

Creates or updates Azure Active Directory only authentication object.

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var serverAzureADOnlyAuthentication = new AzureNative.Sql.ServerAzureADOnlyAuthentication("serverAzureADOnlyAuthentication", new()
    {
        AuthenticationName = "Default",
        AzureADOnlyAuthentication = false,
        ResourceGroupName = "sqlcrudtest-4799",
        ServerName = "sqlcrudtest-6440",
    });

});
Copy
package main

import (
	sql "github.com/pulumi/pulumi-azure-native-sdk/sql/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sql.NewServerAzureADOnlyAuthentication(ctx, "serverAzureADOnlyAuthentication", &sql.ServerAzureADOnlyAuthenticationArgs{
			AuthenticationName:        pulumi.String("Default"),
			AzureADOnlyAuthentication: pulumi.Bool(false),
			ResourceGroupName:         pulumi.String("sqlcrudtest-4799"),
			ServerName:                pulumi.String("sqlcrudtest-6440"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.sql.ServerAzureADOnlyAuthentication;
import com.pulumi.azurenative.sql.ServerAzureADOnlyAuthenticationArgs;
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 serverAzureADOnlyAuthentication = new ServerAzureADOnlyAuthentication("serverAzureADOnlyAuthentication", ServerAzureADOnlyAuthenticationArgs.builder()
            .authenticationName("Default")
            .azureADOnlyAuthentication(false)
            .resourceGroupName("sqlcrudtest-4799")
            .serverName("sqlcrudtest-6440")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const serverAzureADOnlyAuthentication = new azure_native.sql.ServerAzureADOnlyAuthentication("serverAzureADOnlyAuthentication", {
    authenticationName: "Default",
    azureADOnlyAuthentication: false,
    resourceGroupName: "sqlcrudtest-4799",
    serverName: "sqlcrudtest-6440",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

server_azure_ad_only_authentication = azure_native.sql.ServerAzureADOnlyAuthentication("serverAzureADOnlyAuthentication",
    authentication_name="Default",
    azure_ad_only_authentication=False,
    resource_group_name="sqlcrudtest-4799",
    server_name="sqlcrudtest-6440")
Copy
resources:
  serverAzureADOnlyAuthentication:
    type: azure-native:sql:ServerAzureADOnlyAuthentication
    properties:
      authenticationName: Default
      azureADOnlyAuthentication: false
      resourceGroupName: sqlcrudtest-4799
      serverName: sqlcrudtest-6440
Copy

Create ServerAzureADOnlyAuthentication Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ServerAzureADOnlyAuthentication(name: string, args: ServerAzureADOnlyAuthenticationArgs, opts?: CustomResourceOptions);
@overload
def ServerAzureADOnlyAuthentication(resource_name: str,
                                    args: ServerAzureADOnlyAuthenticationArgs,
                                    opts: Optional[ResourceOptions] = None)

@overload
def ServerAzureADOnlyAuthentication(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    azure_ad_only_authentication: Optional[bool] = None,
                                    resource_group_name: Optional[str] = None,
                                    server_name: Optional[str] = None,
                                    authentication_name: Optional[str] = None)
func NewServerAzureADOnlyAuthentication(ctx *Context, name string, args ServerAzureADOnlyAuthenticationArgs, opts ...ResourceOption) (*ServerAzureADOnlyAuthentication, error)
public ServerAzureADOnlyAuthentication(string name, ServerAzureADOnlyAuthenticationArgs args, CustomResourceOptions? opts = null)
public ServerAzureADOnlyAuthentication(String name, ServerAzureADOnlyAuthenticationArgs args)
public ServerAzureADOnlyAuthentication(String name, ServerAzureADOnlyAuthenticationArgs args, CustomResourceOptions options)
type: azure-native:sql:ServerAzureADOnlyAuthentication
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ServerAzureADOnlyAuthenticationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ServerAzureADOnlyAuthenticationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ServerAzureADOnlyAuthenticationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ServerAzureADOnlyAuthenticationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ServerAzureADOnlyAuthenticationArgs
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 serverAzureADOnlyAuthenticationResource = new AzureNative.Sql.ServerAzureADOnlyAuthentication("serverAzureADOnlyAuthenticationResource", new()
{
    AzureADOnlyAuthentication = false,
    ResourceGroupName = "string",
    ServerName = "string",
    AuthenticationName = "string",
});
Copy
example, err := sql.NewServerAzureADOnlyAuthentication(ctx, "serverAzureADOnlyAuthenticationResource", &sql.ServerAzureADOnlyAuthenticationArgs{
	AzureADOnlyAuthentication: pulumi.Bool(false),
	ResourceGroupName:         pulumi.String("string"),
	ServerName:                pulumi.String("string"),
	AuthenticationName:        pulumi.String("string"),
})
Copy
var serverAzureADOnlyAuthenticationResource = new ServerAzureADOnlyAuthentication("serverAzureADOnlyAuthenticationResource", ServerAzureADOnlyAuthenticationArgs.builder()
    .azureADOnlyAuthentication(false)
    .resourceGroupName("string")
    .serverName("string")
    .authenticationName("string")
    .build());
Copy
server_azure_ad_only_authentication_resource = azure_native.sql.ServerAzureADOnlyAuthentication("serverAzureADOnlyAuthenticationResource",
    azure_ad_only_authentication=False,
    resource_group_name="string",
    server_name="string",
    authentication_name="string")
Copy
const serverAzureADOnlyAuthenticationResource = new azure_native.sql.ServerAzureADOnlyAuthentication("serverAzureADOnlyAuthenticationResource", {
    azureADOnlyAuthentication: false,
    resourceGroupName: "string",
    serverName: "string",
    authenticationName: "string",
});
Copy
type: azure-native:sql:ServerAzureADOnlyAuthentication
properties:
    authenticationName: string
    azureADOnlyAuthentication: false
    resourceGroupName: string
    serverName: string
Copy

ServerAzureADOnlyAuthentication Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ServerAzureADOnlyAuthentication resource accepts the following input properties:

AzureADOnlyAuthentication This property is required. bool
Azure Active Directory only Authentication enabled.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
ServerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the server.
AuthenticationName Changes to this property will trigger replacement. string
The name of server azure active directory only authentication.
AzureADOnlyAuthentication This property is required. bool
Azure Active Directory only Authentication enabled.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
ServerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the server.
AuthenticationName Changes to this property will trigger replacement. string
The name of server azure active directory only authentication.
azureADOnlyAuthentication This property is required. Boolean
Azure Active Directory only Authentication enabled.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverName
This property is required.
Changes to this property will trigger replacement.
String
The name of the server.
authenticationName Changes to this property will trigger replacement. String
The name of server azure active directory only authentication.
azureADOnlyAuthentication This property is required. boolean
Azure Active Directory only Authentication enabled.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverName
This property is required.
Changes to this property will trigger replacement.
string
The name of the server.
authenticationName Changes to this property will trigger replacement. string
The name of server azure active directory only authentication.
azure_ad_only_authentication This property is required. bool
Azure Active Directory only Authentication enabled.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
server_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the server.
authentication_name Changes to this property will trigger replacement. str
The name of server azure active directory only authentication.
azureADOnlyAuthentication This property is required. Boolean
Azure Active Directory only Authentication enabled.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverName
This property is required.
Changes to this property will trigger replacement.
String
The name of the server.
authenticationName Changes to this property will trigger replacement. String
The name of server azure active directory only authentication.

Outputs

All input properties are implicitly available as output properties. Additionally, the ServerAzureADOnlyAuthentication resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name.
Type string
Resource type.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name.
Type string
Resource type.
id String
The provider-assigned unique ID for this managed resource.
name String
Resource name.
type String
Resource type.
id string
The provider-assigned unique ID for this managed resource.
name string
Resource name.
type string
Resource type.
id str
The provider-assigned unique ID for this managed resource.
name str
Resource name.
type str
Resource type.
id String
The provider-assigned unique ID for this managed resource.
name String
Resource name.
type String
Resource type.

Import

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

$ pulumi import azure-native:sql:ServerAzureADOnlyAuthentication Default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications/{authenticationName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0