/// <summary> /// Delete a Blueprint artifact. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='managementGroupName'> /// azure managementGroup name, which we save the blueprint to. /// </param> /// <param name='blueprintName'> /// name of the blueprint. /// </param> /// <param name='artifactName'> /// name of the artifact. /// </param> public static Artifact DeleteInManagementGroup(this IArtifactsOperations operations, string managementGroupName, string blueprintName, string artifactName) { var scope = string.Format(Constants.ResourceScopes.ManagementGroupScope, managementGroupName); return(operations.DeleteAsync(scope, blueprintName, artifactName).GetAwaiter().GetResult()); }
/// <summary> /// Delete a blueprint artifact. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='scope'> /// The scope of the resource. Valid scopes are: management group (format: /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), /// subscription (format: '/subscriptions/{subscriptionId}'). /// </param> /// <param name='blueprintName'> /// Name of the blueprint definition. /// </param> /// <param name='artifactName'> /// Name of the blueprint artifact. /// </param> public static Artifact Delete(this IArtifactsOperations operations, string scope, string blueprintName, string artifactName) { return(operations.DeleteAsync(scope, blueprintName, artifactName).GetAwaiter().GetResult()); }
/// <summary> /// Delete a Blueprint artifact. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// azure subscriptionId, which we save the blueprint to. /// </param> /// <param name='blueprintName'> /// name of the blueprint. /// </param> /// <param name='artifactName'> /// name of the artifact. /// </param> public static Artifact DeleteInSubscription(this IArtifactsOperations operations, string subscriptionId, string blueprintName, string artifactName) { var scope = string.Format(Constants.ResourceScopes.SubscriptionScope, subscriptionId); return(operations.DeleteAsync(scope, blueprintName, artifactName).GetAwaiter().GetResult()); }