400 InvalidServerAzureADOnlyAuthenticationParameter- L'utente ha tentato di impostare il parametro AzureADOnlyAuthentication su false, ma usare invece l'API azureADOnlyAuthentications.
400 InvalidManagedServerAADOnlyAuthTypePropertyName - Il tipo di autenticazione di Azure Active Directory del server gestito deve essere predefinito
400 InvalidManagedServerAADOnlyAuthNoAADAdminPropertyName - L'amministratore di AAD non è configurato, l'amministratore di AAD deve essere impostato prima di abilitare o disabilitare solo l'autenticazione AAD.
400 SubnetMissingRequiredDelegation: la subnet selezionata non è delegata per Istanza gestita di SQL.
404 ManagedInstanceNotInSubscriptionResourceGroup: l'istanza gestita specificata non esiste nel gruppo di risorse e nella sottoscrizione specificati.
404 SubscriptionNotFound - La sottoscrizione richiesta non è stata trovata.
404 ServerNotInSubscription - Il server specificato non esiste nella sottoscrizione specificata.
404 OperationIdNotFound - L'operazione con ID non esiste.
409 CannotCancelOperation: l'operazione di gestione si trova in uno stato che non può essere annullato.
409 OperationCancelled - L'operazione è stata annullata dall'utente.
409 OperationInterrupted - Impossibile completare l'operazione sulla risorsa perché è stata interrotta da un'altra operazione sulla stessa risorsa.
429 SubscriptionTooManyCreateUpdateRequests - Richieste oltre il numero massimo di richieste che possono essere elaborate dalle risorse disponibili.
429 SubscriptionTooManyRequests - Richieste oltre il numero massimo di richieste che possono essere elaborate dalle risorse disponibili.
429 SubscriptionTooManyCreateUpdateRequests - Richieste oltre il numero massimo di richieste che possono essere elaborate dalle risorse disponibili.
429 SubscriptionTooManyRequests - Richieste oltre il numero massimo di richieste che possono essere elaborate dalle risorse disponibili.
500 OperationTimedOut: timeout dell'operazione e rollback automatico. Ripetere l'operazione.
503 TooManyRequests - Richieste oltre il numero massimo di richieste che possono essere elaborate dalle risorse disponibili.
503 TooManyRequests - Richieste oltre il numero massimo di richieste che possono essere elaborate dalle risorse disponibili.
504 RequestTimeout : la richiesta di servizio ha superato il timeout consentito.
Esempio
Deletes Azure Active Directory only authentication object.
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/ManagedInstanceAzureADOnlyAuthDelete.json
// this example is just showing the usage of "ManagedInstanceAzureADOnlyAuthentications_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 ManagedInstanceAzureADOnlyAuthenticationResource created on azure
// for more information of creating ManagedInstanceAzureADOnlyAuthenticationResource, please refer to the document of ManagedInstanceAzureADOnlyAuthenticationResource
string subscriptionId = "00000000-1111-2222-3333-444444444444";
string resourceGroupName = "Default-SQL-SouthEastAsia";
string managedInstanceName = "managedInstance";
AuthenticationName authenticationName = AuthenticationName.Default;
ResourceIdentifier managedInstanceAzureADOnlyAuthenticationResourceId = ManagedInstanceAzureADOnlyAuthenticationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, managedInstanceName, authenticationName);
ManagedInstanceAzureADOnlyAuthenticationResource managedInstanceAzureADOnlyAuthentication = client.GetManagedInstanceAzureADOnlyAuthenticationResource(managedInstanceAzureADOnlyAuthenticationResourceId);
// invoke the operation
await managedInstanceAzureADOnlyAuthentication.DeleteAsync(WaitUntil.Completed);
Console.WriteLine("Succeeded");