Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
317093c
Adds two parameters to restrict external sharing for agent identities…
Oct 5, 2025
2189266
Modify example for Add-SPOContainerTypeBilling
ShreyasSar26 Oct 7, 2025
325ba4e
Update Add-SPOContainerTypeBilling.md
ShreyasSar26 Oct 7, 2025
7eeb456
Modify example for Add-SPOContainerUser command
ShreyasSar26 Oct 7, 2025
d7c9bde
Fix ContainerId in Remove-SPOContainerUser example
ShreyasSar26 Oct 7, 2025
2085a3b
Modify example for Set-SPOContainerUser command
ShreyasSar26 Oct 7, 2025
ed267a4
Update Get-SPOContainer.md
ShreyasSar26 Oct 7, 2025
e51eaf7
Change ContainerTypeId in Get-SPOContainerType example
ShreyasSar26 Oct 7, 2025
1d0c8ba
Modify OwningApplicationId in cmdlet examples
ShreyasSar26 Oct 7, 2025
a1106c9
Merge branch 'main' into patch-1
ShreyasSar26 Oct 7, 2025
eca17ad
Refine examples in Get-SPOApplication.md
ShreyasSar26 Oct 7, 2025
a933f1d
Merge branch 'main' into patch-PS
ShreyasSar26 Oct 7, 2025
2352ed3
Modify Example 6 with updated ContainerTypeId
ShreyasSar26 Oct 7, 2025
f1c839c
Updates to the doc based on suggestions
Oct 7, 2025
67ea06a
Merge branch 'main' into user/anthonyfleck/SetSPOTenantUpdatesForAgents
anthonyfleck Oct 7, 2025
ca8043a
Simplify a bit further
Oct 7, 2025
49db00f
Merge pull request #1046 from anthonyfleck/user/anthonyfleck/SetSPOTe…
aditisrivastava07 Oct 8, 2025
f4aeff5
Merge branch 'main' into patch-1
aditisrivastava07 Oct 8, 2025
dfcfba4
Merge branch 'main' into patch-PS
aditisrivastava07 Oct 8, 2025
059913d
Merge pull request #1051 from ShreyasSar26/patch-1
aditisrivastava07 Oct 8, 2025
b1f56ef
Merge pull request #1052 from ShreyasSar26/patch-PS
aditisrivastava07 Oct 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -43,23 +43,23 @@ Example 1 returns all SharePoint Embedded applications registered in the specifi
### Example 2

```powershell
Get-SPOApplication -OwningApplicationId <OwningApplicationId>
Get-SPOApplication -OwningApplicationId 2ce03211-353e-45d7-b487-8ac6981332cf
```

Example 2 provides details about the application corresponding to the owning application Id in the specified tenant. It returns applications, which includes the list of guest application IDs with permissions to the owning application, as well as the SharingCapability settings, the `OverrideTenantSharingCapability` status and the list of all Copilot embedded chat host URLs.

### Example 3

```powershell
Get-SPOApplication -OwningApplicationId <OwningApplicationId> -ApplicationId <ApplicationId>
Get-SPOApplication -OwningApplicationId 2ce03211-353e-45d7-b487-8ac6981332cf -ApplicationId 12345678-1234-1234-abcd-abcdefghijkl
```

Example 3 enumerates app-only permissions of the guest application specified in `ApplicationId`.

### Example 4

```powershell
Get-SPOApplication -OwningApplicationId <OwningApplicationId> | Select-Object CopilotEmbeddedChatHosts
Get-SPOApplication -OwningApplicationId 2ce03211-353e-45d7-b487-8ac6981332cf | Select-Object CopilotEmbeddedChatHosts
```

Example 4 enumerates the entire list of the host URLs driving the Copilot embedded chat capability on the SharePoint Embedded application.
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
Loading