@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 4.36 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* The operation to get the extension.
*
* Uses Azure REST API version 2023-04-01-preview.
*
* Other available API versions: 2022-05-21-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native scvmm [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getMachineExtension(args: GetMachineExtensionArgs, opts?: pulumi.InvokeOptions): Promise<GetMachineExtensionResult>;
export interface GetMachineExtensionArgs {
/**
* The name of the machine extension.
*/
extensionName: string;
/**
* The name of the resource group.
*/
resourceGroupName: string;
/**
* The name of the machine where the extension should be created or updated.
*/
virtualMachineName: string;
}
/**
* Describes a Machine Extension.
*/
export interface GetMachineExtensionResult {
/**
* Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
*/
readonly autoUpgradeMinorVersion?: boolean;
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available.
*/
readonly enableAutomaticUpgrade?: boolean;
/**
* How the extension handler should be forced to update even if the extension configuration has not changed.
*/
readonly forceUpdateTag?: string;
/**
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*/
readonly id: string;
/**
* The machine extension instance view.
*/
readonly instanceView?: outputs.scvmm.MachineExtensionPropertiesResponseInstanceView;
/**
* The geo-location where the resource lives
*/
readonly location: string;
/**
* The name of the resource
*/
readonly name: string;
/**
* The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
*/
readonly protectedSettings?: any;
/**
* The provisioning state, which only appears in the response.
*/
readonly provisioningState: string;
/**
* The name of the extension handler publisher.
*/
readonly publisher?: string;
/**
* Json formatted public settings for the extension.
*/
readonly settings?: any;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.scvmm.SystemDataResponse;
/**
* Resource tags.
*/
readonly tags?: {
[key: string]: string;
};
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
/**
* Specifies the version of the script handler.
*/
readonly typeHandlerVersion?: string;
}
/**
* The operation to get the extension.
*
* Uses Azure REST API version 2023-04-01-preview.
*
* Other available API versions: 2022-05-21-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native scvmm [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getMachineExtensionOutput(args: GetMachineExtensionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetMachineExtensionResult>;
export interface GetMachineExtensionOutputArgs {
/**
* The name of the machine extension.
*/
extensionName: pulumi.Input<string>;
/**
* The name of the resource group.
*/
resourceGroupName: pulumi.Input<string>;
/**
* The name of the machine where the extension should be created or updated.
*/
virtualMachineName: pulumi.Input<string>;
}