az sql mi start-stop-schedule
Manage the managed instance's start stop schedule.
Commands
Name | Description | Type | Status |
---|---|---|---|
az sql mi start-stop-schedule create |
Create the managed instance's Start/Stop schedule. |
Core | GA |
az sql mi start-stop-schedule delete |
Delete the managed instance's Start/Stop schedule. |
Core | GA |
az sql mi start-stop-schedule list |
List the managed instance's Start/Stop schedules. |
Core | GA |
az sql mi start-stop-schedule show |
Get the managed instance's Start/Stop schedule. |
Core | GA |
az sql mi start-stop-schedule update |
Update the managed instance's Start/Stop schedule. |
Core | GA |
az sql mi start-stop-schedule create
Create the managed instance's Start/Stop schedule.
az sql mi start-stop-schedule create --managed-instance --mi
--resource-group
[--description]
[--schedule-list]
[--timezone-id]
Examples
Create schedule for managed instance.
az sql mi start-stop-schedule create --mi miName -g resourceGroup --subscription subscriptionId --schedule-list "[{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}]"
Required Parameters
The name of the managed instance.
Name of the resource group.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
The description of the schedule.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
Schedule list. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
The time zone of the schedule.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
Default value: | UTC |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az sql mi start-stop-schedule delete
Delete the managed instance's Start/Stop schedule.
az sql mi start-stop-schedule delete [--ids]
[--managed-instance --mi]
[--resource-group]
[--subscription]
[--yes]
Examples
Delete a managed instance start stop schedule.
az sql mi start-stop-schedule delete --ids resourceId
az sql mi start-stop-schedule delete --mi miName -g resourceGroup --subscription subscriptionId
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The name of the managed instance.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of the resource group.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Do not prompt for confirmation.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az sql mi start-stop-schedule list
List the managed instance's Start/Stop schedules.
az sql mi start-stop-schedule list [--ids]
[--managed-instance --mi]
[--resource-group]
[--subscription]
Examples
Lists the managed instance's start stop schedule.
az sql mi start-stop-schedule list --ids resourceId
az sql mi start-stop-schedule list --mi miName -g resourceGroup --subscription subscriptionId
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The name of the managed instance.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of the resource group.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az sql mi start-stop-schedule show
Get the managed instance's Start/Stop schedule.
az sql mi start-stop-schedule show [--ids]
[--managed-instance --mi]
[--resource-group]
[--subscription]
Examples
Get the managed instance's start stop schedule.
az sql mi start-stop-schedule show --ids resourceId
az sql mi start-stop-schedule show --mi miName -g resourceGroup --subscription subscriptionId
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The name of the managed instance.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of the resource group.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az sql mi start-stop-schedule update
Update the managed instance's Start/Stop schedule.
az sql mi start-stop-schedule update [--add]
[--description]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--managed-instance --mi]
[--remove]
[--resource-group]
[--schedule-list]
[--set]
[--subscription]
[--timezone-id]
Examples
Update (override) the managed instance's start stop schedule.
az sql mi start-stop-schedule update --ids resourceId --schedule-list "[{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}]"
az sql mi start-stop-schedule update --mi miName -g resourceGroup --subscription subscriptionId --schedule-list "[{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}]"
Add schedule items to the managed instance's start stop schedule.
az sql mi start-stop-schedule update --ids resourceId --add schedule_list "{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}"
Remove schedule items from the managed instance's start stop schedule.
az sql mi start-stop-schedule update --ids resourceId --remove schedule_list index(0 based)
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>
.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
The description of the schedule.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The name of the managed instance.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Remove a property or an element from a list. Example: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
Name of the resource group.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Schedule list. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>
.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The time zone of the schedule.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |