1. Packages
  2. Grafana Cloud
  3. API Docs
  4. cloud
  5. ProviderAzureCredential
Grafana v0.16.3 published on Monday, Apr 7, 2025 by pulumiverse

grafana.cloud.ProviderAzureCredential

Explore with Pulumi AI

Deprecated: grafana.cloud/providerazurecredential.ProviderAzureCredential has been deprecated in favor of grafana.cloudprovider/azurecredential.AzureCredential

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.cloudProvider.AzureCredential;
import com.pulumi.grafana.cloudProvider.AzureCredentialArgs;
import com.pulumi.grafana.cloudProvider.inputs.AzureCredentialResourceDiscoveryTagFilterArgs;
import com.pulumi.grafana.cloudProvider.inputs.AzureCredentialAutoDiscoveryConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var test = new AzureCredential("test", AzureCredentialArgs.builder()
            .stackId("1")
            .name("test-name")
            .clientId("my-client-id")
            .clientSecret("my-client-secret")
            .tenantId("my-tenant-id")
            .resourceTagsToAddToMetrics(            
                "tag1",
                "tag2")
            .resourceDiscoveryTagFilters(            
                AzureCredentialResourceDiscoveryTagFilterArgs.builder()
                    .key("key-1")
                    .value("value-1")
                    .build(),
                AzureCredentialResourceDiscoveryTagFilterArgs.builder()
                    .key("key-2")
                    .value("value-2")
                    .build())
            .autoDiscoveryConfigurations(AzureCredentialAutoDiscoveryConfigurationArgs.builder()
                .subscriptionId("my-subscription_id")
                .resourceTypeConfigurations(                
                    AzureCredentialAutoDiscoveryConfigurationResourceTypeConfigurationArgs.builder()
                        .resourceTypeName("Microsoft.App/containerApps")
                        .metricConfiguration(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                        .build(),
                    AzureCredentialAutoDiscoveryConfigurationResourceTypeConfigurationArgs.builder()
                        .resourceTypeName("Microsoft.Storage/storageAccounts/tableServices")
                        .metricConfiguration(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                        .build())
                .build())
            .build());

    }
}
Copy
resources:
  test:
    type: grafana:cloudProvider:AzureCredential
    properties:
      stackId: '1'
      name: test-name
      clientId: my-client-id
      clientSecret: my-client-secret
      tenantId: my-tenant-id
      resourceTagsToAddToMetrics:
        - tag1
        - tag2
      resourceDiscoveryTagFilters:
        - key: key-1
          value: value-1
        - key: key-2
          value: value-2
      autoDiscoveryConfigurations:
        - subscriptionId: my-subscription_id
          resourceTypeConfigurations:
            - resourceTypeName: Microsoft.App/containerApps
              metricConfiguration:
                - name: TotalCoresQuotaUsed
            - resourceTypeName: Microsoft.Storage/storageAccounts/tableServices
              metricConfiguration:
                - name: Availability
                  dimensions:
                    - GeoType
                    - ApiName
                  aggregations:
                    - Average
Copy

Create ProviderAzureCredential Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ProviderAzureCredential(name: string, args: ProviderAzureCredentialArgs, opts?: CustomResourceOptions);
@overload
def ProviderAzureCredential(resource_name: str,
                            args: ProviderAzureCredentialArgs,
                            opts: Optional[ResourceOptions] = None)

@overload
def ProviderAzureCredential(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            auto_discovery_configurations: Optional[Sequence[ProviderAzureCredentialAutoDiscoveryConfigurationArgs]] = None,
                            client_id: Optional[str] = None,
                            client_secret: Optional[str] = None,
                            name: Optional[str] = None,
                            resource_discovery_tag_filters: Optional[Sequence[ProviderAzureCredentialResourceDiscoveryTagFilterArgs]] = None,
                            resource_tags_to_add_to_metrics: Optional[Sequence[str]] = None,
                            stack_id: Optional[str] = None,
                            tenant_id: Optional[str] = None)
func NewProviderAzureCredential(ctx *Context, name string, args ProviderAzureCredentialArgs, opts ...ResourceOption) (*ProviderAzureCredential, error)
public ProviderAzureCredential(string name, ProviderAzureCredentialArgs args, CustomResourceOptions? opts = null)
public ProviderAzureCredential(String name, ProviderAzureCredentialArgs args)
public ProviderAzureCredential(String name, ProviderAzureCredentialArgs args, CustomResourceOptions options)
type: grafana:cloud:ProviderAzureCredential
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ProviderAzureCredentialArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ProviderAzureCredentialArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ProviderAzureCredentialArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ProviderAzureCredentialArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ProviderAzureCredentialArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ProviderAzureCredential Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ProviderAzureCredential resource accepts the following input properties:

ClientId This property is required. string
The client ID of the Azure Credential.
ClientSecret This property is required. string
The client secret of the Azure Credential.
StackId This property is required. string
TenantId This property is required. string
The tenant ID of the Azure Credential.
AutoDiscoveryConfigurations List<Pulumiverse.Grafana.Cloud.Inputs.ProviderAzureCredentialAutoDiscoveryConfiguration>
The list of auto discovery configurations.
Name string
The name of the Azure Credential.
ResourceDiscoveryTagFilters List<Pulumiverse.Grafana.Cloud.Inputs.ProviderAzureCredentialResourceDiscoveryTagFilter>
The list of tag filters to apply to resources.
ResourceTagsToAddToMetrics List<string>
The list of resource tags to add to metrics.
ClientId This property is required. string
The client ID of the Azure Credential.
ClientSecret This property is required. string
The client secret of the Azure Credential.
StackId This property is required. string
TenantId This property is required. string
The tenant ID of the Azure Credential.
AutoDiscoveryConfigurations []ProviderAzureCredentialAutoDiscoveryConfigurationArgs
The list of auto discovery configurations.
Name string
The name of the Azure Credential.
ResourceDiscoveryTagFilters []ProviderAzureCredentialResourceDiscoveryTagFilterArgs
The list of tag filters to apply to resources.
ResourceTagsToAddToMetrics []string
The list of resource tags to add to metrics.
clientId This property is required. String
The client ID of the Azure Credential.
clientSecret This property is required. String
The client secret of the Azure Credential.
stackId This property is required. String
tenantId This property is required. String
The tenant ID of the Azure Credential.
autoDiscoveryConfigurations List<ProviderAzureCredentialAutoDiscoveryConfiguration>
The list of auto discovery configurations.
name String
The name of the Azure Credential.
resourceDiscoveryTagFilters List<ProviderAzureCredentialResourceDiscoveryTagFilter>
The list of tag filters to apply to resources.
resourceTagsToAddToMetrics List<String>
The list of resource tags to add to metrics.
clientId This property is required. string
The client ID of the Azure Credential.
clientSecret This property is required. string
The client secret of the Azure Credential.
stackId This property is required. string
tenantId This property is required. string
The tenant ID of the Azure Credential.
autoDiscoveryConfigurations ProviderAzureCredentialAutoDiscoveryConfiguration[]
The list of auto discovery configurations.
name string
The name of the Azure Credential.
resourceDiscoveryTagFilters ProviderAzureCredentialResourceDiscoveryTagFilter[]
The list of tag filters to apply to resources.
resourceTagsToAddToMetrics string[]
The list of resource tags to add to metrics.
client_id This property is required. str
The client ID of the Azure Credential.
client_secret This property is required. str
The client secret of the Azure Credential.
stack_id This property is required. str
tenant_id This property is required. str
The tenant ID of the Azure Credential.
auto_discovery_configurations Sequence[ProviderAzureCredentialAutoDiscoveryConfigurationArgs]
The list of auto discovery configurations.
name str
The name of the Azure Credential.
resource_discovery_tag_filters Sequence[ProviderAzureCredentialResourceDiscoveryTagFilterArgs]
The list of tag filters to apply to resources.
resource_tags_to_add_to_metrics Sequence[str]
The list of resource tags to add to metrics.
clientId This property is required. String
The client ID of the Azure Credential.
clientSecret This property is required. String
The client secret of the Azure Credential.
stackId This property is required. String
tenantId This property is required. String
The tenant ID of the Azure Credential.
autoDiscoveryConfigurations List<Property Map>
The list of auto discovery configurations.
name String
The name of the Azure Credential.
resourceDiscoveryTagFilters List<Property Map>
The list of tag filters to apply to resources.
resourceTagsToAddToMetrics List<String>
The list of resource tags to add to metrics.

Outputs

All input properties are implicitly available as output properties. Additionally, the ProviderAzureCredential resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
ResourceId string
The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
Id string
The provider-assigned unique ID for this managed resource.
ResourceId string
The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
id String
The provider-assigned unique ID for this managed resource.
resourceId String
The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
id string
The provider-assigned unique ID for this managed resource.
resourceId string
The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
id str
The provider-assigned unique ID for this managed resource.
resource_id str
The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
id String
The provider-assigned unique ID for this managed resource.
resourceId String
The ID given by the Grafana Cloud Provider API to this Azure Credential resource.

Look up Existing ProviderAzureCredential Resource

Get an existing ProviderAzureCredential resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ProviderAzureCredentialState, opts?: CustomResourceOptions): ProviderAzureCredential
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        auto_discovery_configurations: Optional[Sequence[ProviderAzureCredentialAutoDiscoveryConfigurationArgs]] = None,
        client_id: Optional[str] = None,
        client_secret: Optional[str] = None,
        name: Optional[str] = None,
        resource_discovery_tag_filters: Optional[Sequence[ProviderAzureCredentialResourceDiscoveryTagFilterArgs]] = None,
        resource_id: Optional[str] = None,
        resource_tags_to_add_to_metrics: Optional[Sequence[str]] = None,
        stack_id: Optional[str] = None,
        tenant_id: Optional[str] = None) -> ProviderAzureCredential
func GetProviderAzureCredential(ctx *Context, name string, id IDInput, state *ProviderAzureCredentialState, opts ...ResourceOption) (*ProviderAzureCredential, error)
public static ProviderAzureCredential Get(string name, Input<string> id, ProviderAzureCredentialState? state, CustomResourceOptions? opts = null)
public static ProviderAzureCredential get(String name, Output<String> id, ProviderAzureCredentialState state, CustomResourceOptions options)
resources:  _:    type: grafana:cloud:ProviderAzureCredential    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AutoDiscoveryConfigurations List<Pulumiverse.Grafana.Cloud.Inputs.ProviderAzureCredentialAutoDiscoveryConfiguration>
The list of auto discovery configurations.
ClientId string
The client ID of the Azure Credential.
ClientSecret string
The client secret of the Azure Credential.
Name string
The name of the Azure Credential.
ResourceDiscoveryTagFilters List<Pulumiverse.Grafana.Cloud.Inputs.ProviderAzureCredentialResourceDiscoveryTagFilter>
The list of tag filters to apply to resources.
ResourceId string
The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
ResourceTagsToAddToMetrics List<string>
The list of resource tags to add to metrics.
StackId string
TenantId string
The tenant ID of the Azure Credential.
AutoDiscoveryConfigurations []ProviderAzureCredentialAutoDiscoveryConfigurationArgs
The list of auto discovery configurations.
ClientId string
The client ID of the Azure Credential.
ClientSecret string
The client secret of the Azure Credential.
Name string
The name of the Azure Credential.
ResourceDiscoveryTagFilters []ProviderAzureCredentialResourceDiscoveryTagFilterArgs
The list of tag filters to apply to resources.
ResourceId string
The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
ResourceTagsToAddToMetrics []string
The list of resource tags to add to metrics.
StackId string
TenantId string
The tenant ID of the Azure Credential.
autoDiscoveryConfigurations List<ProviderAzureCredentialAutoDiscoveryConfiguration>
The list of auto discovery configurations.
clientId String
The client ID of the Azure Credential.
clientSecret String
The client secret of the Azure Credential.
name String
The name of the Azure Credential.
resourceDiscoveryTagFilters List<ProviderAzureCredentialResourceDiscoveryTagFilter>
The list of tag filters to apply to resources.
resourceId String
The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
resourceTagsToAddToMetrics List<String>
The list of resource tags to add to metrics.
stackId String
tenantId String
The tenant ID of the Azure Credential.
autoDiscoveryConfigurations ProviderAzureCredentialAutoDiscoveryConfiguration[]
The list of auto discovery configurations.
clientId string
The client ID of the Azure Credential.
clientSecret string
The client secret of the Azure Credential.
name string
The name of the Azure Credential.
resourceDiscoveryTagFilters ProviderAzureCredentialResourceDiscoveryTagFilter[]
The list of tag filters to apply to resources.
resourceId string
The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
resourceTagsToAddToMetrics string[]
The list of resource tags to add to metrics.
stackId string
tenantId string
The tenant ID of the Azure Credential.
auto_discovery_configurations Sequence[ProviderAzureCredentialAutoDiscoveryConfigurationArgs]
The list of auto discovery configurations.
client_id str
The client ID of the Azure Credential.
client_secret str
The client secret of the Azure Credential.
name str
The name of the Azure Credential.
resource_discovery_tag_filters Sequence[ProviderAzureCredentialResourceDiscoveryTagFilterArgs]
The list of tag filters to apply to resources.
resource_id str
The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
resource_tags_to_add_to_metrics Sequence[str]
The list of resource tags to add to metrics.
stack_id str
tenant_id str
The tenant ID of the Azure Credential.
autoDiscoveryConfigurations List<Property Map>
The list of auto discovery configurations.
clientId String
The client ID of the Azure Credential.
clientSecret String
The client secret of the Azure Credential.
name String
The name of the Azure Credential.
resourceDiscoveryTagFilters List<Property Map>
The list of tag filters to apply to resources.
resourceId String
The ID given by the Grafana Cloud Provider API to this Azure Credential resource.
resourceTagsToAddToMetrics List<String>
The list of resource tags to add to metrics.
stackId String
tenantId String
The tenant ID of the Azure Credential.

Supporting Types

ProviderAzureCredentialAutoDiscoveryConfiguration
, ProviderAzureCredentialAutoDiscoveryConfigurationArgs

ResourceTypeConfigurations This property is required. List<Pulumiverse.Grafana.Cloud.Inputs.ProviderAzureCredentialAutoDiscoveryConfigurationResourceTypeConfiguration>
The list of resource type configurations.
SubscriptionId This property is required. string
The subscription ID of the Azure account.
ResourceTypeConfigurations This property is required. []ProviderAzureCredentialAutoDiscoveryConfigurationResourceTypeConfiguration
The list of resource type configurations.
SubscriptionId This property is required. string
The subscription ID of the Azure account.
resourceTypeConfigurations This property is required. List<ProviderAzureCredentialAutoDiscoveryConfigurationResourceTypeConfiguration>
The list of resource type configurations.
subscriptionId This property is required. String
The subscription ID of the Azure account.
resourceTypeConfigurations This property is required. ProviderAzureCredentialAutoDiscoveryConfigurationResourceTypeConfiguration[]
The list of resource type configurations.
subscriptionId This property is required. string
The subscription ID of the Azure account.
resource_type_configurations This property is required. Sequence[ProviderAzureCredentialAutoDiscoveryConfigurationResourceTypeConfiguration]
The list of resource type configurations.
subscription_id This property is required. str
The subscription ID of the Azure account.
resourceTypeConfigurations This property is required. List<Property Map>
The list of resource type configurations.
subscriptionId This property is required. String
The subscription ID of the Azure account.

ProviderAzureCredentialAutoDiscoveryConfigurationResourceTypeConfiguration
, ProviderAzureCredentialAutoDiscoveryConfigurationResourceTypeConfigurationArgs

metricConfigurations This property is required. List<Property Map>
resourceTypeName This property is required. String

ProviderAzureCredentialAutoDiscoveryConfigurationResourceTypeConfigurationMetricConfiguration
, ProviderAzureCredentialAutoDiscoveryConfigurationResourceTypeConfigurationMetricConfigurationArgs

Aggregations This property is required. List<string>
Dimensions This property is required. List<string>
Name This property is required. string
Aggregations This property is required. []string
Dimensions This property is required. []string
Name This property is required. string
aggregations This property is required. List<String>
dimensions This property is required. List<String>
name This property is required. String
aggregations This property is required. string[]
dimensions This property is required. string[]
name This property is required. string
aggregations This property is required. Sequence[str]
dimensions This property is required. Sequence[str]
name This property is required. str
aggregations This property is required. List<String>
dimensions This property is required. List<String>
name This property is required. String

ProviderAzureCredentialResourceDiscoveryTagFilter
, ProviderAzureCredentialResourceDiscoveryTagFilterArgs

Key This property is required. string
The key of the tag filter.
Value This property is required. string
The value of the tag filter.
Key This property is required. string
The key of the tag filter.
Value This property is required. string
The value of the tag filter.
key This property is required. String
The key of the tag filter.
value This property is required. String
The value of the tag filter.
key This property is required. string
The key of the tag filter.
value This property is required. string
The value of the tag filter.
key This property is required. str
The key of the tag filter.
value This property is required. str
The value of the tag filter.
key This property is required. String
The key of the tag filter.
value This property is required. String
The value of the tag filter.

Import

$ pulumi import grafana:cloud/providerAzureCredential:ProviderAzureCredential name "{{ stack_id }}:{{ resource_id }}"
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
grafana pulumiverse/pulumi-grafana
License
Apache-2.0
Notes
This Pulumi package is based on the grafana Terraform Provider.