204 ManagementServiceStartStopManagedInstanceScheduleNotFound - 지정된 관리되는 인스턴스에 대한 일정이 없습니다.
204 ManagementServiceStartStopManagedInstanceScheduleNameInvalid - 사용자가 'default'와 다른 일정 이름으로 시작/중지 일정의 CRUD 작업을 수행하려고 했습니다.
400 ManagementServiceStartStopManagedInstanceScheduleSmallTimespan - 두 연속 작업 사이의 시간은 1시간 미만입니다.
400 ManagementServiceStartStopManagedInstanceScheduleSubscriptionNotEnabledForFeature - 사용자가 적절한 구독 기능에 대한 구독 허용 목록을 지정하지 않고 시작/중지 기능을 사용하려고 했습니다.
400 ManagementServiceStartStopManagedInstanceScheduleNotSupportedOnSKU - 지정된 SKU에서 예약된 시작/중지 작업이 지원되지 않습니다.
400 ManagementServiceStopManagedInstanceHostedOnRdfePlatform - 2022년 11월 기능 웨이브로 실행되지 않는 인스턴스에서 실행 중지
400 StartStopOfManagedInstanceIsDisabled - 관리되는 인스턴스에서 시작 및 중지 작업을 사용할 수 없습니다.
400 ManagementServiceStartStopManagedInstanceScheduleFeatureDisabled - 사용자가 예약된 Azure SQL Managed Instance 시작/중지 기능을 사용하려고 했습니다. 이 기능은 사용하지 않도록 설정되었습니다.
400 ManagementServiceStartStopManagedInstanceScheduleOverlap - 일정 쌍에서 겹칩니다.
400 ManagementServiceStartStopManagedInstanceScheduleCreateOrUpdateRequestParametersInvalid - 요청 본문에 제공된 매개 변수 집합이 비어 있거나 잘못되었습니다.
400 ManagementServiceStartStopManagedInstanceScheduleCreateOrUpdateRequestTimeZoneInvalid - 제공된 표준 시간대 매개 변수가 잘못되었습니다.
400 ManagementServiceStartStopManagedInstanceScheduleCreateOrUpdateRequestScheduleInvalid - 제공된 시작/중지 일정이 잘못되었습니다. 일정 목록에 항목이 없거나 목록의 일부 항목에 잘못된 값이 있습니다.
404 ServerNotInSubscriptionResourceGroup - 지정된 서버가 지정된 리소스 그룹 및 구독에 없습니다.
404 SubscriptionDoesNotHaveServer - 요청된 서버를 찾을 수 없습니다.
404 ResourceNotFound - 요청된 리소스를 찾을 수 없습니다.
404 ManagementServiceStartStopManagedInstanceScheduleNameInvalid - 사용자가 'default'와 다른 일정 이름으로 시작/중지 일정의 CRUD 작업을 수행하려고 했습니다.
409 ManagementServiceStartStopManagedInstanceScheduleConflictingOperation - Azure SQL Managed Instance에서 시작/중지 일정의 만들기/업데이트/삭제 작업이 실패했습니다. 일정이 만들어지지 않았거나 진행 중인 예약 작업으로 사용 중이었기 때문에 업데이트/삭제할 수 없습니다. 나중에 요청을 다시 시도하세요.
예제
Deletes the managed instance's Start/Stop schedule.
using Azure;
using Azure.ResourceManager;
using System;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.Sql.Models;
using Azure.ResourceManager.Sql;
// Generated from example definition: specification/sql/resource-manager/Microsoft.Sql/stable/2023-08-01/examples/StartStopManagedInstanceScheduleDelete.json
// this example is just showing the usage of "StartStopManagedInstanceSchedules_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this ManagedInstanceStartStopScheduleResource created on azure
// for more information of creating ManagedInstanceStartStopScheduleResource, please refer to the document of ManagedInstanceStartStopScheduleResource
string subscriptionId = "00000000-1111-2222-3333-444444444444";
string resourceGroupName = "schedulerg";
string managedInstanceName = "schedulemi";
ManagedInstanceStartStopScheduleName startStopScheduleName = ManagedInstanceStartStopScheduleName.Default;
ResourceIdentifier managedInstanceStartStopScheduleResourceId = ManagedInstanceStartStopScheduleResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, managedInstanceName, startStopScheduleName);
ManagedInstanceStartStopScheduleResource managedInstanceStartStopSchedule = client.GetManagedInstanceStartStopScheduleResource(managedInstanceStartStopScheduleResourceId);
// invoke the operation
await managedInstanceStartStopSchedule.DeleteAsync(WaitUntil.Completed);
Console.WriteLine("Succeeded");