Copy-AzSubnets

1.1.8

This script allows to clone existing subnets for Azure Virtual Network. It requires a new address space using which it creates duplicates of subnets by size and name (with prefix 'n-').


Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Copy-AzSubnets -RequiredVersion 1.1.8

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

groovy-sky

Package Details

Author(s)

  • groovy-sky

Tags

Azure Network VirtualNetwork Subnet

Functions

DivideSubnet DivideSubnetMultipleTimes findAvailableIPbyMask Test-IPAddressInRange ConvertTo-UInt32 AddNewSubnetsToVNetProperties Sort-IPRanges

Dependencies

This script has no dependencies.

Release Notes

Version 1.1.8 - Fixed array handling in findAvailableIPbyMask function to prevent InvalidRequestFormat errors
Version 1.1.7 - Updated IP allocation logic
Version 1.1.6 - Fixed null reference error in findAvailableIPbyMask function
Version 1.1.5 - Initial release with subnet copying functionality

FileList

Version History

Version Downloads Last updated
1.2.4 4 9/17/2025
1.2.3 4 9/17/2025
1.2.2 5 9/17/2025
1.1.9 4 9/17/2025
1.1.8 (current version) 6 9/17/2025
1.1.7 4 9/17/2025
1.1.6 4 9/17/2025
1.1.4 40 5/4/2025
1.1.3 8 4/28/2025
1.1.2 6 4/28/2025
1.1.1 9 4/28/2025
1.1.0 6 4/28/2025
1.0.9 6 4/28/2025
1.0.8 7 4/28/2025
1.0.7 7 4/28/2025
1.0.6 9 4/26/2025
1.0.5 10 4/24/2025
1.0.1 9 4/23/2025
1.0.0 8 4/23/2025
Show more