[英]Can I find the amount of available IP addresses in an Azure subnet?
[英]Is there a way to print all IP Addresses in an azure subnet with Powershell?
我可以使用Get-AzureRmVirtualNetworkSubnetConfig來獲取子網配置,它具有AddressSpace的屬性。 它將字符串值輸出到空格,但是我找不到輸出每個IP地址的方法。 我正在尋找一種獲取地址空間中最后一個IP地址的方法。
試一下...
$network = Get-AzureRmVirtualNetwork -name 'some-vnet' -ResourceGroupName 'some-network-resourcegroup'
($network.SubnetsText | ConvertFrom-Json).IpConfigurations
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.