Commands › Microsoft Teams
New-CsTenantNetworkSubnet
Creates a new network subnet.
Quick start script
# New-CsTenantNetworkSubnet — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId
# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-CsTenantNetworkSubnet
$before | Format-List
# 3. Make the change (dry run first)
New-CsTenantNetworkSubnet -Identity <String> -MaskBits <Int32> -SubnetID <String> -WhatIf
New-CsTenantNetworkSubnet -Identity <String> -MaskBits <Int32> -SubnetID <String>
# 4. Verify and diff
$after = Get-CsTenantNetworkSubnet
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax — 2 parameter sets
Identity (Default)
New-CsTenantNetworkSubnet [-Identity] <string> -MaskBits <int> [-Description <string>]
[-NetworkSiteID <string>] [-WhatIf] [-Confirm] [<CommonParameters>]
ParentAndRelativeKey
New-CsTenantNetworkSubnet -MaskBits <int> -SubnetID <string> [-Description <string>]
[-NetworkSiteID <string>] [-WhatIf] [-Confirm] [<CommonParameters>]
Parameters (7)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.