@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.84 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Get formula.
*
* Uses Azure REST API version 2018-09-15.
*/
export declare function getFormula(args: GetFormulaArgs, opts?: pulumi.InvokeOptions): Promise<GetFormulaResult>;
export interface GetFormulaArgs {
/**
* Specify the $expand query. Example: 'properties($select=description)'
*/
expand?: string;
/**
* The name of the lab.
*/
labName: string;
/**
* The name of the Formula
*/
name: string;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
}
/**
* A formula for creating a VM, specifying an image base and other parameters
*/
export interface GetFormulaResult {
/**
* The author of the formula.
*/
readonly author: string;
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* The creation date of the formula.
*/
readonly creationDate: string;
/**
* The description of the formula.
*/
readonly description?: string;
/**
* The content of the formula.
*/
readonly formulaContent?: outputs.devtestlab.LabVirtualMachineCreationParameterResponse;
/**
* The identifier of the resource.
*/
readonly id: string;
/**
* The location of the resource.
*/
readonly location?: string;
/**
* The name of the resource.
*/
readonly name: string;
/**
* The OS type of the formula.
*/
readonly osType?: string;
/**
* The provisioning status of the resource.
*/
readonly provisioningState: string;
/**
* The tags of the resource.
*/
readonly tags?: {
[key: string]: string;
};
/**
* The type of the resource.
*/
readonly type: string;
/**
* The unique immutable identifier of a resource (Guid).
*/
readonly uniqueIdentifier: string;
/**
* Information about a VM from which a formula is to be created.
*/
readonly vm?: outputs.devtestlab.FormulaPropertiesFromVmResponse;
}
/**
* Get formula.
*
* Uses Azure REST API version 2018-09-15.
*/
export declare function getFormulaOutput(args: GetFormulaOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetFormulaResult>;
export interface GetFormulaOutputArgs {
/**
* Specify the $expand query. Example: 'properties($select=description)'
*/
expand?: pulumi.Input<string>;
/**
* The name of the lab.
*/
labName: pulumi.Input<string>;
/**
* The name of the Formula
*/
name: pulumi.Input<string>;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
}