1. Packages
  2. Azure Native
  3. API Docs
  4. sql
  5. getDatabaseAdvisor
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.sql.getDatabaseAdvisor

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

Gets a database advisor.

Uses Azure REST API version 2023-08-01.

Other available API versions: 2014-04-01, 2015-05-01-preview, 2020-02-02-preview, 2020-08-01-preview, 2020-11-01-preview, 2021-02-01-preview, 2021-05-01-preview, 2021-08-01-preview, 2021-11-01, 2021-11-01-preview, 2022-02-01-preview, 2022-05-01-preview, 2022-08-01-preview, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native sql [ApiVersion]. See the version guide for details.

Using getDatabaseAdvisor

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getDatabaseAdvisor(args: GetDatabaseAdvisorArgs, opts?: InvokeOptions): Promise<GetDatabaseAdvisorResult>
function getDatabaseAdvisorOutput(args: GetDatabaseAdvisorOutputArgs, opts?: InvokeOptions): Output<GetDatabaseAdvisorResult>
Copy
def get_database_advisor(advisor_name: Optional[str] = None,
                         database_name: Optional[str] = None,
                         resource_group_name: Optional[str] = None,
                         server_name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetDatabaseAdvisorResult
def get_database_advisor_output(advisor_name: Optional[pulumi.Input[str]] = None,
                         database_name: Optional[pulumi.Input[str]] = None,
                         resource_group_name: Optional[pulumi.Input[str]] = None,
                         server_name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseAdvisorResult]
Copy
func LookupDatabaseAdvisor(ctx *Context, args *LookupDatabaseAdvisorArgs, opts ...InvokeOption) (*LookupDatabaseAdvisorResult, error)
func LookupDatabaseAdvisorOutput(ctx *Context, args *LookupDatabaseAdvisorOutputArgs, opts ...InvokeOption) LookupDatabaseAdvisorResultOutput
Copy

> Note: This function is named LookupDatabaseAdvisor in the Go SDK.

public static class GetDatabaseAdvisor 
{
    public static Task<GetDatabaseAdvisorResult> InvokeAsync(GetDatabaseAdvisorArgs args, InvokeOptions? opts = null)
    public static Output<GetDatabaseAdvisorResult> Invoke(GetDatabaseAdvisorInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDatabaseAdvisorResult> getDatabaseAdvisor(GetDatabaseAdvisorArgs args, InvokeOptions options)
public static Output<GetDatabaseAdvisorResult> getDatabaseAdvisor(GetDatabaseAdvisorArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:sql:getDatabaseAdvisor
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AdvisorName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Database Advisor.
DatabaseName
This property is required.
Changes to this property will trigger replacement.
string
The name of the database.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
ServerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the server.
AdvisorName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Database Advisor.
DatabaseName
This property is required.
Changes to this property will trigger replacement.
string
The name of the database.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
ServerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the server.
advisorName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Database Advisor.
databaseName
This property is required.
Changes to this property will trigger replacement.
String
The name of the database.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverName
This property is required.
Changes to this property will trigger replacement.
String
The name of the server.
advisorName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Database Advisor.
databaseName
This property is required.
Changes to this property will trigger replacement.
string
The name of the database.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverName
This property is required.
Changes to this property will trigger replacement.
string
The name of the server.
advisor_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Database Advisor.
database_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the database.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
server_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the server.
advisorName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Database Advisor.
databaseName
This property is required.
Changes to this property will trigger replacement.
String
The name of the database.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverName
This property is required.
Changes to this property will trigger replacement.
String
The name of the server.

getDatabaseAdvisor Result

The following output properties are available:

AdvisorStatus string
Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
AutoExecuteStatus string
Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
AutoExecuteStatusInheritedFrom string
Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level).
AzureApiVersion string
The Azure API version of the resource.
Id string
Resource ID.
Kind string
Resource kind.
LastChecked string
Gets the time when the current resource was analyzed for recommendations by this advisor.
Location string
Resource location.
Name string
Resource name.
RecommendationsStatus string
Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc.
RecommendedActions List<Pulumi.AzureNative.Sql.Outputs.RecommendedActionResponse>
Gets the recommended actions for this advisor.
Type string
Resource type.
AdvisorStatus string
Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
AutoExecuteStatus string
Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
AutoExecuteStatusInheritedFrom string
Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level).
AzureApiVersion string
The Azure API version of the resource.
Id string
Resource ID.
Kind string
Resource kind.
LastChecked string
Gets the time when the current resource was analyzed for recommendations by this advisor.
Location string
Resource location.
Name string
Resource name.
RecommendationsStatus string
Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc.
RecommendedActions []RecommendedActionResponse
Gets the recommended actions for this advisor.
Type string
Resource type.
advisorStatus String
Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
autoExecuteStatus String
Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
autoExecuteStatusInheritedFrom String
Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level).
azureApiVersion String
The Azure API version of the resource.
id String
Resource ID.
kind String
Resource kind.
lastChecked String
Gets the time when the current resource was analyzed for recommendations by this advisor.
location String
Resource location.
name String
Resource name.
recommendationsStatus String
Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc.
recommendedActions List<RecommendedActionResponse>
Gets the recommended actions for this advisor.
type String
Resource type.
advisorStatus string
Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
autoExecuteStatus string
Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
autoExecuteStatusInheritedFrom string
Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level).
azureApiVersion string
The Azure API version of the resource.
id string
Resource ID.
kind string
Resource kind.
lastChecked string
Gets the time when the current resource was analyzed for recommendations by this advisor.
location string
Resource location.
name string
Resource name.
recommendationsStatus string
Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc.
recommendedActions RecommendedActionResponse[]
Gets the recommended actions for this advisor.
type string
Resource type.
advisor_status str
Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
auto_execute_status str
Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
auto_execute_status_inherited_from str
Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level).
azure_api_version str
The Azure API version of the resource.
id str
Resource ID.
kind str
Resource kind.
last_checked str
Gets the time when the current resource was analyzed for recommendations by this advisor.
location str
Resource location.
name str
Resource name.
recommendations_status str
Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc.
recommended_actions Sequence[RecommendedActionResponse]
Gets the recommended actions for this advisor.
type str
Resource type.
advisorStatus String
Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
autoExecuteStatus String
Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
autoExecuteStatusInheritedFrom String
Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level).
azureApiVersion String
The Azure API version of the resource.
id String
Resource ID.
kind String
Resource kind.
lastChecked String
Gets the time when the current resource was analyzed for recommendations by this advisor.
location String
Resource location.
name String
Resource name.
recommendationsStatus String
Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc.
recommendedActions List<Property Map>
Gets the recommended actions for this advisor.
type String
Resource type.

Supporting Types

RecommendedActionErrorInfoResponse

ErrorCode This property is required. string
Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
IsRetryable This property is required. string
Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
ErrorCode This property is required. string
Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
IsRetryable This property is required. string
Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
errorCode This property is required. String
Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
isRetryable This property is required. String
Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
errorCode This property is required. string
Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
isRetryable This property is required. string
Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
error_code This property is required. str
Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
is_retryable This property is required. str
Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
errorCode This property is required. String
Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
isRetryable This property is required. String
Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No

RecommendedActionImpactRecordResponse

AbsoluteValue This property is required. double
Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
ChangeValueAbsolute This property is required. double
Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes
ChangeValueRelative This property is required. double
Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
DimensionName This property is required. string
Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
Unit This property is required. string
Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
AbsoluteValue This property is required. float64
Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
ChangeValueAbsolute This property is required. float64
Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes
ChangeValueRelative This property is required. float64
Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
DimensionName This property is required. string
Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
Unit This property is required. string
Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
absoluteValue This property is required. Double
Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
changeValueAbsolute This property is required. Double
Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes
changeValueRelative This property is required. Double
Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
dimensionName This property is required. String
Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
unit This property is required. String
Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
absoluteValue This property is required. number
Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
changeValueAbsolute This property is required. number
Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes
changeValueRelative This property is required. number
Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
dimensionName This property is required. string
Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
unit This property is required. string
Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
absolute_value This property is required. float
Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
change_value_absolute This property is required. float
Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes
change_value_relative This property is required. float
Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
dimension_name This property is required. str
Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
unit This property is required. str
Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
absoluteValue This property is required. Number
Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
changeValueAbsolute This property is required. Number
Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes
changeValueRelative This property is required. Number
Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
dimensionName This property is required. String
Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
unit This property is required. String
Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.

RecommendedActionImplementationInfoResponse

Method This property is required. string
Gets the method in which this recommended action can be manually implemented. e.g., TSql, AzurePowerShell.
Script This property is required. string
Gets the manual implementation script. e.g., T-SQL script that could be executed on the database.
Method This property is required. string
Gets the method in which this recommended action can be manually implemented. e.g., TSql, AzurePowerShell.
Script This property is required. string
Gets the manual implementation script. e.g., T-SQL script that could be executed on the database.
method This property is required. String
Gets the method in which this recommended action can be manually implemented. e.g., TSql, AzurePowerShell.
script This property is required. String
Gets the manual implementation script. e.g., T-SQL script that could be executed on the database.
method This property is required. string
Gets the method in which this recommended action can be manually implemented. e.g., TSql, AzurePowerShell.
script This property is required. string
Gets the manual implementation script. e.g., T-SQL script that could be executed on the database.
method This property is required. str
Gets the method in which this recommended action can be manually implemented. e.g., TSql, AzurePowerShell.
script This property is required. str
Gets the manual implementation script. e.g., T-SQL script that could be executed on the database.
method This property is required. String
Gets the method in which this recommended action can be manually implemented. e.g., TSql, AzurePowerShell.
script This property is required. String
Gets the manual implementation script. e.g., T-SQL script that could be executed on the database.

RecommendedActionMetricInfoResponse

MetricName This property is required. string
Gets the name of the metric. e.g., CPU, Number of Queries.
StartTime This property is required. string
Gets the start time of time interval given by this MetricInfo.
TimeGrain This property is required. string
Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour)
Unit This property is required. string
Gets the unit in which metric is measured. e.g., DTU, Frequency
Value This property is required. double
Gets the value of the metric in the time interval given by this MetricInfo.
MetricName This property is required. string
Gets the name of the metric. e.g., CPU, Number of Queries.
StartTime This property is required. string
Gets the start time of time interval given by this MetricInfo.
TimeGrain This property is required. string
Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour)
Unit This property is required. string
Gets the unit in which metric is measured. e.g., DTU, Frequency
Value This property is required. float64
Gets the value of the metric in the time interval given by this MetricInfo.
metricName This property is required. String
Gets the name of the metric. e.g., CPU, Number of Queries.
startTime This property is required. String
Gets the start time of time interval given by this MetricInfo.
timeGrain This property is required. String
Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour)
unit This property is required. String
Gets the unit in which metric is measured. e.g., DTU, Frequency
value This property is required. Double
Gets the value of the metric in the time interval given by this MetricInfo.
metricName This property is required. string
Gets the name of the metric. e.g., CPU, Number of Queries.
startTime This property is required. string
Gets the start time of time interval given by this MetricInfo.
timeGrain This property is required. string
Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour)
unit This property is required. string
Gets the unit in which metric is measured. e.g., DTU, Frequency
value This property is required. number
Gets the value of the metric in the time interval given by this MetricInfo.
metric_name This property is required. str
Gets the name of the metric. e.g., CPU, Number of Queries.
start_time This property is required. str
Gets the start time of time interval given by this MetricInfo.
time_grain This property is required. str
Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour)
unit This property is required. str
Gets the unit in which metric is measured. e.g., DTU, Frequency
value This property is required. float
Gets the value of the metric in the time interval given by this MetricInfo.
metricName This property is required. String
Gets the name of the metric. e.g., CPU, Number of Queries.
startTime This property is required. String
Gets the start time of time interval given by this MetricInfo.
timeGrain This property is required. String
Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour)
unit This property is required. String
Gets the unit in which metric is measured. e.g., DTU, Frequency
value This property is required. Number
Gets the value of the metric in the time interval given by this MetricInfo.

RecommendedActionResponse

Details This property is required. Dictionary<string, string>
Gets additional details specific to this recommended action.
ErrorDetails This property is required. Pulumi.AzureNative.Sql.Inputs.RecommendedActionErrorInfoResponse
Gets the error details if and why this recommended action is put to error state.
EstimatedImpact This property is required. List<Pulumi.AzureNative.Sql.Inputs.RecommendedActionImpactRecordResponse>
Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change
ExecuteActionDuration This property is required. string
Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation
ExecuteActionInitiatedBy This property is required. string
Gets if approval for applying this recommended action was given by user/system.
ExecuteActionInitiatedTime This property is required. string
Gets the time when this recommended action was approved for execution.
ExecuteActionStartTime This property is required. string
Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time
Id This property is required. string
Resource ID.
ImplementationDetails This property is required. Pulumi.AzureNative.Sql.Inputs.RecommendedActionImplementationInfoResponse
Gets the implementation details of this recommended action for user to apply it manually.
IsArchivedAction This property is required. bool
Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.
IsExecutableAction This property is required. bool
Gets if this recommended action is actionable by user
IsRevertableAction This property is required. bool
Gets if changes applied by this recommended action can be reverted by user
Kind This property is required. string
Resource kind.
LastRefresh This property is required. string
Gets time when this recommended action was last refreshed.
LinkedObjects This property is required. List<string>
Gets the linked objects, if any.
Location This property is required. string
Resource location.
Name This property is required. string
Resource name.
ObservedImpact This property is required. List<Pulumi.AzureNative.Sql.Inputs.RecommendedActionImpactRecordResponse>
Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change
RecommendationReason This property is required. string
Gets the reason for recommending this action. e.g., DuplicateIndex
RevertActionDuration This property is required. string
Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.
RevertActionInitiatedBy This property is required. string
Gets if approval for reverting this recommended action was given by user/system.
RevertActionInitiatedTime This property is required. string
Gets the time when this recommended action was approved for revert.
RevertActionStartTime This property is required. string
Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.
Score This property is required. int
Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact
State This property is required. Pulumi.AzureNative.Sql.Inputs.RecommendedActionStateInfoResponse
Gets the info of the current state the recommended action is in.
TimeSeries This property is required. List<Pulumi.AzureNative.Sql.Inputs.RecommendedActionMetricInfoResponse>
Gets the time series info of metrics for this recommended action e.g., CPU consumption time series
Type This property is required. string
Resource type.
ValidSince This property is required. string
Gets the time since when this recommended action is valid.
Details This property is required. map[string]string
Gets additional details specific to this recommended action.
ErrorDetails This property is required. RecommendedActionErrorInfoResponse
Gets the error details if and why this recommended action is put to error state.
EstimatedImpact This property is required. []RecommendedActionImpactRecordResponse
Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change
ExecuteActionDuration This property is required. string
Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation
ExecuteActionInitiatedBy This property is required. string
Gets if approval for applying this recommended action was given by user/system.
ExecuteActionInitiatedTime This property is required. string
Gets the time when this recommended action was approved for execution.
ExecuteActionStartTime This property is required. string
Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time
Id This property is required. string
Resource ID.
ImplementationDetails This property is required. RecommendedActionImplementationInfoResponse
Gets the implementation details of this recommended action for user to apply it manually.
IsArchivedAction This property is required. bool
Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.
IsExecutableAction This property is required. bool
Gets if this recommended action is actionable by user
IsRevertableAction This property is required. bool
Gets if changes applied by this recommended action can be reverted by user
Kind This property is required. string
Resource kind.
LastRefresh This property is required. string
Gets time when this recommended action was last refreshed.
LinkedObjects This property is required. []string
Gets the linked objects, if any.
Location This property is required. string
Resource location.
Name This property is required. string
Resource name.
ObservedImpact This property is required. []RecommendedActionImpactRecordResponse
Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change
RecommendationReason This property is required. string
Gets the reason for recommending this action. e.g., DuplicateIndex
RevertActionDuration This property is required. string
Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.
RevertActionInitiatedBy This property is required. string
Gets if approval for reverting this recommended action was given by user/system.
RevertActionInitiatedTime This property is required. string
Gets the time when this recommended action was approved for revert.
RevertActionStartTime This property is required. string
Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.
Score This property is required. int
Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact
State This property is required. RecommendedActionStateInfoResponse
Gets the info of the current state the recommended action is in.
TimeSeries This property is required. []RecommendedActionMetricInfoResponse
Gets the time series info of metrics for this recommended action e.g., CPU consumption time series
Type This property is required. string
Resource type.
ValidSince This property is required. string
Gets the time since when this recommended action is valid.
details This property is required. Map<String,String>
Gets additional details specific to this recommended action.
errorDetails This property is required. RecommendedActionErrorInfoResponse
Gets the error details if and why this recommended action is put to error state.
estimatedImpact This property is required. List<RecommendedActionImpactRecordResponse>
Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change
executeActionDuration This property is required. String
Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation
executeActionInitiatedBy This property is required. String
Gets if approval for applying this recommended action was given by user/system.
executeActionInitiatedTime This property is required. String
Gets the time when this recommended action was approved for execution.
executeActionStartTime This property is required. String
Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time
id This property is required. String
Resource ID.
implementationDetails This property is required. RecommendedActionImplementationInfoResponse
Gets the implementation details of this recommended action for user to apply it manually.
isArchivedAction This property is required. Boolean
Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.
isExecutableAction This property is required. Boolean
Gets if this recommended action is actionable by user
isRevertableAction This property is required. Boolean
Gets if changes applied by this recommended action can be reverted by user
kind This property is required. String
Resource kind.
lastRefresh This property is required. String
Gets time when this recommended action was last refreshed.
linkedObjects This property is required. List<String>
Gets the linked objects, if any.
location This property is required. String
Resource location.
name This property is required. String
Resource name.
observedImpact This property is required. List<RecommendedActionImpactRecordResponse>
Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change
recommendationReason This property is required. String
Gets the reason for recommending this action. e.g., DuplicateIndex
revertActionDuration This property is required. String
Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.
revertActionInitiatedBy This property is required. String
Gets if approval for reverting this recommended action was given by user/system.
revertActionInitiatedTime This property is required. String
Gets the time when this recommended action was approved for revert.
revertActionStartTime This property is required. String
Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.
score This property is required. Integer
Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact
state This property is required. RecommendedActionStateInfoResponse
Gets the info of the current state the recommended action is in.
timeSeries This property is required. List<RecommendedActionMetricInfoResponse>
Gets the time series info of metrics for this recommended action e.g., CPU consumption time series
type This property is required. String
Resource type.
validSince This property is required. String
Gets the time since when this recommended action is valid.
details This property is required. {[key: string]: string}
Gets additional details specific to this recommended action.
errorDetails This property is required. RecommendedActionErrorInfoResponse
Gets the error details if and why this recommended action is put to error state.
estimatedImpact This property is required. RecommendedActionImpactRecordResponse[]
Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change
executeActionDuration This property is required. string
Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation
executeActionInitiatedBy This property is required. string
Gets if approval for applying this recommended action was given by user/system.
executeActionInitiatedTime This property is required. string
Gets the time when this recommended action was approved for execution.
executeActionStartTime This property is required. string
Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time
id This property is required. string
Resource ID.
implementationDetails This property is required. RecommendedActionImplementationInfoResponse
Gets the implementation details of this recommended action for user to apply it manually.
isArchivedAction This property is required. boolean
Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.
isExecutableAction This property is required. boolean
Gets if this recommended action is actionable by user
isRevertableAction This property is required. boolean
Gets if changes applied by this recommended action can be reverted by user
kind This property is required. string
Resource kind.
lastRefresh This property is required. string
Gets time when this recommended action was last refreshed.
linkedObjects This property is required. string[]
Gets the linked objects, if any.
location This property is required. string
Resource location.
name This property is required. string
Resource name.
observedImpact This property is required. RecommendedActionImpactRecordResponse[]
Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change
recommendationReason This property is required. string
Gets the reason for recommending this action. e.g., DuplicateIndex
revertActionDuration This property is required. string
Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.
revertActionInitiatedBy This property is required. string
Gets if approval for reverting this recommended action was given by user/system.
revertActionInitiatedTime This property is required. string
Gets the time when this recommended action was approved for revert.
revertActionStartTime This property is required. string
Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.
score This property is required. number
Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact
state This property is required. RecommendedActionStateInfoResponse
Gets the info of the current state the recommended action is in.
timeSeries This property is required. RecommendedActionMetricInfoResponse[]
Gets the time series info of metrics for this recommended action e.g., CPU consumption time series
type This property is required. string
Resource type.
validSince This property is required. string
Gets the time since when this recommended action is valid.
details This property is required. Mapping[str, str]
Gets additional details specific to this recommended action.
error_details This property is required. RecommendedActionErrorInfoResponse
Gets the error details if and why this recommended action is put to error state.
estimated_impact This property is required. Sequence[RecommendedActionImpactRecordResponse]
Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change
execute_action_duration This property is required. str
Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation
execute_action_initiated_by This property is required. str
Gets if approval for applying this recommended action was given by user/system.
execute_action_initiated_time This property is required. str
Gets the time when this recommended action was approved for execution.
execute_action_start_time This property is required. str
Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time
id This property is required. str
Resource ID.
implementation_details This property is required. RecommendedActionImplementationInfoResponse
Gets the implementation details of this recommended action for user to apply it manually.
is_archived_action This property is required. bool
Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.
is_executable_action This property is required. bool
Gets if this recommended action is actionable by user
is_revertable_action This property is required. bool
Gets if changes applied by this recommended action can be reverted by user
kind This property is required. str
Resource kind.
last_refresh This property is required. str
Gets time when this recommended action was last refreshed.
linked_objects This property is required. Sequence[str]
Gets the linked objects, if any.
location This property is required. str
Resource location.
name This property is required. str
Resource name.
observed_impact This property is required. Sequence[RecommendedActionImpactRecordResponse]
Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change
recommendation_reason This property is required. str
Gets the reason for recommending this action. e.g., DuplicateIndex
revert_action_duration This property is required. str
Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.
revert_action_initiated_by This property is required. str
Gets if approval for reverting this recommended action was given by user/system.
revert_action_initiated_time This property is required. str
Gets the time when this recommended action was approved for revert.
revert_action_start_time This property is required. str
Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.
score This property is required. int
Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact
state This property is required. RecommendedActionStateInfoResponse
Gets the info of the current state the recommended action is in.
time_series This property is required. Sequence[RecommendedActionMetricInfoResponse]
Gets the time series info of metrics for this recommended action e.g., CPU consumption time series
type This property is required. str
Resource type.
valid_since This property is required. str
Gets the time since when this recommended action is valid.
details This property is required. Map<String>
Gets additional details specific to this recommended action.
errorDetails This property is required. Property Map
Gets the error details if and why this recommended action is put to error state.
estimatedImpact This property is required. List<Property Map>
Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change
executeActionDuration This property is required. String
Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation
executeActionInitiatedBy This property is required. String
Gets if approval for applying this recommended action was given by user/system.
executeActionInitiatedTime This property is required. String
Gets the time when this recommended action was approved for execution.
executeActionStartTime This property is required. String
Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time
id This property is required. String
Resource ID.
implementationDetails This property is required. Property Map
Gets the implementation details of this recommended action for user to apply it manually.
isArchivedAction This property is required. Boolean
Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.
isExecutableAction This property is required. Boolean
Gets if this recommended action is actionable by user
isRevertableAction This property is required. Boolean
Gets if changes applied by this recommended action can be reverted by user
kind This property is required. String
Resource kind.
lastRefresh This property is required. String
Gets time when this recommended action was last refreshed.
linkedObjects This property is required. List<String>
Gets the linked objects, if any.
location This property is required. String
Resource location.
name This property is required. String
Resource name.
observedImpact This property is required. List<Property Map>
Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change
recommendationReason This property is required. String
Gets the reason for recommending this action. e.g., DuplicateIndex
revertActionDuration This property is required. String
Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.
revertActionInitiatedBy This property is required. String
Gets if approval for reverting this recommended action was given by user/system.
revertActionInitiatedTime This property is required. String
Gets the time when this recommended action was approved for revert.
revertActionStartTime This property is required. String
Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.
score This property is required. Number
Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact
state This property is required. Property Map
Gets the info of the current state the recommended action is in.
timeSeries This property is required. List<Property Map>
Gets the time series info of metrics for this recommended action e.g., CPU consumption time series
type This property is required. String
Resource type.
validSince This property is required. String
Gets the time since when this recommended action is valid.

RecommendedActionStateInfoResponse

ActionInitiatedBy This property is required. string
Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it.
CurrentValue This property is required. string
Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action.
LastModified This property is required. string
Gets the time when the state was last modified
ActionInitiatedBy This property is required. string
Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it.
CurrentValue This property is required. string
Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action.
LastModified This property is required. string
Gets the time when the state was last modified
actionInitiatedBy This property is required. String
Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it.
currentValue This property is required. String
Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action.
lastModified This property is required. String
Gets the time when the state was last modified
actionInitiatedBy This property is required. string
Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it.
currentValue This property is required. string
Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action.
lastModified This property is required. string
Gets the time when the state was last modified
action_initiated_by This property is required. str
Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it.
current_value This property is required. str
Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action.
last_modified This property is required. str
Gets the time when the state was last modified
actionInitiatedBy This property is required. String
Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it.
currentValue This property is required. String
Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action.
lastModified This property is required. String
Gets the time when the state was last modified

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi