/// <summary> /// Sets Server Active Directory only authentication property or updates an /// existing server Active Directory only authentication property. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='managedInstanceName'> /// The name of the managed instance. /// </param> /// <param name='parameters'> /// The required parameters for creating or updating an Active Directory only /// authentication property. /// </param> public static ManagedInstanceAzureADOnlyAuthentication CreateOrUpdate(this IManagedInstanceAzureADOnlyAuthenticationsOperations operations, string resourceGroupName, string managedInstanceName, ManagedInstanceAzureADOnlyAuthentication parameters) { return(operations.CreateOrUpdateAsync(resourceGroupName, managedInstanceName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Disables Azure Active Directory only authentication on a Azure SQL Managed Instance /// </summary> public Management.Sql.Models.ManagedInstanceAzureADOnlyAuthentication CreateOrUpdate(string resourceGroupName, string InstanceName, ManagedInstanceAzureADOnlyAuthentication parameters) { return(GetCurrentSqlClient().ManagedInstanceAzureADOnlyAuthentications.CreateOrUpdate(resourceGroupName, InstanceName, parameters)); }
/// <summary> /// Sets Server Active Directory only authentication property or updates an /// existing server Active Directory only authentication property. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='managedInstanceName'> /// The name of the managed instance. /// </param> /// <param name='parameters'> /// The required parameters for creating or updating an Active Directory only /// authentication property. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ManagedInstanceAzureADOnlyAuthentication> BeginCreateOrUpdateAsync(this IManagedInstanceAzureADOnlyAuthenticationsOperations operations, string resourceGroupName, string managedInstanceName, ManagedInstanceAzureADOnlyAuthentication parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }