Skip to main content

tenant_configuration

Creates, updates, deletes, gets or lists a tenant_configuration resource.

Overview

Nametenant_configuration
TypeResource
Idazure.api_management.tenant_configuration

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
branchstringThe name of Git branch.
commitIdstringThe latest commit Id.
configurationChangeDatestring (date-time)The date of the latest configuration change. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
isExportbooleanvalue indicating if last sync was save (true) or deploy (false) operation.
isGitEnabledbooleanvalue indicating whether Git configuration access is enabled.
isSyncedbooleanvalue indicating if last synchronization was later than the configuration change.
lastOperationIdstringMost recent tenant configuration operation identifier.
syncDatestring (date-time)The date of the latest synchronization. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_sync_stateselectresource_group_name, service_name, configuration_name, subscription_idGets the status of the most recent synchronization between the configuration database and the Git repository.
deployexecresource_group_name, service_name, configuration_name, subscription_idThis operation applies changes from the specified Git branch to the configuration database. This is a long running operation and could take several minutes to complete.
saveexecresource_group_name, service_name, configuration_name, subscription_idThis operation creates a commit with the current configuration snapshot to the specified branch in the repository. This is a long running operation and could take several minutes to complete.
validateexecresource_group_name, service_name, configuration_name, subscription_idThis operation validates the changes in the specified Git branch. This is a long running operation and could take several minutes to complete.

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.

NameDatatypeDescription
configuration_namestringAPI revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. "configuration" Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
service_namestringThe name of the API Management service. Required.
subscription_idstring

SELECT examples

Gets the status of the most recent synchronization between the configuration database and the Git repository.

SELECT
id,
name,
branch,
commitId,
configurationChangeDate,
isExport,
isGitEnabled,
isSynced,
lastOperationId,
syncDate,
systemData,
type
FROM azure.api_management.tenant_configuration
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND configuration_name = '{{ configuration_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

This operation applies changes from the specified Git branch to the configuration database. This is a long running operation and could take several minutes to complete.

EXEC azure.api_management.tenant_configuration.deploy 
@resource_group_name='{{ resource_group_name }}' --required,
@service_name='{{ service_name }}' --required,
@configuration_name='{{ configuration_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;