UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

134 lines (133 loc) 6.17 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * The operation to get a run command. * * Uses Azure REST API version 2024-07-31-preview. * * Other available API versions: 2023-10-03-preview, 2024-03-31-preview, 2024-05-20-preview, 2024-09-10-preview, 2024-11-10-preview, 2025-01-13, 2025-02-19-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native hybridcompute [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getMachineRunCommand(args: GetMachineRunCommandArgs, opts?: pulumi.InvokeOptions): Promise<GetMachineRunCommandResult>; export interface GetMachineRunCommandArgs { /** * The name of the hybrid machine. */ machineName: string; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; /** * The name of the run command. */ runCommandName: string; } /** * Describes a Run Command */ export interface GetMachineRunCommandResult { /** * Optional. If set to true, provisioning will complete as soon as script starts and will not wait for script to complete. */ readonly asyncExecution?: boolean; /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * User-assigned managed identity that has access to errorBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged */ readonly errorBlobManagedIdentity?: outputs.hybridcompute.RunCommandManagedIdentityResponse; /** * Specifies the Azure storage blob where script error stream will be uploaded. Use a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob. Refer errorBlobManagedIdentity parameter. */ readonly errorBlobUri?: string; /** * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ readonly id: string; /** * The machine run command instance view. */ readonly instanceView: outputs.hybridcompute.MachineRunCommandInstanceViewResponse; /** * The geo-location where the resource lives */ readonly location: string; /** * The name of the resource */ readonly name: string; /** * User-assigned managed identity that has access to outputBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged */ readonly outputBlobManagedIdentity?: outputs.hybridcompute.RunCommandManagedIdentityResponse; /** * Specifies the Azure storage blob where script output stream will be uploaded. Use a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob. Refer outputBlobManagedIdentity parameter. */ readonly outputBlobUri?: string; /** * The parameters used by the script. */ readonly parameters?: outputs.hybridcompute.RunCommandInputParameterResponse[]; /** * The parameters used by the script. */ readonly protectedParameters?: outputs.hybridcompute.RunCommandInputParameterResponse[]; /** * The provisioning state, which only appears in the response. */ readonly provisioningState: string; /** * Specifies the user account password on the machine when executing the run command. */ readonly runAsPassword?: string; /** * Specifies the user account on the machine when executing the run command. */ readonly runAsUser?: string; /** * The source of the run command script. */ readonly source?: outputs.hybridcompute.MachineRunCommandScriptSourceResponse; /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ readonly systemData: outputs.hybridcompute.SystemDataResponse; /** * Resource tags. */ readonly tags?: { [key: string]: string; }; /** * The timeout in seconds to execute the run command. */ readonly timeoutInSeconds?: number; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: string; } /** * The operation to get a run command. * * Uses Azure REST API version 2024-07-31-preview. * * Other available API versions: 2023-10-03-preview, 2024-03-31-preview, 2024-05-20-preview, 2024-09-10-preview, 2024-11-10-preview, 2025-01-13, 2025-02-19-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native hybridcompute [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getMachineRunCommandOutput(args: GetMachineRunCommandOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetMachineRunCommandResult>; export interface GetMachineRunCommandOutputArgs { /** * The name of the hybrid machine. */ machineName: pulumi.Input<string>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; /** * The name of the run command. */ runCommandName: pulumi.Input<string>; }