204 ManagementServiceStartStopManagedInstanceScheduleNotFound - Schedule n’existe pas pour une instance managée donnée.
204 ManagementServiceStartStopManagedInstanceScheduleNameInvalid : l’utilisateur a tenté d’effectuer l’opération CRUD de la planification Start/Stop avec un nom de planification différent de « default »
400 ManagementServiceStartStopManagedInstanceScheduleSmallTimespan : l’heure entre deux actions successives est inférieure à 1 heure.
400 ManagementServiceStartStopManagedInstanceScheduleSubscriptionNotEnabledForFeature - L’utilisateur a tenté d’utiliser la fonctionnalité Start/Stop sans avoir l’abonnement autorisé pour la fonctionnalité d’abonnement appropriée.
400 ManagementServiceStartStopManagedInstanceScheduleNotSupportedOnSKU - L’opération de démarrage/arrêt planifiée n’est pas prise en charge sur la référence SKU donnée.
400 ManagementServiceStopManagedInstanceHostedOnRdfePlatform - Arrêter l’exécution sur l’instance qui n’est pas en cours d’exécution avec Feature Wave novembre 2022
400 StartStopOfManagedInstanceIsDisabled : l’opération de démarrage et d’arrêt sur l’instance managée n’est pas activée.
400 ManagementServiceStartStopManagedInstanceScheduleFeatureDisabled : l’utilisateur a tenté d’utiliser la fonctionnalité Start/Stop Azure SQL Managed Instance planifiée, qui est désactivée.
400 ManagementServiceStartStopManagedInstanceScheduleOverlap - Chevauchement dans les paires de planifications.
400 ManagementServiceStartStopManagedInstanceScheduleCreateOrUpdateRequestParametersInvalid : l’ensemble de paramètres fourni dans le corps de la requête est vide ou non valide.
400 ManagementServiceStartStopManagedInstanceScheduleCreateOrUpdateRequestTimeZoneInvalid : le paramètre de fuseau horaire fourni n’est pas valide.
400 ManagementServiceStartStopManagedInstanceScheduleCreateOrUpdateRequestScheduleInvalid : la planification start/stop fournie n’est pas valide. La planification ne contient aucun élément dans la liste de planification ou certains des éléments de la liste ont des valeurs non valides.
404 ServerNotInSubscriptionResourceGroup : le serveur spécifié n’existe pas dans le groupe de ressources et l’abonnement spécifiés.
404 SubscriptionDoesNotHaveServer - Le serveur demandé est introuvable
404 ResourceNotFound : la ressource demandée est introuvable.
404 ManagementServiceStartStopManagedInstanceScheduleNameInvalid : l’utilisateur a tenté d’effectuer l’opération CRUD de la planification Start/Stop avec un nom de planification différent de « default »
409 ManagementServiceStartStopManagedInstanceScheduleConflictingOperation : l’opération de création/mise à jour/suppression de l’opération Start/Stop sur Azure SQL Managed Instance a échoué. La planification n’a pas été créée ou n’a pas pu être mise à jour/supprimée, car elle était occupée avec une opération planifiée en cours. Réessayez votre demande ultérieurement.
Exemples
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");