|
| 1 | +--- |
| 2 | +external help file: sharepointonline.xml |
| 3 | +Module Name: Microsoft.Online.SharePoint.PowerShell |
| 4 | +online version: https://learn.microsoft.com/powershell/module/sharepoint-online/new-spocontainertype |
| 5 | +applicable: SharePoint Online |
| 6 | +title: New-SPOContainerType |
| 7 | +schema: 2.0.0 |
| 8 | +author: ShreyasSar26 |
| 9 | +ms.author: shsaravanan |
| 10 | +ms.reviewer: |
| 11 | +--- |
| 12 | + |
| 13 | +# New-SPOContainerType |
| 14 | + |
| 15 | +## SYNOPSIS |
| 16 | + |
| 17 | +This cmdlet creates a new container type of standard or trial status. The standard container type can be created with the regular billing structure or direct to customer billing structure. |
| 18 | + |
| 19 | +## SYNTAX |
| 20 | + |
| 21 | +### ParamSet1 |
| 22 | + |
| 23 | +```powershell |
| 24 | +New-SPOContainerType –ContainerTypeName <ContainerTypeName> -OwningApplicationId <OwningApplicationId> -AzureSubscriptionId <AzureSubscriptionId> -ResourceGroup <ResourceGroup> -Region <Region> |
| 25 | +``` |
| 26 | + |
| 27 | +### ParamSet2 |
| 28 | + |
| 29 | +```powershell |
| 30 | +New-SPOContainerType -ContainerTypeName <ContainerTypeName> -OwningApplicationId <OwningApplicationId> -IsPassThroughBilling |
| 31 | +``` |
| 32 | + |
| 33 | +### ParamSet3 |
| 34 | +```powershell |
| 35 | +New-SPOContainerType –TrialContainerType -ContainerTypeName <ContainerTypeName> -OwningApplicationId <OwningApplicationId> |
| 36 | +``` |
| 37 | + |
| 38 | +## DESCRIPTION |
| 39 | + |
| 40 | +This cmdlet creates a new container type of the standard or trial status. A trial container type does not have a billing profile associated with it and has a validity of 30 days. A standard container type has a billing profile associated with it. With the use of `-IsPassThroughBilling`, we can create a direct to customer billed container type. |
| 41 | + |
| 42 | +You must be a SharePoint Embedded Administrator to run this cmdlet. |
| 43 | + |
| 44 | + |
| 45 | +## EXAMPLES |
| 46 | + |
| 47 | +### Example 1 |
| 48 | + |
| 49 | +```powershell |
| 50 | +New-SPOContainerType -ContainerTypeName ContosoLegal -OwningApplicationId a735e4af-b86e-0000-93ba-1faded6c39e1 -AzureSubscriptionId 564e9025-f7f5-xxx9-9ddd-4cdxxxx1755 -ResourceGroup prod-resources -Region EastUS |
| 51 | +``` |
| 52 | +In Example 1, the cmdlet creates a new container type 'ContosoLegal' that is standard billed and is attached to the billing profile mentioned. |
| 53 | + |
| 54 | +### Example 2 |
| 55 | +```powershell |
| 56 | +New-SPOContainerType –TrialContainerType - ContosoLegal -OwningApplicationId a735e4af-b86e-0000-93ba-1faded6c39e1 |
| 57 | +``` |
| 58 | + |
| 59 | +In Example 2, the cmdlet creates a trial container type, 'ContosoLegal', valid for 30 days. |
| 60 | + |
| 61 | +## PARAMETERS |
| 62 | + |
| 63 | +### -ContainerTypeName |
| 64 | + |
| 65 | +This parameter names your container type for your SharePoint Embedded application. |
| 66 | + |
| 67 | +```yaml |
| 68 | +Type: String |
| 69 | +Parameter Sets: (All) |
| 70 | +Aliases: |
| 71 | +Applicable: SharePoint Online |
| 72 | + |
| 73 | +Required: True |
| 74 | +Position: Named |
| 75 | +Default value: None |
| 76 | +Accept pipeline input: False |
| 77 | +Accept wildcard characters: False |
| 78 | +``` |
| 79 | +
|
| 80 | +### -OwningApplicationId |
| 81 | +
|
| 82 | +This parameter specifies the ID of the SharePoint Embedded application. |
| 83 | +
|
| 84 | +```yaml |
| 85 | +Type: String |
| 86 | +Parameter Sets: |
| 87 | +Aliases: |
| 88 | +Applicable: SharePoint Online |
| 89 | + |
| 90 | +Required: True |
| 91 | +Position: Named |
| 92 | +Default value: None |
| 93 | +Accept pipeline input: False |
| 94 | +Accept wildcard characters: False |
| 95 | +``` |
| 96 | +
|
| 97 | +### -AzureSubscriptionId |
| 98 | +
|
| 99 | +This parameter describes the Azure subscription ID to which the container type needs to be associated. |
| 100 | +
|
| 101 | +```yaml |
| 102 | +Type: String |
| 103 | +Parameter Sets: |
| 104 | +Aliases: |
| 105 | +Applicable: SharePoint Online |
| 106 | + |
| 107 | +Required: False |
| 108 | +Position: Named |
| 109 | +Default value: None |
| 110 | +Accept pipeline input: False |
| 111 | +Accept wildcard characters: False |
| 112 | +``` |
| 113 | +
|
| 114 | +
|
| 115 | +### -ResourceGroup |
| 116 | +
|
| 117 | +This parameter describes the resource group to be used for the associated container type. |
| 118 | +
|
| 119 | +```yaml |
| 120 | +Type: String |
| 121 | +Parameter Sets: |
| 122 | +Aliases: |
| 123 | +Applicable: SharePoint Online |
| 124 | + |
| 125 | +Required: False |
| 126 | +Position: Named |
| 127 | +Default value: None |
| 128 | +Accept pipeline input: False |
| 129 | +Accept wildcard characters: False |
| 130 | +``` |
| 131 | +
|
| 132 | +### -Region |
| 133 | +
|
| 134 | +This parameter describes the region to which the billing profile of the container type is associated with. |
| 135 | +
|
| 136 | +```yaml |
| 137 | +Type: String |
| 138 | +Parameter Sets: ParamSet2, ParamSet3 |
| 139 | +Aliases: |
| 140 | +Applicable: SharePoint Online |
| 141 | + |
| 142 | +Required: False |
| 143 | +Position: Named |
| 144 | +Default value: None |
| 145 | +Accept pipeline input: False |
| 146 | +Accept wildcard characters: False |
| 147 | +``` |
| 148 | +
|
| 149 | +### –TrialContainerType |
| 150 | +This parameter is used to specify that the cmdlet is used to create a trial container type and thereby the billing profile need not be provided. |
| 151 | +
|
| 152 | +```yaml |
| 153 | +Type: String |
| 154 | +Parameter Sets: |
| 155 | +Aliases: |
| 156 | +Applicable: SharePoint Online |
| 157 | + |
| 158 | +Required: False |
| 159 | +Position: Named |
| 160 | +Default value: None |
| 161 | +Accept pipeline input: False |
| 162 | +Accept wildcard characters: False |
| 163 | +``` |
| 164 | +
|
| 165 | +### –IsPassThroughBilling |
| 166 | +This parameter is used to create a direct to customer billed container type. |
| 167 | +
|
| 168 | +```yaml |
| 169 | +Type: String |
| 170 | +Parameter Sets: |
| 171 | +Aliases: |
| 172 | +Applicable: SharePoint Online |
| 173 | + |
| 174 | +Required: False |
| 175 | +Position: Named |
| 176 | +Default value: None |
| 177 | +Accept pipeline input: False |
| 178 | +Accept wildcard characters: False |
| 179 | +``` |
| 180 | +
|
| 181 | +
|
| 182 | +## RELATED LINKS |
| 183 | +
|
| 184 | +[Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online) |
| 185 | +
|
| 186 | +[Get-SPOContainerType](./Get-SPOContainerType.md) |
| 187 | +
|
| 188 | +[Set-SPOContainerType](./Set-SPOContainerType.md) |
| 189 | +
|
| 190 | +[Remove-SPOContainerType](./Remove-SPOContainerType.md) |
0 commit comments