azure-native-v2.sql.ServerAzureADAdministrator
Explore with Pulumi AI
Azure Active Directory administrator. Azure REST API version: 2021-11-01. Prior API version in Azure Native 1.x: 2020-11-01-preview.
Other available API versions: 2014-04-01, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview.
Create ServerAzureADAdministrator Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServerAzureADAdministrator(name: string, args: ServerAzureADAdministratorArgs, opts?: CustomResourceOptions);
@overload
def ServerAzureADAdministrator(resource_name: str,
args: ServerAzureADAdministratorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServerAzureADAdministrator(resource_name: str,
opts: Optional[ResourceOptions] = None,
administrator_type: Optional[Union[str, AdministratorType]] = None,
login: Optional[str] = None,
resource_group_name: Optional[str] = None,
server_name: Optional[str] = None,
sid: Optional[str] = None,
administrator_name: Optional[str] = None,
tenant_id: Optional[str] = None)
func NewServerAzureADAdministrator(ctx *Context, name string, args ServerAzureADAdministratorArgs, opts ...ResourceOption) (*ServerAzureADAdministrator, error)
public ServerAzureADAdministrator(string name, ServerAzureADAdministratorArgs args, CustomResourceOptions? opts = null)
public ServerAzureADAdministrator(String name, ServerAzureADAdministratorArgs args)
public ServerAzureADAdministrator(String name, ServerAzureADAdministratorArgs args, CustomResourceOptions options)
type: azure-native:sql:ServerAzureADAdministrator
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. ServerAzureADAdministratorArgs - 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. ServerAzureADAdministratorArgs - 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. ServerAzureADAdministratorArgs - 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. ServerAzureADAdministratorArgs - 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. ServerAzureADAdministratorArgs - 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 serverAzureADAdministratorResource = new AzureNative.Sql.ServerAzureADAdministrator("serverAzureADAdministratorResource", new()
{
AdministratorType = "string",
Login = "string",
ResourceGroupName = "string",
ServerName = "string",
Sid = "string",
AdministratorName = "string",
TenantId = "string",
});
example, err := sql.NewServerAzureADAdministrator(ctx, "serverAzureADAdministratorResource", &sql.ServerAzureADAdministratorArgs{
AdministratorType: "string",
Login: "string",
ResourceGroupName: "string",
ServerName: "string",
Sid: "string",
AdministratorName: "string",
TenantId: "string",
})
var serverAzureADAdministratorResource = new ServerAzureADAdministrator("serverAzureADAdministratorResource", ServerAzureADAdministratorArgs.builder()
.administratorType("string")
.login("string")
.resourceGroupName("string")
.serverName("string")
.sid("string")
.administratorName("string")
.tenantId("string")
.build());
server_azure_ad_administrator_resource = azure_native.sql.ServerAzureADAdministrator("serverAzureADAdministratorResource",
administrator_type=string,
login=string,
resource_group_name=string,
server_name=string,
sid=string,
administrator_name=string,
tenant_id=string)
const serverAzureADAdministratorResource = new azure_native.sql.ServerAzureADAdministrator("serverAzureADAdministratorResource", {
administratorType: "string",
login: "string",
resourceGroupName: "string",
serverName: "string",
sid: "string",
administratorName: "string",
tenantId: "string",
});
type: azure-native:sql:ServerAzureADAdministrator
properties:
administratorName: string
administratorType: string
login: string
resourceGroupName: string
serverName: string
sid: string
tenantId: string
ServerAzureADAdministrator 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 ServerAzureADAdministrator resource accepts the following input properties:
- Administrator
Type This property is required. string | Pulumi.Azure Native. Sql. Administrator Type - Type of the sever administrator.
- Login
This property is required. string - Login name of the server administrator.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- 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.
- The name of the server.
- Sid
This property is required. string - SID (object ID) of the server administrator.
- Administrator
Name Changes to this property will trigger replacement.
- The name of server active directory administrator.
- Tenant
Id string - Tenant ID of the administrator.
- Administrator
Type This property is required. string | AdministratorType - Type of the sever administrator.
- Login
This property is required. string - Login name of the server administrator.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- 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.
- The name of the server.
- Sid
This property is required. string - SID (object ID) of the server administrator.
- Administrator
Name Changes to this property will trigger replacement.
- The name of server active directory administrator.
- Tenant
Id string - Tenant ID of the administrator.
- administrator
Type This property is required. String | AdministratorType - Type of the sever administrator.
- login
This property is required. String - Login name of the server administrator.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- 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.
- The name of the server.
- sid
This property is required. String - SID (object ID) of the server administrator.
- administrator
Name Changes to this property will trigger replacement.
- The name of server active directory administrator.
- tenant
Id String - Tenant ID of the administrator.
- administrator
Type This property is required. string | AdministratorType - Type of the sever administrator.
- login
This property is required. string - Login name of the server administrator.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- 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.
- The name of the server.
- sid
This property is required. string - SID (object ID) of the server administrator.
- administrator
Name Changes to this property will trigger replacement.
- The name of server active directory administrator.
- tenant
Id string - Tenant ID of the administrator.
- administrator_
type This property is required. str | AdministratorType - Type of the sever administrator.
- login
This property is required. str - Login name of the server administrator.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- 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.
- The name of the server.
- sid
This property is required. str - SID (object ID) of the server administrator.
- administrator_
name Changes to this property will trigger replacement.
- The name of server active directory administrator.
- tenant_
id str - Tenant ID of the administrator.
- administrator
Type This property is required. String | "ActiveDirectory" - Type of the sever administrator.
- login
This property is required. String - Login name of the server administrator.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- 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.
- The name of the server.
- sid
This property is required. String - SID (object ID) of the server administrator.
- administrator
Name Changes to this property will trigger replacement.
- The name of server active directory administrator.
- tenant
Id String - Tenant ID of the administrator.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerAzureADAdministrator resource produces the following output properties:
- Azure
ADOnly boolAuthentication - Azure Active Directory only Authentication enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Type string
- Resource type.
- Azure
ADOnly boolAuthentication - Azure Active Directory only Authentication enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Type string
- Resource type.
- azure
ADOnly BooleanAuthentication - Azure Active Directory only Authentication enabled.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- type String
- Resource type.
- azure
ADOnly booleanAuthentication - Azure Active Directory only Authentication enabled.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- type string
- Resource type.
- azure_
ad_ boolonly_ authentication - Azure Active Directory only Authentication enabled.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name.
- type str
- Resource type.
- azure
ADOnly BooleanAuthentication - Azure Active Directory only Authentication enabled.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- type String
- Resource type.
Supporting Types
AdministratorType, AdministratorTypeArgs
- Active
Directory - ActiveDirectory
- Administrator
Type Active Directory - ActiveDirectory
- Active
Directory - ActiveDirectory
- Active
Directory - ActiveDirectory
- ACTIVE_DIRECTORY
- ActiveDirectory
- "Active
Directory" - ActiveDirectory
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:sql:ServerAzureADAdministrator ActiveDirectory /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators/{administratorName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0