Exemple #1
0
 /// <summary>
 /// Deletes a resource group.
 /// </summary>
 /// <remarks>
 /// When you delete a resource group, all of its resources are also deleted.
 /// Deleting a resource group deletes all of its template deployments and
 /// currently stored operations.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group to delete. The name is case insensitive.
 /// </param>
 public static void Delete(this IResourceGroupsOperations operations, string resourceGroupName)
 {
     operations.DeleteAsync(resourceGroupName).GetAwaiter().GetResult();
 }
Exemple #2
0
 /// <summary>
 /// Deletes a resource group.
 /// </summary>
 /// <remarks>
 /// When you delete a resource group, all of its resources are also deleted.
 /// Deleting a resource group deletes all of its template deployments and
 /// currently stored operations.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group to delete. The name is case insensitive.
 /// </param>
 /// <param name='forceDeletionTypes'>
 /// The resource types you want to force delete. Currently, only the following
 /// is supported:
 /// forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets
 /// </param>
 public static void Delete(this IResourceGroupsOperations operations, string resourceGroupName, string forceDeletionTypes = default(string))
 {
     operations.DeleteAsync(resourceGroupName, forceDeletionTypes).GetAwaiter().GetResult();
 }