Redigera

Dela via


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