Azure DevOps v3.10.2 published on Wednesday, Oct 22, 2025 by Pulumi
azuredevops.getStorageKey
Use this data source to access information about an existing Storage Key.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const example = azuredevops.getStorageKey({
descriptor: "aad.000000000000000000000000000000000000",
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azuredevops as azuredevops
example = azuredevops.get_storage_key(descriptor="aad.000000000000000000000000000000000000")
pulumi.export("id", example.id)
package main
import (
"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := azuredevops.GetStorageKey(ctx, &azuredevops.GetStorageKeyArgs{
Descriptor: "aad.000000000000000000000000000000000000",
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() =>
{
var example = AzureDevOps.GetStorageKey.Invoke(new()
{
Descriptor = "aad.000000000000000000000000000000000000",
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getStorageKeyResult => getStorageKeyResult.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.AzuredevopsFunctions;
import com.pulumi.azuredevops.inputs.GetStorageKeyArgs;
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 = AzuredevopsFunctions.getStorageKey(GetStorageKeyArgs.builder()
.descriptor("aad.000000000000000000000000000000000000")
.build());
ctx.export("id", example.id());
}
}
variables:
example:
fn::invoke:
function: azuredevops:getStorageKey
arguments:
descriptor: aad.000000000000000000000000000000000000
outputs:
id: ${example.id}
Relevant Links
Using getStorageKey
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 getStorageKey(args: GetStorageKeyArgs, opts?: InvokeOptions): Promise<GetStorageKeyResult>
function getStorageKeyOutput(args: GetStorageKeyOutputArgs, opts?: InvokeOptions): Output<GetStorageKeyResult>
def get_storage_key(descriptor: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStorageKeyResult
def get_storage_key_output(descriptor: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStorageKeyResult]
func GetStorageKey(ctx *Context, args *GetStorageKeyArgs, opts ...InvokeOption) (*GetStorageKeyResult, error)
func GetStorageKeyOutput(ctx *Context, args *GetStorageKeyOutputArgs, opts ...InvokeOption) GetStorageKeyResultOutput
> Note: This function is named GetStorageKey
in the Go SDK.
public static class GetStorageKey
{
public static Task<GetStorageKeyResult> InvokeAsync(GetStorageKeyArgs args, InvokeOptions? opts = null)
public static Output<GetStorageKeyResult> Invoke(GetStorageKeyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetStorageKeyResult> getStorageKey(GetStorageKeyArgs args, InvokeOptions options)
public static Output<GetStorageKeyResult> getStorageKey(GetStorageKeyArgs args, InvokeOptions options)
fn::invoke:
function: azuredevops:index/getStorageKey:getStorageKey
arguments:
# arguments dictionary
The following arguments are supported:
- Descriptor string
- The descriptor that will be resolved to a storage key.
- Descriptor string
- The descriptor that will be resolved to a storage key.
- descriptor String
- The descriptor that will be resolved to a storage key.
- descriptor string
- The descriptor that will be resolved to a storage key.
- descriptor str
- The descriptor that will be resolved to a storage key.
- descriptor String
- The descriptor that will be resolved to a storage key.
getStorageKey Result
The following output properties are available:
- Descriptor string
- Id string
- The provider-assigned unique ID for this managed resource.
- Storage
Key string - The Storage Key of the descriptor.
- Descriptor string
- Id string
- The provider-assigned unique ID for this managed resource.
- Storage
Key string - The Storage Key of the descriptor.
- descriptor String
- id String
- The provider-assigned unique ID for this managed resource.
- storage
Key String - The Storage Key of the descriptor.
- descriptor string
- id string
- The provider-assigned unique ID for this managed resource.
- storage
Key string - The Storage Key of the descriptor.
- descriptor str
- id str
- The provider-assigned unique ID for this managed resource.
- storage_
key str - The Storage Key of the descriptor.
- descriptor String
- id String
- The provider-assigned unique ID for this managed resource.
- storage
Key String - The Storage Key of the descriptor.
Package Details
- Repository
- Azure DevOps pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azuredevops
Terraform Provider.