Skip to main content

custom_resource_provider

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

Overview

Namecustom_resource_provider
TypeResource
Idazure.custom_providers.custom_resource_provider

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource Id.
namestringResource name.
actionsarrayA list of actions that the custom resource provider implements.
locationstringResource location. Required.
provisioningStatestringThe provisioning state of the resource provider. Known values are: "Accepted", "Deleting", "Running", "Succeeded", and "Failed".
resourceTypesarrayA list of resource types that the custom resource provider implements.
tagsobjectResource tags.
typestringResource type.
validationsarrayA list of validations to run on the custom resource provider's requests.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, resource_provider_name, subscription_idGets the custom resource provider manifest.
list_by_resource_groupselectresource_group_name, subscription_idGets all the custom resource providers within a resource group.
list_by_subscriptionselectsubscription_idGets all the custom resource providers within a subscription.
create_or_updateinsertresource_group_name, resource_provider_name, subscription_id, locationCreates or updates the custom resource provider.
updateupdateresource_group_name, resource_provider_name, subscription_idUpdates an existing custom resource provider. The only value that can be updated via PATCH currently is the tags.
create_or_updatereplaceresource_group_name, resource_provider_name, subscription_id, locationCreates or updates the custom resource provider.
deletedeleteresource_group_name, resource_provider_name, subscription_idDeletes the custom resource provider.

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
resource_group_namestringThe name of the resource group. Required.
resource_provider_namestringThe name of the resource provider. Required.
subscription_idstring

SELECT examples

Gets the custom resource provider manifest.

SELECT
id,
name,
actions,
location,
provisioningState,
resourceTypes,
tags,
type,
validations
FROM azure.custom_providers.custom_resource_provider
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_provider_name = '{{ resource_provider_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates the custom resource provider.

INSERT INTO azure.custom_providers.custom_resource_provider (
location,
tags,
properties,
resource_group_name,
resource_provider_name,
subscription_id
)
SELECT
'{{ location }}' /* required */,
'{{ tags }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ resource_provider_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
tags,
type
;

UPDATE examples

Updates an existing custom resource provider. The only value that can be updated via PATCH currently is the tags.

UPDATE azure.custom_providers.custom_resource_provider
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND resource_provider_name = '{{ resource_provider_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;

REPLACE examples

Creates or updates the custom resource provider.

REPLACE azure.custom_providers.custom_resource_provider
SET
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND resource_provider_name = '{{ resource_provider_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;

DELETE examples

Deletes the custom resource provider.

DELETE FROM azure.custom_providers.custom_resource_provider
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND resource_provider_name = '{{ resource_provider_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;