/// <summary>
        /// Create or update blueprint definition.
        /// </summary>
        /// <param name='operations'>
        /// The operations group for this extension method.
        /// </param>
        /// <param name='subscriptionId'>
        /// azure subscriptionId, which we save the blueprint to.
        /// </param>
        public static IPage <BlueprintModel> ListInSubscription(this IBlueprintsOperations operations, string subscriptionId)
        {
            var scope = string.Format(Constants.ResourceScopes.SubscriptionScope, subscriptionId);

            return(operations.ListAsync(scope).GetAwaiter().GetResult());
        }
 /// <summary>
 /// List blueprint definitions.
 /// </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}'). For blueprint
 /// assignments management group scope is reserved for future use.
 /// </param>
 public static IPage <BlueprintModel> List(this IBlueprintsOperations operations, string scope)
 {
     return(operations.ListAsync(scope).GetAwaiter().GetResult());
 }
        /// <summary>
        /// Create or update blueprint definition.
        /// </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>
        public static IPage <BlueprintModel> ListInManagementGroup(this IBlueprintsOperations operations, string managementGroupName)
        {
            var scope = string.Format(Constants.ResourceScopes.ManagementGroupScope, managementGroupName);

            return(operations.ListAsync(scope).GetAwaiter().GetResult());
        }