get Definition
Use this data source to access information about an existing Azure Blueprint Definition
NOTE: Azure Blueprints are in Preview and potentially subject to breaking change without notice.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.management.ManagementFunctions;
import com.pulumi.azure.management.inputs.GetGroupArgs;
import com.pulumi.azure.blueprint.BlueprintFunctions;
import com.pulumi.azure.blueprint.inputs.GetDefinitionArgs;
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 current = CoreFunctions.getClientConfig();
final var root = ManagementFunctions.getGroup(GetGroupArgs.builder()
.name(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
.build());
final var example = BlueprintFunctions.getDefinition(GetDefinitionArgs.builder()
.name("exampleManagementGroupBP")
.scopeId(root.applyValue(getGroupResult -> getGroupResult.id()))
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getDefinition.
Parameters
argument
A collection of arguments for invoking getDefinition.
Return
A collection of values returned by getDefinition.
See also
Parameters
name
The name of the Blueprint.
scope Id
The ID of the Subscription or Management Group, as the scope at which the blueprint definition is stored.
suspend fun getDefinition(argument: suspend GetDefinitionPlainArgsBuilder.() -> Unit): GetDefinitionResult
Return
A collection of values returned by getDefinition.
See also
Parameters
argument
Builder for com.pulumi.azure.blueprint.kotlin.inputs.GetDefinitionPlainArgs.