你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Get-AzSqlInstanceStartStopSchedule

Get start/stop schedule for Azure SQL Managed Instance

Syntax

Get-AzSqlInstanceStartStopSchedule
   -InstanceName <String>
   [-ResourceGroupName] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzSqlInstanceStartStopSchedule
   -InstanceModel <AzureSqlManagedInstanceModel>
   [-ResourceGroupName] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get start/stop schedule for Azure SQL Managed Instance

Examples

Example 1

Get-AzSqlInstanceStartStopSchedule -InstanceName instance-name -ResourceGroupName rg-name

Description TimeZoneId                   ScheduleList
----------- ----------                   ------------
            Central Europe Standard Time {Microsoft.Azure.Commands.Sql.ManagedInstanceSchedule.Model.ScheduleItem}

Gets start/stop schedule for instance-name in rg-name resource group.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InstanceModel

Instance model input object.

Type:AzureSqlManagedInstanceModel
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-InstanceName

The name of the Azure SQL Managed Instance

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ResourceGroupName

The name of the resource group.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

AzureSqlManagedInstanceModel

Outputs

AzureSqlManagedInstanceScheduleModel