Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ For permissions and the most current information about Windows PowerShell for Sh
### Example 1

```powershell
Add-SPOContainerTypeBilling - ContainerTypeId aa1d89b3 -AzureSubscriptionId 5a8a4d9f -ResourceGroup "RG100" -Region "(US) East US"
Add-SPOContainerTypeBilling - ContainerTypeId 1ea46f96-515c-49b5-bac5-002c33a5fa0e -AzureSubscriptionId d32cba02-d63c-4202-ade5-2134b0c54fe -ResourceGroup "RG100" -Region "East US"
```

Example 1 attaches the billing profile of Azure subscription ID "5a8a4d9f", resource group "RG100" and region "(US) East US" to the container type ID "aa1d89b3".
Example 1 attaches the billing profile of Azure subscription ID "d32cba02-d63c-4202-ade5-2134b0c54fe", resource group "RG100" and region "East US" to the container type ID "1ea46f96-515c-49b5-bac5-002c33a5fa0e".

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ For permissions and the most current information about Windows PowerShell for Sh
### Example 1

```powershell
Add-SPOContainerUser 423poi45 -LoginName [email protected] -Role Owner
Add-SPOContainerUser b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_8U -LoginName [email protected] -Role Owner
```

Example 1 assigns the role of owner to user with User Principal Name "[email protected]".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,61 +85,61 @@ Example 1 returns the details of all the containers in the tenant.
### Example 2

```powershell
Get-SPOContainer -Identity b66f5b2e
Get-SPOContainer -Identity b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_8U
```

Example 2 returns the detailed properties of the Container with associated Container ID b66f5b2e.
Example 2 returns the detailed properties of the Container with associated Container ID b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_8U.

### Example 3

```powershell
Get-SPOContainer -OwningApplicationId 423poi45 | ft
Get-SPOContainer -OwningApplicationId 2ce03211-353e-45d7-b487-8ac6981332cf | ft
```
Example 3 returns a tabular list of Containers created under the SharePoint Embedded application with the `OwningApplicationId` of `423poi45`.
Example 3 returns a tabular list of Containers created under the SharePoint Embedded application with the `OwningApplicationId` of `2ce03211-353e-45d7-b487-8ac6981332cf`.

### Example 4

```powershell
Get-SPOContainer -OwningApplicationId 423poi45 -Paged | ft
Get-SPOContainer -OwningApplicationId 2ce03211-353e-45d7-b487-8ac6981332cf -Paged | ft
```
Example 4 uses the `-Paged` command to retrieve a paging token.

### Example 5

```powershell
Get-SPOContainer -OwningApplicationId 423poi45 -Paged -PagingToken <zacad> | ft
Get-SPOContainer -OwningApplicationId 2ce03211-353e-45d7-b487-8ac6981332cf -Paged -PagingToken <zacad> | ft
```

Example 5 uses the `-PagingToken` parameter along with the `-Paged` parameter to view more containers that were not displayed in Example 3.

### Example 6

```powershell
Get-SPOContainer -OwningApplicationId 423poi45 -SortByStorage Ascending
Get-SPOContainer -OwningApplicationId 2ce03211-353e-45d7-b487-8ac6981332cf -SortByStorage Ascending
```

Example 6 displays the containers belonging to the application, sorted in ascending order of storage.

### Example 7

```powershell
Get-SPOContainer -OwningApplicationId 423poi45 -SortByStorage Ascending -Paged
Get-SPOContainer -OwningApplicationId 2ce03211-353e-45d7-b487-8ac6981332cf -SortByStorage Ascending -Paged
```

Example 7 displays a paged view of the containers belonging to the application, sorted in ascending order of storage.

### Example 8

```powershell
Get-SPOContainer -OwningApplicationId 423poi45-as -SortByStorage Ascending -Paged -PagingToken <zacad>
Get-SPOContainer -OwningApplicationId 2ce03211-353e-45d7-b487-8ac6981332cf -SortByStorage Ascending -Paged -PagingToken <zacad>
```

Example 8 displays the next list of paged view of containers belonging to the application, sorted in ascending order of storage.

### Example 9

```powershell
Get-SPOContainer -OwningApplicationId 423poi45 -ArchiveStatus RecentlyArchived | ft
Get-SPOContainer -OwningApplicationId 2ce03211-353e-45d7-b487-8ac6981332cf -ArchiveStatus RecentlyArchived | ft
```

Example 9 returns a tabular list of recently archived containers belonging to the SharePoint Embedded application with the OwningApplicationId of 423poi45.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ Example 1 retrieves all the container types present in the tenant and displays c
### Example 2

```powershell
Get-SPOContainerType -ContainerTypeId 4f0af585
Get-SPOContainerType -ContainerTypeId 1ea46f96-515c-49b5-bac5-002c33a5fa0e
```

Example 2 returns the detailed properties of container type 4f0af585.
Example 2 returns the detailed properties of container type 1ea46f96-515c-49b5-bac5-002c33a5fa0e.

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,31 +35,31 @@ You must be a SharePoint Embedded Administrator to run this cmdlet.
### Example 1

```powershell
New-SPOContainerType -ContainerTypeName ContosoLegal -OwningApplicationId a735e4af
New-SPOContainerType -ContainerTypeName ContosoLegal -OwningApplicationId 2ce03211-353e-45d7-b487-8ac6981332cf
```

In Example 1, the cmdlet creates a new regular billed container type ContosoLegal.

### Example 2

```powershell
New-SPOContainerType –IsPassThroughBilling –ContainerTypeName ContosoLegal -OwningApplicationId a735e4af
New-SPOContainerType –IsPassThroughBilling –ContainerTypeName ContosoLegal -OwningApplicationId 2ce03211-353e-45d7-b487-8ac6981332ed
```

In Example 2, the cmdlet creates a direct to customer billed container type ContosoLegal.

### Example 3

```powershell
New-SPOContainerType –TrialContainerType -ContainerTypeName ContosoLegal -OwningApplicationId a735e4af
New-SPOContainerType –TrialContainerType -ContainerTypeName ContosoLegal -OwningApplicationId 2ce03211-353e-45d7-b487-8ac6981332fl
```

In Example 3, the cmdlet creates a trial container type, ContosoLegal, valid for 30 days.

### Example 4

```powershell
New-SPOContainerType -ContainerTypeName ContosoLegal -OwningApplicationId a735e4af -GovernableByAdmin $false
New-SPOContainerType -ContainerTypeName ContosoLegal -OwningApplicationId 2ce03211-353e-45d7-b487-8ac6981332cf -GovernableByAdmin $false
```

In Example 4, the cmdlet creates a standard container type, ContosoLegal that has opted out of management through Microsoft-enabled administrator platforms.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ For permissions and the most current information about Windows PowerShell for Sh
### Example 1

```powershell
Remove-SPOContainerUser 423poi45 -LoginName [email protected] -Role Owner
Remove-SPOContainerUser b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_8U -LoginName [email protected] -Role Owner
```

Example 1 removes the user with User Principal Name "[email protected]" from the role of an owner of container whose ContainerId is 423poi45 .
Example 1 removes the user with User Principal Name "[email protected]" from the role of an owner of container whose ContainerId is b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_8U .

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ Example 5 overrides the tenant-level `WhoCanShareAuthenticatedGuestAllowList` wi
### Example 6

```powershell
Set-SPOContainerTypeConfiguration -ContainerTypeId 4f0af585 -CopilotEmbeddedChatHosts "https://localhost:3000 https://contoso.sharepoint.com https://fabrikam.com"
Set-SPOContainerTypeConfiguration -ContainerTypeId 4f0af585-8dcc-0000-223d-661eb2c604e4 -CopilotEmbeddedChatHosts "https://localhost:3000 https://contoso.sharepoint.com https://fabrikam.com"
```
This example sets the host URLs for the container type with Id 4f0af585.
This example sets the host URLs for the container type with Id 4f0af585-8dcc-0000-223d-661eb2c604e4.

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ For permissions and the most current information about Windows PowerShell for Sh
### Example 1

```powershell
Set-SPOContainerUser 423poi45 -LoginName [email protected] -Role Manager
Set-SPOContainerUser b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_8U -LoginName [email protected] -Role Manager
```

Example 1 reassigns the role of User Principal Name "[email protected]" to manager.
Expand Down