ProvisionSample/Program.cs
/// <summary>
/// Gets a list of Power BI Embedded workspaces within the specified collection
/// </summary>
/// <param name="workspaceCollectionName">The Power BI workspace collection name</param>
/// <returns></returns>
Gets a list of Power BI Embedded workspaces within the specified collection
Gets a list of Power BI Embedded workspaces within the specified collection
static async Task<IEnumerable<Workspace>> GetWorkspaces(string workspaceCollectionName)
        {
            using (var client = await CreateClient())
            {
                var response = await client.Workspaces.GetWorkspacesByCollectionNameAsync(workspaceCollectionName);
                return response.Value;
            }
        }
static async Task < IEnumerable < Workspace > > GetWorkspaces ( string workspaceCollectionName ) { using ( var client = await CreateClient ( ) ) { var response = await client . Workspaces . GetWorkspacesByCollectionNameAsync ( workspaceCollectionName ) ; return response . Value ; } }
Gets a list of Power BI Embedded workspaces within the specified collection
Gets a list of Power BI Embedded workspaces within the specified collection
None
workspaceCollectionName
string
The Power BI workspace collection name
The Power BI workspace collection name