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

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

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceProviderName, subscriptionIdGets the custom resource provider manifest.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets all the custom resource providers within a resource group.
list_by_subscriptionSELECTsubscriptionIdGets all the custom resource providers within a subscription.
create_or_updateINSERTresourceGroupName, resourceProviderName, subscriptionIdCreates or updates the custom resource provider.
deleteDELETEresourceGroupName, resourceProviderName, subscriptionIdDeletes the custom resource provider.
updateUPDATEresourceGroupName, resourceProviderName, subscriptionIdUpdates an existing custom resource provider. The only value that can be updated via PATCH currently is the tags.

SELECT examples

Gets all the custom resource providers within a subscription.

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

INSERT example

Use the following StackQL query and manifest file to create a new custom_resource_providers resource.

/*+ create */
INSERT INTO azure.custom_providers.custom_resource_providers (
resourceGroupName,
resourceProviderName,
subscriptionId,
properties,
location,
tags
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceProviderName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a custom_resource_providers resource.

/*+ update */
UPDATE azure.custom_providers.custom_resource_providers
SET
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND resourceProviderName = '{{ resourceProviderName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified custom_resource_providers resource.

/*+ delete */
DELETE FROM azure.custom_providers.custom_resource_providers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceProviderName = '{{ resourceProviderName }}'
AND subscriptionId = '{{ subscriptionId }}';