We recommend using Azure Native.
Azure v6.32.0 published on Thursday, Feb 5, 2026 by Pulumi
Use this data source to access information about an existing Attestation Provider.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azurerm from "@pulumi/azurerm";
const example = azurerm.index.Attestation({
name: "example-attestationprovider",
resourceGroupName: "example-resource-group",
});
export const id = example.id;
import pulumi
import pulumi_azurerm as azurerm
example = azurerm.index.attestation(name="example-attestationprovider",
resource_group_name="example-resource-group")
pulumi.export("id", example["id"])
package main
import (
"github.com/pulumi/pulumi-azurerm/sdk/go/azurerm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := azurerm.Attestation(ctx, map[string]interface{}{
"name": "example-attestationprovider",
"resourceGroupName": "example-resource-group",
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azurerm = Pulumi.Azurerm;
return await Deployment.RunAsync(() =>
{
var example = Azurerm.Index.Attestation.Invoke(new()
{
Name = "example-attestationprovider",
ResourceGroupName = "example-resource-group",
});
return new Dictionary<string, object?>
{
["id"] = example.Id,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurerm.AzurermFunctions;
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) {
final var example = AzurermFunctions.Attestation(Map.ofEntries(
Map.entry("name", "example-attestationprovider"),
Map.entry("resourceGroupName", "example-resource-group")
));
ctx.export("id", example.id());
}
}
variables:
example:
fn::invoke:
function: azurerm:Attestation
arguments:
name: example-attestationprovider
resourceGroupName: example-resource-group
outputs:
id: ${example.id}
API Providers
This data source uses the following Azure API Providers:
Microsoft.Attestation- 2020-10-01
Using getProvider
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getProvider(args: GetProviderArgs, opts?: InvokeOptions): Promise<GetProviderResult>
function getProviderOutput(args: GetProviderOutputArgs, opts?: InvokeOptions): Output<GetProviderResult>def get_provider(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProviderResult
def get_provider_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProviderResult]func LookupProvider(ctx *Context, args *LookupProviderArgs, opts ...InvokeOption) (*LookupProviderResult, error)
func LookupProviderOutput(ctx *Context, args *LookupProviderOutputArgs, opts ...InvokeOption) LookupProviderResultOutput> Note: This function is named LookupProvider in the Go SDK.
public static class GetProvider
{
public static Task<GetProviderResult> InvokeAsync(GetProviderArgs args, InvokeOptions? opts = null)
public static Output<GetProviderResult> Invoke(GetProviderInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetProviderResult> getProvider(GetProviderArgs args, InvokeOptions options)
public static Output<GetProviderResult> getProvider(GetProviderArgs args, InvokeOptions options)
fn::invoke:
function: azure:attestation/getProvider:getProvider
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- The name of this Attestation Provider.
- Resource
Group stringName - The name of the Resource Group where the Attestation Provider exists.
- Name string
- The name of this Attestation Provider.
- Resource
Group stringName - The name of the Resource Group where the Attestation Provider exists.
- name String
- The name of this Attestation Provider.
- resource
Group StringName - The name of the Resource Group where the Attestation Provider exists.
- name string
- The name of this Attestation Provider.
- resource
Group stringName - The name of the Resource Group where the Attestation Provider exists.
- name str
- The name of this Attestation Provider.
- resource_
group_ strname - The name of the Resource Group where the Attestation Provider exists.
- name String
- The name of this Attestation Provider.
- resource
Group StringName - The name of the Resource Group where the Attestation Provider exists.
getProvider Result
The following output properties are available:
- Attestation
Uri string - The (Endpoint|URI) of the Attestation Service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region where the Attestation Provider exists.
- Name string
- Resource
Group stringName - Dictionary<string, string>
- A mapping of tags assigned to the Attestation Provider.
- Trust
Model string - Trust model used for the Attestation Service.
- Attestation
Uri string - The (Endpoint|URI) of the Attestation Service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region where the Attestation Provider exists.
- Name string
- Resource
Group stringName - map[string]string
- A mapping of tags assigned to the Attestation Provider.
- Trust
Model string - Trust model used for the Attestation Service.
- attestation
Uri String - The (Endpoint|URI) of the Attestation Service.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region where the Attestation Provider exists.
- name String
- resource
Group StringName - Map<String,String>
- A mapping of tags assigned to the Attestation Provider.
- trust
Model String - Trust model used for the Attestation Service.
- attestation
Uri string - The (Endpoint|URI) of the Attestation Service.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- The Azure Region where the Attestation Provider exists.
- name string
- resource
Group stringName - {[key: string]: string}
- A mapping of tags assigned to the Attestation Provider.
- trust
Model string - Trust model used for the Attestation Service.
- attestation_
uri str - The (Endpoint|URI) of the Attestation Service.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- The Azure Region where the Attestation Provider exists.
- name str
- resource_
group_ strname - Mapping[str, str]
- A mapping of tags assigned to the Attestation Provider.
- trust_
model str - Trust model used for the Attestation Service.
- attestation
Uri String - The (Endpoint|URI) of the Attestation Service.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region where the Attestation Provider exists.
- name String
- resource
Group StringName - Map<String>
- A mapping of tags assigned to the Attestation Provider.
- trust
Model String - Trust model used for the Attestation Service.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
