azure-native-v2.sql.ServerAdvisor
Explore with Pulumi AI
Database, Server or Elastic Pool Advisor. Azure REST API version: 2021-11-01. Prior API version in Azure Native 1.x: 2020-11-01-preview.
Other available API versions: 2014-04-01, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview.
Create ServerAdvisor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServerAdvisor(name: string, args: ServerAdvisorArgs, opts?: CustomResourceOptions);
@overload
def ServerAdvisor(resource_name: str,
args: ServerAdvisorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServerAdvisor(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_execute_status: Optional[AutoExecuteStatus] = None,
resource_group_name: Optional[str] = None,
server_name: Optional[str] = None,
advisor_name: Optional[str] = None)
func NewServerAdvisor(ctx *Context, name string, args ServerAdvisorArgs, opts ...ResourceOption) (*ServerAdvisor, error)
public ServerAdvisor(string name, ServerAdvisorArgs args, CustomResourceOptions? opts = null)
public ServerAdvisor(String name, ServerAdvisorArgs args)
public ServerAdvisor(String name, ServerAdvisorArgs args, CustomResourceOptions options)
type: azure-native:sql:ServerAdvisor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ServerAdvisorArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. ServerAdvisorArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ServerAdvisorArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ServerAdvisorArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. ServerAdvisorArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var serverAdvisorResource = new AzureNative.Sql.ServerAdvisor("serverAdvisorResource", new()
{
AutoExecuteStatus = "Enabled",
ResourceGroupName = "string",
ServerName = "string",
AdvisorName = "string",
});
example, err := sql.NewServerAdvisor(ctx, "serverAdvisorResource", &sql.ServerAdvisorArgs{
AutoExecuteStatus: "Enabled",
ResourceGroupName: "string",
ServerName: "string",
AdvisorName: "string",
})
var serverAdvisorResource = new ServerAdvisor("serverAdvisorResource", ServerAdvisorArgs.builder()
.autoExecuteStatus("Enabled")
.resourceGroupName("string")
.serverName("string")
.advisorName("string")
.build());
server_advisor_resource = azure_native.sql.ServerAdvisor("serverAdvisorResource",
auto_execute_status=Enabled,
resource_group_name=string,
server_name=string,
advisor_name=string)
const serverAdvisorResource = new azure_native.sql.ServerAdvisor("serverAdvisorResource", {
autoExecuteStatus: "Enabled",
resourceGroupName: "string",
serverName: "string",
advisorName: "string",
});
type: azure-native:sql:ServerAdvisor
properties:
advisorName: string
autoExecuteStatus: Enabled
resourceGroupName: string
serverName: string
ServerAdvisor Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ServerAdvisor resource accepts the following input properties:
- Auto
Execute Status This property is required. Pulumi.Azure Native. Sql. Auto Execute Status - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- 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.
- The name of the server.
- Advisor
Name Changes to this property will trigger replacement.
- The name of the Server Advisor.
- Auto
Execute Status This property is required. AutoExecute Status - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- 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.
- The name of the server.
- Advisor
Name Changes to this property will trigger replacement.
- The name of the Server Advisor.
- auto
Execute Status This property is required. AutoExecute Status - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- 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.
- The name of the server.
- advisor
Name Changes to this property will trigger replacement.
- The name of the Server Advisor.
- auto
Execute Status This property is required. AutoExecute Status - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- 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.
- The name of the server.
- advisor
Name Changes to this property will trigger replacement.
- The name of the Server Advisor.
- auto_
execute_ status This property is required. AutoExecute Status - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- 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.
- The name of the server.
- advisor_
name Changes to this property will trigger replacement.
- The name of the Server Advisor.
- auto
Execute Status This property is required. "Enabled" | "Disabled" | "Default" - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- 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.
- The name of the server.
- advisor
Name Changes to this property will trigger replacement.
- The name of the Server Advisor.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerAdvisor resource produces the following output properties:
- Advisor
Status string - Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
- Auto
Execute stringStatus Inherited From - 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).
- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- Resource kind.
- Last
Checked string - Gets the time when the current resource was analyzed for recommendations by this advisor.
- Location string
- Resource location.
- Name string
- Resource name.
- Recommendations
Status 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.
- Recommended
Actions List<Pulumi.Azure Native. Sql. Outputs. Recommended Action Response> - Gets the recommended actions for this advisor.
- Type string
- Resource type.
- Advisor
Status string - Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
- Auto
Execute stringStatus Inherited From - 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).
- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- Resource kind.
- Last
Checked string - Gets the time when the current resource was analyzed for recommendations by this advisor.
- Location string
- Resource location.
- Name string
- Resource name.
- Recommendations
Status 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.
- Recommended
Actions []RecommendedAction Response - Gets the recommended actions for this advisor.
- Type string
- Resource type.
- advisor
Status String - Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
- auto
Execute StringStatus Inherited From - 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).
- id String
- The provider-assigned unique ID for this managed resource.
- kind String
- Resource kind.
- last
Checked String - Gets the time when the current resource was analyzed for recommendations by this advisor.
- location String
- Resource location.
- name String
- Resource name.
- recommendations
Status 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.
- recommended
Actions List<RecommendedAction Response> - Gets the recommended actions for this advisor.
- type String
- Resource type.
- advisor
Status string - Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
- auto
Execute stringStatus Inherited From - 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).
- id string
- The provider-assigned unique ID for this managed resource.
- kind string
- Resource kind.
- last
Checked string - Gets the time when the current resource was analyzed for recommendations by this advisor.
- location string
- Resource location.
- name string
- Resource name.
- recommendations
Status 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.
- recommended
Actions RecommendedAction Response[] - 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_ strstatus_ inherited_ from - 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).
- id str
- The provider-assigned unique ID for this managed resource.
- 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[RecommendedAction Response] - Gets the recommended actions for this advisor.
- type str
- Resource type.
- advisor
Status String - Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
- auto
Execute StringStatus Inherited From - 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).
- id String
- The provider-assigned unique ID for this managed resource.
- kind String
- Resource kind.
- last
Checked String - Gets the time when the current resource was analyzed for recommendations by this advisor.
- location String
- Resource location.
- name String
- Resource name.
- recommendations
Status 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.
- recommended
Actions List<Property Map> - Gets the recommended actions for this advisor.
- type String
- Resource type.
Supporting Types
AutoExecuteStatus, AutoExecuteStatusArgs
- Enabled
- Enabled
- Disabled
- Disabled
- Default
- Default
- Auto
Execute Status Enabled - Enabled
- Auto
Execute Status Disabled - Disabled
- Auto
Execute Status Default - Default
- Enabled
- Enabled
- Disabled
- Disabled
- Default
- Default
- Enabled
- Enabled
- Disabled
- Disabled
- Default
- Default
- ENABLED
- Enabled
- DISABLED
- Disabled
- DEFAULT
- Default
- "Enabled"
- Enabled
- "Disabled"
- Disabled
- "Default"
- Default
RecommendedActionErrorInfoResponse, RecommendedActionErrorInfoResponseArgs
- Error
Code This property is required. string - Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
- Is
Retryable 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. string - Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
- Is
Retryable 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. String - Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
- is
Retryable 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. string - Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
- is
Retryable 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
- error
Code This property is required. String - Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
- is
Retryable This property is required. String - Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
RecommendedActionImpactRecordResponse, RecommendedActionImpactRecordResponseArgs
- Absolute
Value This property is required. double - Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
- Change
Value Absolute This property is required. double - 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. double - Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
- Dimension
Name 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. float64 - Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
- Change
Value Absolute This property is required. float64 - 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. float64 - Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
- Dimension
Name 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. Double - Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
- change
Value Absolute This property is required. Double - 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. Double - Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
- dimension
Name 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. number - Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
- change
Value Absolute This property is required. number - 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. number - Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
- dimension
Name 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.
- absolute
Value This property is required. Number - Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
- change
Value Absolute This property is required. Number - 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. Number - Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
- dimension
Name 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, RecommendedActionImplementationInfoResponseArgs
RecommendedActionMetricInfoResponse, RecommendedActionMetricInfoResponseArgs
- Metric
Name This property is required. string - Gets the name of the metric. e.g., CPU, Number of Queries.
- Start
Time This property is required. string - Gets the start time of time interval given by this MetricInfo.
- Time
Grain 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.
- Metric
Name This property is required. string - Gets the name of the metric. e.g., CPU, Number of Queries.
- Start
Time This property is required. string - Gets the start time of time interval given by this MetricInfo.
- Time
Grain 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.
- metric
Name This property is required. String - Gets the name of the metric. e.g., CPU, Number of Queries.
- start
Time This property is required. String - Gets the start time of time interval given by this MetricInfo.
- time
Grain 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.
- metric
Name This property is required. string - Gets the name of the metric. e.g., CPU, Number of Queries.
- start
Time This property is required. string - Gets the start time of time interval given by this MetricInfo.
- time
Grain 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.
- metric
Name This property is required. String - Gets the name of the metric. e.g., CPU, Number of Queries.
- start
Time This property is required. String - Gets the start time of time interval given by this MetricInfo.
- time
Grain 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, RecommendedActionResponseArgs
- Details
This property is required. Dictionary<string, object> - Gets additional details specific to this recommended action.
- Error
Details This property is required. Pulumi.Azure Native. Sql. Inputs. Recommended Action Error Info Response - Gets the error details if and why this recommended action is put to error state.
- Estimated
Impact This property is required. List<Pulumi.Azure Native. Sql. Inputs. Recommended Action Impact Record Response> - 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. string - 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. string - Gets if approval for applying this recommended action was given by user/system.
- Execute
Action Initiated Time This property is required. string - Gets the time when this recommended action was approved for execution.
- Execute
Action Start Time 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.
- Implementation
Details This property is required. Pulumi.Azure Native. Sql. Inputs. Recommended Action Implementation Info Response - 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. string - Resource kind.
- Last
Refresh This property is required. string - Gets time when this recommended action was last refreshed.
- Linked
Objects 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.
- Observed
Impact This property is required. List<Pulumi.Azure Native. Sql. Inputs. Recommended Action Impact Record Response> - 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. string - Gets the reason for recommending this action. e.g., DuplicateIndex
- Revert
Action Duration 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.
- Revert
Action Initiated By This property is required. string - Gets if approval for reverting this recommended action was given by user/system.
- Revert
Action Initiated Time This property is required. string - Gets the time when this recommended action was approved for revert.
- Revert
Action Start Time 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.Azure Native. Sql. Inputs. Recommended Action State Info Response - Gets the info of the current state the recommended action is in.
- Time
Series This property is required. List<Pulumi.Azure Native. Sql. Inputs. Recommended Action Metric Info Response> - 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.
- Valid
Since This property is required. string - Gets the time since when this recommended action is valid.
- Details
This property is required. map[string]interface{} - Gets additional details specific to this recommended action.
- Error
Details This property is required. RecommendedAction Error Info Response - Gets the error details if and why this recommended action is put to error state.
- Estimated
Impact This property is required. []RecommendedAction Impact Record Response - 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. string - 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. string - Gets if approval for applying this recommended action was given by user/system.
- Execute
Action Initiated Time This property is required. string - Gets the time when this recommended action was approved for execution.
- Execute
Action Start Time 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.
- Implementation
Details This property is required. RecommendedAction Implementation Info Response - 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. string - Resource kind.
- Last
Refresh This property is required. string - Gets time when this recommended action was last refreshed.
- Linked
Objects 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.
- Observed
Impact This property is required. []RecommendedAction Impact Record Response - 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. string - Gets the reason for recommending this action. e.g., DuplicateIndex
- Revert
Action Duration 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.
- Revert
Action Initiated By This property is required. string - Gets if approval for reverting this recommended action was given by user/system.
- Revert
Action Initiated Time This property is required. string - Gets the time when this recommended action was approved for revert.
- Revert
Action Start Time 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. RecommendedAction State Info Response - Gets the info of the current state the recommended action is in.
- Time
Series This property is required. []RecommendedAction Metric Info Response - 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.
- Valid
Since This property is required. string - Gets the time since when this recommended action is valid.
- details
This property is required. Map<String,Object> - Gets additional details specific to this recommended action.
- error
Details This property is required. RecommendedAction Error Info Response - Gets the error details if and why this recommended action is put to error state.
- estimated
Impact This property is required. List<RecommendedAction Impact Record Response> - 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. String - 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. String - Gets if approval for applying this recommended action was given by user/system.
- execute
Action Initiated Time This property is required. String - Gets the time when this recommended action was approved for execution.
- execute
Action Start Time 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.
- implementation
Details This property is required. RecommendedAction Implementation Info Response - Gets the implementation details of this recommended action for user to apply it manually.
- is
Archived Action 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.
- is
Executable Action This property is required. Boolean - Gets if this recommended action is actionable by user
- is
Revertable Action 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.
- last
Refresh This property is required. String - Gets time when this recommended action was last refreshed.
- linked
Objects 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.
- observed
Impact This property is required. List<RecommendedAction Impact Record Response> - 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. String - Gets the reason for recommending this action. e.g., DuplicateIndex
- revert
Action Duration 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.
- revert
Action Initiated By This property is required. String - Gets if approval for reverting this recommended action was given by user/system.
- revert
Action Initiated Time This property is required. String - Gets the time when this recommended action was approved for revert.
- revert
Action Start Time 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. RecommendedAction State Info Response - Gets the info of the current state the recommended action is in.
- time
Series This property is required. List<RecommendedAction Metric Info Response> - 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.
- valid
Since This property is required. String - Gets the time since when this recommended action is valid.
- details
This property is required. {[key: string]: any} - Gets additional details specific to this recommended action.
- error
Details This property is required. RecommendedAction Error Info Response - Gets the error details if and why this recommended action is put to error state.
- estimated
Impact This property is required. RecommendedAction Impact Record Response[] - 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. string - 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. string - Gets if approval for applying this recommended action was given by user/system.
- execute
Action Initiated Time This property is required. string - Gets the time when this recommended action was approved for execution.
- execute
Action Start Time 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.
- implementation
Details This property is required. RecommendedAction Implementation Info Response - Gets the implementation details of this recommended action for user to apply it manually.
- is
Archived Action 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.
- is
Executable Action This property is required. boolean - Gets if this recommended action is actionable by user
- is
Revertable Action 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.
- last
Refresh This property is required. string - Gets time when this recommended action was last refreshed.
- linked
Objects 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.
- observed
Impact This property is required. RecommendedAction Impact Record Response[] - 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. string - Gets the reason for recommending this action. e.g., DuplicateIndex
- revert
Action Duration 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.
- revert
Action Initiated By This property is required. string - Gets if approval for reverting this recommended action was given by user/system.
- revert
Action Initiated Time This property is required. string - Gets the time when this recommended action was approved for revert.
- revert
Action Start Time 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. RecommendedAction State Info Response - Gets the info of the current state the recommended action is in.
- time
Series This property is required. RecommendedAction Metric Info Response[] - 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.
- valid
Since This property is required. string - Gets the time since when this recommended action is valid.
- details
This property is required. Mapping[str, Any] - Gets additional details specific to this recommended action.
- error_
details This property is required. RecommendedAction Error Info Response - Gets the error details if and why this recommended action is put to error state.
- estimated_
impact This property is required. Sequence[RecommendedAction Impact Record Response] - 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. RecommendedAction Implementation Info Response - 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[RecommendedAction Impact Record Response] - 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. RecommendedAction State Info Response - Gets the info of the current state the recommended action is in.
- time_
series This property is required. Sequence[RecommendedAction Metric Info Response] - 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<Any> - Gets additional details specific to this recommended action.
- error
Details This property is required. Property Map - Gets the error details if and why this recommended action is put to error state.
- estimated
Impact 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
- execute
Action Duration This property is required. String - 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. String - Gets if approval for applying this recommended action was given by user/system.
- execute
Action Initiated Time This property is required. String - Gets the time when this recommended action was approved for execution.
- execute
Action Start Time 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.
- implementation
Details This property is required. Property Map - Gets the implementation details of this recommended action for user to apply it manually.
- is
Archived Action 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.
- is
Executable Action This property is required. Boolean - Gets if this recommended action is actionable by user
- is
Revertable Action 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.
- last
Refresh This property is required. String - Gets time when this recommended action was last refreshed.
- linked
Objects 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.
- observed
Impact 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
- recommendation
Reason This property is required. String - Gets the reason for recommending this action. e.g., DuplicateIndex
- revert
Action Duration 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.
- revert
Action Initiated By This property is required. String - Gets if approval for reverting this recommended action was given by user/system.
- revert
Action Initiated Time This property is required. String - Gets the time when this recommended action was approved for revert.
- revert
Action Start Time 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.
- time
Series 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.
- valid
Since This property is required. String - Gets the time since when this recommended action is valid.
RecommendedActionStateInfoResponse, RecommendedActionStateInfoResponseArgs
- Action
Initiated By 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.
- Current
Value 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.
- Last
Modified This property is required. string - Gets the time when the state was last modified
- Action
Initiated By 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.
- Current
Value 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.
- Last
Modified This property is required. string - Gets the time when the state was last modified
- action
Initiated By 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.
- current
Value 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.
- last
Modified This property is required. String - Gets the time when the state was last modified
- action
Initiated By 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.
- current
Value 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.
- last
Modified 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
- action
Initiated By 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.
- current
Value 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.
- last
Modified This property is required. String - Gets the time when the state was last modified
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:sql:ServerAdvisor CreateIndex /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advisors/{advisorName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0