/// <summary> /// Deletes a Service Fabric service resource. /// </summary> /// <remarks> /// Delete a Service Fabric service resource with the specified name. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='clusterName'> /// The name of the cluster resource. /// </param> /// <param name='applicationName'> /// The name of the application resource. /// </param> /// <param name='serviceName'> /// The name of the service resource in the format of /// {applicationName}~{serviceName}. /// </param> public static void Delete(this IServicesOperations operations, string resourceGroupName, string clusterName, string applicationName, string serviceName) { operations.DeleteAsync(resourceGroupName, clusterName, applicationName, serviceName).GetAwaiter().GetResult(); }
/// <summary> /// Deletes the service. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='serviceTopologyName'> /// The name of the service topology . /// </param> /// <param name='serviceName'> /// The name of the service resource. /// </param> public static void Delete(this IServicesOperations operations, string resourceGroupName, string serviceTopologyName, string serviceName) { operations.DeleteAsync(resourceGroupName, serviceTopologyName, serviceName).GetAwaiter().GetResult(); }
/// <summary> /// Delete a Service. /// </summary> /// <remarks> /// Delete a specific Service. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// The Azure Subscription ID. /// </param> /// <param name='resourceGroup'> /// The Name of the resource group in which the workspace is located. /// </param> /// <param name='workspace'> /// The name of the workspace. /// </param> /// <param name='id'> /// The Service Id. /// </param> public static void Delete(this IServicesOperations operations, System.Guid subscriptionId, string resourceGroup, string workspace, string id) { operations.DeleteAsync(subscriptionId, resourceGroup, workspace, id).GetAwaiter().GetResult(); }
/// <summary> /// Deletes a Search service in the given resource group, along with its /// associated resources. /// <see href="https://aka.ms/search-manage" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the current subscription. You can /// obtain this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='searchServiceName'> /// The name of the Azure Search service associated with the specified resource /// group. /// </param> /// <param name='searchManagementRequestOptions'> /// Additional parameters for the operation /// </param> public static void Delete(this IServicesOperations operations, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions = default(SearchManagementRequestOptions)) { operations.DeleteAsync(resourceGroupName, searchServiceName, searchManagementRequestOptions).GetAwaiter().GetResult(); }
/// <summary> /// Delete DMS Service Instance /// </summary> /// <remarks> /// The services resource is the top-level resource that represents the /// Database Migration Service. The DELETE method deletes a service. Any /// running tasks will be canceled. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupName'> /// Name of the resource group /// </param> /// <param name='serviceName'> /// Name of the service /// </param> /// <param name='deleteRunningTasks'> /// Delete the resource even if it contains running tasks /// </param> public static void Delete(this IServicesOperations operations, string groupName, string serviceName, bool?deleteRunningTasks = default(bool?)) { operations.DeleteAsync(groupName, serviceName, deleteRunningTasks).GetAwaiter().GetResult(); }