azure_ad_administrators
Creates, updates, deletes, gets or lists an azure_ad_administrators resource.
Overview
| Name | azure_ad_administrators |
| Type | Resource |
| Id | azure.mysql_flexible_servers.azure_ad_administrators |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_server
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". |
name | string | The name of the resource. |
administratorType | string | Type of the sever administrator. "ActiveDirectory" |
identityResourceId | string | The resource id of the identity used for AAD Authentication. |
login | string | Login name of the server administrator. |
sid | string | SID (object ID) of the server administrator. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tenantId | string | Tenant ID of the administrator. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". |
name | string | The name of the resource. |
administratorType | string | Type of the sever administrator. "ActiveDirectory" |
identityResourceId | string | The resource id of the identity used for AAD Authentication. |
login | string | Login name of the server administrator. |
sid | string | SID (object ID) of the server administrator. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tenantId | string | Tenant ID of the administrator. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, server_name, administrator_name, subscription_id | Gets information about an azure ad administrator. | |
list_by_server | select | resource_group_name, server_name, subscription_id | List all the AAD administrators in a given server. | |
create_or_update | insert | resource_group_name, server_name, administrator_name, subscription_id | Creates or updates an existing Azure Active Directory administrator. | |
create_or_update | replace | resource_group_name, server_name, administrator_name, subscription_id | Creates or updates an existing Azure Active Directory administrator. | |
delete | delete | resource_group_name, server_name, administrator_name, subscription_id | Deletes an Azure AD Administrator. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
administrator_name | string | The name of the Azure AD Administrator. "ActiveDirectory" Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
server_name | string | The name of the server. Required. |
subscription_id | string |
SELECT examples
- get
- list_by_server
Gets information about an azure ad administrator.
SELECT
id,
name,
administratorType,
identityResourceId,
login,
sid,
systemData,
tenantId,
type
FROM azure.mysql_flexible_servers.azure_ad_administrators
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND server_name = '{{ server_name }}' -- required
AND administrator_name = '{{ administrator_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
List all the AAD administrators in a given server.
SELECT
id,
name,
administratorType,
identityResourceId,
login,
sid,
systemData,
tenantId,
type
FROM azure.mysql_flexible_servers.azure_ad_administrators
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND server_name = '{{ server_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Creates or updates an existing Azure Active Directory administrator.
INSERT INTO azure.mysql_flexible_servers.azure_ad_administrators (
properties,
resource_group_name,
server_name,
administrator_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ server_name }}',
'{{ administrator_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;
# Description fields are for documentation purposes
- name: azure_ad_administrators
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the azure_ad_administrators resource.
- name: server_name
value: "{{ server_name }}"
description: Required parameter for the azure_ad_administrators resource.
- name: administrator_name
value: "{{ administrator_name }}"
description: Required parameter for the azure_ad_administrators resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the azure_ad_administrators resource.
- name: properties
value:
administratorType: "{{ administratorType }}"
login: "{{ login }}"
sid: "{{ sid }}"
tenantId: "{{ tenantId }}"
identityResourceId: "{{ identityResourceId }}"
REPLACE examples
- create_or_update
Creates or updates an existing Azure Active Directory administrator.
REPLACE azure.mysql_flexible_servers.azure_ad_administrators
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND server_name = '{{ server_name }}' --required
AND administrator_name = '{{ administrator_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;
DELETE examples
- delete
Deletes an Azure AD Administrator.
DELETE FROM azure.mysql_flexible_servers.azure_ad_administrators
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND server_name = '{{ server_name }}' --required
AND administrator_name = '{{ administrator_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;