@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 6.36 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets a SQL virtual machine.
*
* Uses Azure REST API version 2023-10-01.
*
* Other available API versions: 2022-02-01, 2022-07-01-preview, 2022-08-01-preview, 2023-01-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native sqlvirtualmachine [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getSqlVirtualMachine(args: GetSqlVirtualMachineArgs, opts?: pulumi.InvokeOptions): Promise<GetSqlVirtualMachineResult>;
export interface GetSqlVirtualMachineArgs {
/**
* The child resources to include in the response.
*/
expand?: string;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
/**
* Name of the SQL virtual machine.
*/
sqlVirtualMachineName: string;
}
/**
* A SQL virtual machine.
*/
export interface GetSqlVirtualMachineResult {
/**
* Additional VM Patching solution enabled on the Virtual Machine
*/
readonly additionalVmPatch: string;
/**
* SQL best practices Assessment Settings.
*/
readonly assessmentSettings?: outputs.sqlvirtualmachine.AssessmentSettingsResponse;
/**
* Auto backup settings for SQL Server.
*/
readonly autoBackupSettings?: outputs.sqlvirtualmachine.AutoBackupSettingsResponse;
/**
* Auto patching settings for applying critical security updates to SQL virtual machine.
*/
readonly autoPatchingSettings?: outputs.sqlvirtualmachine.AutoPatchingSettingsResponse;
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Enable automatic upgrade of Sql IaaS extension Agent.
*/
readonly enableAutomaticUpgrade?: boolean;
/**
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*/
readonly id: string;
/**
* DO NOT USE. This value will be deprecated. Azure Active Directory identity of the server.
*/
readonly identity?: outputs.sqlvirtualmachine.ResourceIdentityResponse;
/**
* Key vault credential settings.
*/
readonly keyVaultCredentialSettings?: outputs.sqlvirtualmachine.KeyVaultCredentialSettingsResponse;
/**
* SQL IaaS Agent least privilege mode.
*/
readonly leastPrivilegeMode?: string;
/**
* The geo-location where the resource lives
*/
readonly location: string;
/**
* The name of the resource
*/
readonly name: string;
/**
* Operating System of the current SQL Virtual Machine.
*/
readonly osType: string;
/**
* Provisioning state to track the async operation status.
*/
readonly provisioningState: string;
/**
* SQL Server configuration management settings.
*/
readonly serverConfigurationsManagementSettings?: outputs.sqlvirtualmachine.ServerConfigurationsManagementSettingsResponse;
/**
* SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016.
*/
readonly sqlImageOffer?: string;
/**
* SQL Server edition type.
*/
readonly sqlImageSku?: string;
/**
* SQL Server Management type. NOTE: This parameter is not used anymore. API will automatically detect the Sql Management, refrain from using it.
*/
readonly sqlManagement?: string;
/**
* SQL Server license type.
*/
readonly sqlServerLicenseType?: string;
/**
* ARM resource id of the SQL virtual machine group this SQL virtual machine is or will be part of.
*/
readonly sqlVirtualMachineGroupResourceId?: string;
/**
* Storage Configuration Settings.
*/
readonly storageConfigurationSettings?: outputs.sqlvirtualmachine.StorageConfigurationSettingsResponse;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.sqlvirtualmachine.SystemDataResponse;
/**
* Resource tags.
*/
readonly tags?: {
[key: string]: string;
};
/**
* Troubleshooting status
*/
readonly troubleshootingStatus: outputs.sqlvirtualmachine.TroubleshootingStatusResponse;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
/**
* Virtual Machine Identity details used for Sql IaaS extension configurations.
*/
readonly virtualMachineIdentitySettings?: outputs.sqlvirtualmachine.VirtualMachineIdentityResponse;
/**
* ARM Resource id of underlying virtual machine created from SQL marketplace image.
*/
readonly virtualMachineResourceId?: string;
/**
* Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
*/
readonly wsfcDomainCredentials?: outputs.sqlvirtualmachine.WsfcDomainCredentialsResponse;
/**
* Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
*/
readonly wsfcStaticIp?: string;
}
/**
* Gets a SQL virtual machine.
*
* Uses Azure REST API version 2023-10-01.
*
* Other available API versions: 2022-02-01, 2022-07-01-preview, 2022-08-01-preview, 2023-01-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native sqlvirtualmachine [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getSqlVirtualMachineOutput(args: GetSqlVirtualMachineOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSqlVirtualMachineResult>;
export interface GetSqlVirtualMachineOutputArgs {
/**
* The child resources to include in the response.
*/
expand?: pulumi.Input<string>;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
/**
* Name of the SQL virtual machine.
*/
sqlVirtualMachineName: pulumi.Input<string>;
}