Skip to main content

custom_resource_providers

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

Overview

Namecustom_resource_providers
TypeResource
Idazure.custom_providers.custom_resource_providers

Fields

The following fields are returned by SELECT queries:

OK response definition with the existing resource.

NameDatatypeDescription
idstringResource Id
namestringResource name
locationstringResource location
propertiesobjectThe manifest for the custom resource provider
tagsobjectResource tags
typestringResource type

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, resourceProviderNameGets the custom resource provider manifest.
list_by_resource_groupselectsubscriptionId, resourceGroupNameGets all the custom resource providers within a resource group.
list_by_subscriptionselectsubscriptionIdGets all the custom resource providers within a subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, resourceProviderNameCreates or updates the custom resource provider.
updateupdatesubscriptionId, resourceGroupName, resourceProviderNameUpdates an existing custom resource provider. The only value that can be updated via PATCH currently is the tags.
deletedeletesubscriptionId, resourceGroupName, resourceProviderNameDeletes 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
resourceGroupNamestringThe name of the resource group.
resourceProviderNamestringThe name of the resource provider.
subscriptionIdstringThe Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)

SELECT examples

Gets the custom resource provider manifest.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure.custom_providers.custom_resource_providers
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND resourceProviderName = '{{ resourceProviderName }}' -- required
;

INSERT examples

Creates or updates the custom resource provider.

INSERT INTO azure.custom_providers.custom_resource_providers (
data__properties,
data__location,
data__tags,
subscriptionId,
resourceGroupName,
resourceProviderName
)
SELECT
'{{ properties }}',
'{{ location }}',
'{{ tags }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ resourceProviderName }}'
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_providers
SET
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND resourceProviderName = '{{ resourceProviderName }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;

DELETE examples

Deletes the custom resource provider.

DELETE FROM azure.custom_providers.custom_resource_providers
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND resourceProviderName = '{{ resourceProviderName }}' --required
;