grafana.cloudProvider.AzureCredential
Explore with Pulumi AI
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());
    }
}
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
Create AzureCredential Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AzureCredential(name: string, args: AzureCredentialArgs, opts?: CustomResourceOptions);@overload
def AzureCredential(resource_name: str,
                    args: AzureCredentialArgs,
                    opts: Optional[ResourceOptions] = None)
@overload
def AzureCredential(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    client_id: Optional[str] = None,
                    client_secret: Optional[str] = None,
                    stack_id: Optional[str] = None,
                    tenant_id: Optional[str] = None,
                    auto_discovery_configurations: Optional[Sequence[_cloudprovider.AzureCredentialAutoDiscoveryConfigurationArgs]] = None,
                    name: Optional[str] = None,
                    resource_discovery_tag_filters: Optional[Sequence[_cloudprovider.AzureCredentialResourceDiscoveryTagFilterArgs]] = None,
                    resource_tags_to_add_to_metrics: Optional[Sequence[str]] = None)func NewAzureCredential(ctx *Context, name string, args AzureCredentialArgs, opts ...ResourceOption) (*AzureCredential, error)public AzureCredential(string name, AzureCredentialArgs args, CustomResourceOptions? opts = null)
public AzureCredential(String name, AzureCredentialArgs args)
public AzureCredential(String name, AzureCredentialArgs args, CustomResourceOptions options)
type: grafana:cloudProvider:AzureCredential
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AzureCredentialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AzureCredentialArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AzureCredentialArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AzureCredentialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AzureCredentialArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azureCredentialResource = new Grafana.CloudProvider.AzureCredential("azureCredentialResource", new()
{
    ClientId = "string",
    ClientSecret = "string",
    StackId = "string",
    TenantId = "string",
    AutoDiscoveryConfigurations = new[]
    {
        new Grafana.CloudProvider.Inputs.AzureCredentialAutoDiscoveryConfigurationArgs
        {
            ResourceTypeConfigurations = new[]
            {
                new Grafana.CloudProvider.Inputs.AzureCredentialAutoDiscoveryConfigurationResourceTypeConfigurationArgs
                {
                    MetricConfigurations = new[]
                    {
                        new Grafana.CloudProvider.Inputs.AzureCredentialAutoDiscoveryConfigurationResourceTypeConfigurationMetricConfigurationArgs
                        {
                            Aggregations = new[]
                            {
                                "string",
                            },
                            Dimensions = new[]
                            {
                                "string",
                            },
                            Name = "string",
                        },
                    },
                    ResourceTypeName = "string",
                },
            },
            SubscriptionId = "string",
        },
    },
    Name = "string",
    ResourceDiscoveryTagFilters = new[]
    {
        new Grafana.CloudProvider.Inputs.AzureCredentialResourceDiscoveryTagFilterArgs
        {
            Key = "string",
            Value = "string",
        },
    },
    ResourceTagsToAddToMetrics = new[]
    {
        "string",
    },
});
example, err := cloudProvider.NewAzureCredential(ctx, "azureCredentialResource", &cloudProvider.AzureCredentialArgs{
	ClientId:     pulumi.String("string"),
	ClientSecret: pulumi.String("string"),
	StackId:      pulumi.String("string"),
	TenantId:     pulumi.String("string"),
	AutoDiscoveryConfigurations: cloudprovider.AzureCredentialAutoDiscoveryConfigurationArray{
		&cloudprovider.AzureCredentialAutoDiscoveryConfigurationArgs{
			ResourceTypeConfigurations: cloudprovider.AzureCredentialAutoDiscoveryConfigurationResourceTypeConfigurationArray{
				&cloudprovider.AzureCredentialAutoDiscoveryConfigurationResourceTypeConfigurationArgs{
					MetricConfigurations: cloudprovider.AzureCredentialAutoDiscoveryConfigurationResourceTypeConfigurationMetricConfigurationArray{
						&cloudprovider.AzureCredentialAutoDiscoveryConfigurationResourceTypeConfigurationMetricConfigurationArgs{
							Aggregations: pulumi.StringArray{
								pulumi.String("string"),
							},
							Dimensions: pulumi.StringArray{
								pulumi.String("string"),
							},
							Name: pulumi.String("string"),
						},
					},
					ResourceTypeName: pulumi.String("string"),
				},
			},
			SubscriptionId: pulumi.String("string"),
		},
	},
	Name: pulumi.String("string"),
	ResourceDiscoveryTagFilters: cloudprovider.AzureCredentialResourceDiscoveryTagFilterArray{
		&cloudprovider.AzureCredentialResourceDiscoveryTagFilterArgs{
			Key:   pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
	ResourceTagsToAddToMetrics: pulumi.StringArray{
		pulumi.String("string"),
	},
})
var azureCredentialResource = new AzureCredential("azureCredentialResource", AzureCredentialArgs.builder()
    .clientId("string")
    .clientSecret("string")
    .stackId("string")
    .tenantId("string")
    .autoDiscoveryConfigurations(AzureCredentialAutoDiscoveryConfigurationArgs.builder()
        .resourceTypeConfigurations(AzureCredentialAutoDiscoveryConfigurationResourceTypeConfigurationArgs.builder()
            .metricConfigurations(AzureCredentialAutoDiscoveryConfigurationResourceTypeConfigurationMetricConfigurationArgs.builder()
                .aggregations("string")
                .dimensions("string")
                .name("string")
                .build())
            .resourceTypeName("string")
            .build())
        .subscriptionId("string")
        .build())
    .name("string")
    .resourceDiscoveryTagFilters(AzureCredentialResourceDiscoveryTagFilterArgs.builder()
        .key("string")
        .value("string")
        .build())
    .resourceTagsToAddToMetrics("string")
    .build());
azure_credential_resource = grafana.cloud_provider.AzureCredential("azureCredentialResource",
    client_id="string",
    client_secret="string",
    stack_id="string",
    tenant_id="string",
    auto_discovery_configurations=[{
        "resource_type_configurations": [{
            "metric_configurations": [{
                "aggregations": ["string"],
                "dimensions": ["string"],
                "name": "string",
            }],
            "resource_type_name": "string",
        }],
        "subscription_id": "string",
    }],
    name="string",
    resource_discovery_tag_filters=[{
        "key": "string",
        "value": "string",
    }],
    resource_tags_to_add_to_metrics=["string"])
const azureCredentialResource = new grafana.cloudprovider.AzureCredential("azureCredentialResource", {
    clientId: "string",
    clientSecret: "string",
    stackId: "string",
    tenantId: "string",
    autoDiscoveryConfigurations: [{
        resourceTypeConfigurations: [{
            metricConfigurations: [{
                aggregations: ["string"],
                dimensions: ["string"],
                name: "string",
            }],
            resourceTypeName: "string",
        }],
        subscriptionId: "string",
    }],
    name: "string",
    resourceDiscoveryTagFilters: [{
        key: "string",
        value: "string",
    }],
    resourceTagsToAddToMetrics: ["string"],
});
type: grafana:cloudProvider:AzureCredential
properties:
    autoDiscoveryConfigurations:
        - resourceTypeConfigurations:
            - metricConfigurations:
                - aggregations:
                    - string
                  dimensions:
                    - string
                  name: string
              resourceTypeName: string
          subscriptionId: string
    clientId: string
    clientSecret: string
    name: string
    resourceDiscoveryTagFilters:
        - key: string
          value: string
    resourceTagsToAddToMetrics:
        - string
    stackId: string
    tenantId: string
AzureCredential 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 AzureCredential resource accepts the following input properties:
- ClientId string
- The client ID of the Azure Credential.
- ClientSecret string
- The client secret of the Azure Credential.
- StackId string
- TenantId string
- The tenant ID of the Azure Credential.
- AutoDiscovery List<Pulumiverse.Configurations Grafana. Cloud Provider. Inputs. Azure Credential Auto Discovery Configuration> 
- The list of auto discovery configurations.
- Name string
- The name of the Azure Credential.
- ResourceDiscovery List<Pulumiverse.Tag Filters Grafana. Cloud Provider. Inputs. Azure Credential Resource Discovery Tag Filter> 
- The list of tag filters to apply to resources.
- List<string>
- The list of resource tags to add to metrics.
- ClientId string
- The client ID of the Azure Credential.
- ClientSecret string
- The client secret of the Azure Credential.
- StackId string
- TenantId string
- The tenant ID of the Azure Credential.
- AutoDiscovery []AzureConfigurations Credential Auto Discovery Configuration Args 
- The list of auto discovery configurations.
- Name string
- The name of the Azure Credential.
- ResourceDiscovery []AzureTag Filters Credential Resource Discovery Tag Filter Args 
- The list of tag filters to apply to resources.
- []string
- The list of resource tags to add to metrics.
- clientId String
- The client ID of the Azure Credential.
- clientSecret String
- The client secret of the Azure Credential.
- stackId String
- tenantId String
- The tenant ID of the Azure Credential.
- autoDiscovery List<AzureConfigurations Credential Auto Discovery Configuration> 
- The list of auto discovery configurations.
- name String
- The name of the Azure Credential.
- resourceDiscovery List<AzureTag Filters Credential Resource Discovery Tag Filter> 
- The list of tag filters to apply to resources.
- List<String>
- The list of resource tags to add to metrics.
- clientId string
- The client ID of the Azure Credential.
- clientSecret string
- The client secret of the Azure Credential.
- stackId string
- tenantId string
- The tenant ID of the Azure Credential.
- autoDiscovery AzureConfigurations Credential Auto Discovery Configuration[] 
- The list of auto discovery configurations.
- name string
- The name of the Azure Credential.
- resourceDiscovery AzureTag Filters Credential Resource Discovery Tag Filter[] 
- The list of tag filters to apply to resources.
- string[]
- The list of resource tags to add to metrics.
- client_id str
- The client ID of the Azure Credential.
- client_secret str
- The client secret of the Azure Credential.
- stack_id str
- tenant_id str
- The tenant ID of the Azure Credential.
- auto_discovery_ Sequence[cloudprovider.configurations Azure Credential Auto Discovery Configuration Args] 
- The list of auto discovery configurations.
- name str
- The name of the Azure Credential.
- resource_discovery_ Sequence[cloudprovider.tag_ filters Azure Credential Resource Discovery Tag Filter Args] 
- The list of tag filters to apply to resources.
- Sequence[str]
- The list of resource tags to add to metrics.
- clientId String
- The client ID of the Azure Credential.
- clientSecret String
- The client secret of the Azure Credential.
- stackId String
- tenantId String
- The tenant ID of the Azure Credential.
- autoDiscovery List<Property Map>Configurations 
- The list of auto discovery configurations.
- name String
- The name of the Azure Credential.
- resourceDiscovery List<Property Map>Tag Filters 
- The list of tag filters to apply to resources.
- List<String>
- The list of resource tags to add to metrics.
Outputs
All input properties are implicitly available as output properties. Additionally, the AzureCredential 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 AzureCredential Resource
Get an existing AzureCredential 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?: AzureCredentialState, opts?: CustomResourceOptions): AzureCredential@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        auto_discovery_configurations: Optional[Sequence[_cloudprovider.AzureCredentialAutoDiscoveryConfigurationArgs]] = None,
        client_id: Optional[str] = None,
        client_secret: Optional[str] = None,
        name: Optional[str] = None,
        resource_discovery_tag_filters: Optional[Sequence[_cloudprovider.AzureCredentialResourceDiscoveryTagFilterArgs]] = 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) -> AzureCredentialfunc GetAzureCredential(ctx *Context, name string, id IDInput, state *AzureCredentialState, opts ...ResourceOption) (*AzureCredential, error)public static AzureCredential Get(string name, Input<string> id, AzureCredentialState? state, CustomResourceOptions? opts = null)public static AzureCredential get(String name, Output<String> id, AzureCredentialState state, CustomResourceOptions options)resources:  _:    type: grafana:cloudProvider:AzureCredential    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- AutoDiscovery List<Pulumiverse.Configurations Grafana. Cloud Provider. Inputs. Azure Credential Auto Discovery Configuration> 
- 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.
- ResourceDiscovery List<Pulumiverse.Tag Filters Grafana. Cloud Provider. Inputs. Azure Credential Resource Discovery Tag Filter> 
- 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.
- List<string>
- The list of resource tags to add to metrics.
- StackId string
- TenantId string
- The tenant ID of the Azure Credential.
- AutoDiscovery []AzureConfigurations Credential Auto Discovery Configuration Args 
- 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.
- ResourceDiscovery []AzureTag Filters Credential Resource Discovery Tag Filter Args 
- 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.
- []string
- The list of resource tags to add to metrics.
- StackId string
- TenantId string
- The tenant ID of the Azure Credential.
- autoDiscovery List<AzureConfigurations Credential Auto Discovery Configuration> 
- 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.
- resourceDiscovery List<AzureTag Filters Credential Resource Discovery Tag Filter> 
- 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.
- List<String>
- The list of resource tags to add to metrics.
- stackId String
- tenantId String
- The tenant ID of the Azure Credential.
- autoDiscovery AzureConfigurations Credential Auto Discovery Configuration[] 
- 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.
- resourceDiscovery AzureTag Filters Credential Resource Discovery Tag Filter[] 
- 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.
- string[]
- The list of resource tags to add to metrics.
- stackId string
- tenantId string
- The tenant ID of the Azure Credential.
- auto_discovery_ Sequence[cloudprovider.configurations Azure Credential Auto Discovery Configuration Args] 
- 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_ Sequence[cloudprovider.tag_ filters Azure Credential Resource Discovery Tag Filter Args] 
- 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.
- Sequence[str]
- The list of resource tags to add to metrics.
- stack_id str
- tenant_id str
- The tenant ID of the Azure Credential.
- autoDiscovery List<Property Map>Configurations 
- 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.
- resourceDiscovery List<Property Map>Tag Filters 
- 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.
- List<String>
- The list of resource tags to add to metrics.
- stackId String
- tenantId String
- The tenant ID of the Azure Credential.
Supporting Types
AzureCredentialAutoDiscoveryConfiguration, AzureCredentialAutoDiscoveryConfigurationArgs          
- ResourceType List<Pulumiverse.Configurations Grafana. Cloud Provider. Inputs. Azure Credential Auto Discovery Configuration Resource Type Configuration> 
- The list of resource type configurations.
- SubscriptionId string
- The subscription ID of the Azure account.
- ResourceType []AzureConfigurations Credential Auto Discovery Configuration Resource Type Configuration 
- The list of resource type configurations.
- SubscriptionId string
- The subscription ID of the Azure account.
- resourceType List<AzureConfigurations Credential Auto Discovery Configuration Resource Type Configuration> 
- The list of resource type configurations.
- subscriptionId String
- The subscription ID of the Azure account.
- resourceType AzureConfigurations Credential Auto Discovery Configuration Resource Type Configuration[] 
- The list of resource type configurations.
- subscriptionId string
- The subscription ID of the Azure account.
- resource_type_ Sequence[cloudprovider.configurations Azure Credential Auto Discovery Configuration Resource Type Configuration] 
- The list of resource type configurations.
- subscription_id str
- The subscription ID of the Azure account.
- resourceType List<Property Map>Configurations 
- The list of resource type configurations.
- subscriptionId String
- The subscription ID of the Azure account.
AzureCredentialAutoDiscoveryConfigurationResourceTypeConfiguration, AzureCredentialAutoDiscoveryConfigurationResourceTypeConfigurationArgs                
AzureCredentialAutoDiscoveryConfigurationResourceTypeConfigurationMetricConfiguration, AzureCredentialAutoDiscoveryConfigurationResourceTypeConfigurationMetricConfigurationArgs                    
- Aggregations List<string>
- Dimensions List<string>
- Name string
- Aggregations []string
- Dimensions []string
- Name string
- aggregations List<String>
- dimensions List<String>
- name String
- aggregations string[]
- dimensions string[]
- name string
- aggregations Sequence[str]
- dimensions Sequence[str]
- name str
- aggregations List<String>
- dimensions List<String>
- name String
AzureCredentialResourceDiscoveryTagFilter, AzureCredentialResourceDiscoveryTagFilterArgs            
Import
$ pulumi import grafana:cloudProvider/azureCredential:AzureCredential name "{{ stack_id }}:{{ resource_id }}"
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 grafanaTerraform Provider.
