Set-AzNetworkManagerIpamPool
Atualiza um pool do IPAM.
Sintaxe
Set-AzNetworkManagerIpamPool
-InputObject <PSIpamPool>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
O cmdlet Set-AzNetworkManagerIpamPool atualiza um pool do IPAM.
Exemplos
Exemplo 1
$ResourceGroupName = "testRG"
$NetworkManagerName = "testNM"
$IpamPoolName = "testPool"
$NewAddressPrefixes = @("10.0.0.0/15", "10.0.0.0/16")
$ipamPool = Get-AzNetworkManagerIpamPool -ResourceGroupName $ResourceGroupName -NetworkManagerName $NetworkManagerName -Name $IpamPoolName
$ipamPool.Properties.AddressPrefixes = [System.Collections.Generic.List[string]]$NewAddressPrefixes
Set-AzNetworkManagerIpamPool -InputObject $ipamPool
Location : eastus
Tags : {}
Properties : Microsoft.Azure.Commands.Network.Models.NetworkManager.PSIpamPoolProperties
TagsTable :
PropertiesText : {
"ProvisioningState": "Succeeded",
"Description": "Test description.",
"DisplayName": "allocationView test",
"ParentPoolName": "",
"IPAddressType": [
"IPv4"
],
"AddressPrefixes": [
"10.0.0.0/15",
"10.0.0.0/16"
]
}
Name : testPool
ResourceGroupName : testRG
NetworkManagerName : testNM
Type : Microsoft.Network/networkManagers/ipamPools
SystemData : Microsoft.Azure.Commands.Network.Models.NetworkManager.PSSystemData
SystemDataText : {
"CreatedBy": "test@email.com",
"CreatedByType": "User",
"CreatedAt": "2024-10-01T15:22:51.5180609Z",
"LastModifiedBy": "test@email.com",
"LastModifiedByType": "User",
"LastModifiedAt": "2024-10-03T14:22:22.7534287Z"
}
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Network/networkManagers/testNM/ipamPools/testPool
Atualize addressPrefixes do pool do IPAM.
Exemplo 2
$ResourceGroupName = "testRG"
$NetworkManagerName = "testNM"
$IpamPoolName = "testPool"
$NewDisplayName = "My Test Pool"
$ipamPool = Get-AzNetworkManagerIpamPool -ResourceGroupName $ResourceGroupName -NetworkManagerName $NetworkManagerName -Name $IpamPoolName
$ipamPool.Properties.DisplayName = $NewDisplayName
Set-AzNetworkManagerIpamPool -InputObject $ipamPool
Location : eastus
Tags : {}
Properties : Microsoft.Azure.Commands.Network.Models.NetworkManager.PSIpamPoolProperties
TagsTable :
PropertiesText : {
"ProvisioningState": "Succeeded",
"Description": "Test description.",
"DisplayName": "My Test Pool",
"ParentPoolName": "",
"IPAddressType": [
"IPv4"
],
"AddressPrefixes": [
"10.0.0.0/15",
"10.0.0.0/16"
]
}
Name : testPool
ResourceGroupName : testRG
NetworkManagerName : testNM
Type : Microsoft.Network/networkManagers/ipamPools
SystemData : Microsoft.Azure.Commands.Network.Models.NetworkManager.PSSystemData
SystemDataText : {
"CreatedBy": "test@email.com",
"CreatedByType": "User",
"CreatedAt": "2024-10-01T15:22:51.5180609Z",
"LastModifiedBy": "test@email.com",
"LastModifiedByType": "User",
"LastModifiedAt": "2024-10-03T14:48:24.9403689Z"
}
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Network/networkManagers/testNM/ipamPools/testPool
Dá ao pool do IPAM 'testPool' o nome de exibição de 'My Test Pool'
Parâmetros
-AsJob
Executar cmdlet em segundo plano
Tipo: | SwitchParameter |
Position: | Named |
Default value: | None |
Necessário: | False |
Aceitar entrada de pipeline: | False |
Aceitar carateres universais: | False |
-Confirm
Solicita confirmação antes de executar o cmdlet.
Tipo: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Necessário: | False |
Aceitar entrada de pipeline: | False |
Aceitar carateres universais: | False |
-DefaultProfile
As credenciais, a conta, o locatário e a assinatura usados para comunicação com o Azure.
Tipo: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Necessário: | False |
Aceitar entrada de pipeline: | False |
Aceitar carateres universais: | False |
-InputObject
O Pool do Ipam
Tipo: | PSIpamPool |
Position: | Named |
Default value: | None |
Necessário: | True |
Aceitar entrada de pipeline: | True |
Aceitar carateres universais: | False |
-WhatIf
Mostra o que aconteceria se o cmdlet fosse executado. O cmdlet não é executado.
Tipo: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Necessário: | False |
Aceitar entrada de pipeline: | False |
Aceitar carateres universais: | False |
Entradas
Saídas
Ligações Relacionadas
Colabore connosco no GitHub
A origem deste conteúdo pode ser encontrada no GitHub, onde também pode criar e rever problemas e pedidos Pull. Para mais informações, consulte o nosso guia do contribuidor.
Azure PowerShell