Skip to main content

Resource Providers

Resource Providers (also known as Dynamic Resource Providers or Custom Resource Providers) allow us to define custom management of cloud resources (e.g., Managing a deployed Access Policy for Azure Keyvault)

Under this section you can find our custom created Resource Providers to extend Pulumi functionality.

More information: https://www.pulumi.com/docs/intro/concepts/resources/dynamic-providers/

⚠️ The outputs of the create and update methods are used and passed towards the delete method. Therefore, it is crucial to return meaningful values in order to ensure that the delete method is working.

Reference

Azure CLI

Custom Resources are manipulated through Azure CLI commands. They are parsed as a string type and executed through the run() method defined in utils.ts

const keyVaultName = 'example-key-vault';
const objectId = '11111111-1111-1111-1111-111111111111';

let cmd: string = `az keyvault delete-policy --name "${keyVaultName}" --object-id "${objectId}"`;

await run(cmd);