/// <summary> /// List published versions of given Blueprint. /// </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> public static IPage <PublishedBlueprint> ListInSubscription(this IPublishedBlueprintsOperations operations, string subscriptionId, string blueprintName) { var scope = string.Format(Constants.ResourceScopes.SubscriptionScope, subscriptionId); return(operations.ListAsync(scope, blueprintName).GetAwaiter().GetResult()); }
/// <summary> /// List published versions of given blueprint definition. /// </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> /// <param name='blueprintName'> /// Name of the blueprint definition. /// </param> public static IPage <PublishedBlueprint> List(this IPublishedBlueprintsOperations operations, string scope, string blueprintName) { return(operations.ListAsync(scope, blueprintName).GetAwaiter().GetResult()); }
/// <summary> /// List published versions of given Blueprint. /// </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> public static IPage <PublishedBlueprint> ListInManagementGroup(this IPublishedBlueprintsOperations operations, string managementGroupName, string blueprintName) { var scope = string.Format(Constants.ResourceScopes.ManagementGroupScope, managementGroupName); return(operations.ListAsync(scope, blueprintName).GetAwaiter().GetResult()); }