NetScaler VPX 12-1
Gracias por los comentarios

Este artículo ha sido traducido automáticamente. (Aviso legal)

Scripts de PowerShell adicionales para la implementación de Azure

Esta sección proporciona los cmdlets de PowerShell con los que puede realizar las siguientes configuraciones en Azure PowerShell:

  • Aprovisionar una instancia independiente de Citrix ADC VPX
  • Aprovisione un par de Citrix ADC VPX en una configuración de alta disponibilidad con un equilibrador de carga externo de Azure
  • Aprovisione un par Citrix ADC VPX en una configuración de alta disponibilidad con el equilibrador de carga interno de Azure

Consulte también los temas siguientes para las configuraciones que puede realizar mediante comandos de PowerShell:

Aprovisionar una instancia independiente de Citrix ADC VPX

  1. Crear un grupo de recursos

    El grupo de recursos puede incluir todos los recursos de la solución o solo los recursos que desee administrar como grupo. La ubicación especificada aquí es la ubicación predeterminada de los recursos de ese grupo de recursos. Asegúrese de que todos los comandos para crear un equilibrador de carga utilizan el mismo grupo de recursos.

    $rgName="\<resource group name\>" $locName="\<location name, such as West US\>" New-AzureRmResourceGroup -Name $rgName -Location $locName

    Por ejemplo:

    $rgName = "ARM-VPX" $locName = "West US" New-AzureRmResourceGroup -Name $rgName -Location $locName
  2. Crear una cuenta de almacenamiento

    Elija un nombre único para su cuenta de almacenamiento que contenga solo letras y números minúsculas.

    $saName="\<storage account name\>" $saType="\<storage account type, specify one: Standard\_LRS, Standard\_GRS, Standard\_RAGRS, or Premium\_LRS\>" New-AzureRmStorageAccount -Name $saName -ResourceGroupName $rgName -Type $saType -Location $locName

    Por ejemplo:

    $saName="vpxstorage" $saType="Standard\_LRS" New-AzureRmStorageAccount -Name $saName -ResourceGroupName $rgName -Type $saType -Location $locName
  3. Crear un conjunto de disponibilidad

    El conjunto de disponibilidad ayuda a mantener las máquinas virtuales disponibles durante el tiempo de inactividad, como durante el mantenimiento. Un equilibrador de carga configurado con un conjunto de disponibilidad garantiza que la aplicación esté siempre disponible.

    $avName="\<availability set name\>" New-AzureRmAvailabilitySet -Name $avName -ResourceGroupName $rgName -Location $locName
  4. Crear una red virtual

    Agregue una nueva red virtual con al menos una subred, si la subred no se creó previamente.

    $FrontendAddressPrefix="10.0.1.0/24" $BackendAddressPrefix="10.0.2.0/24" $vnetAddressPrefix="10.0.0.0/16" $frontendSubnet=New-AzureRmVirtualNetworkSubnetConfig -Name frontendSubnet -AddressPrefix $FrontendAddressPrefix $backendSubnet=New-AzureRmVirtualNetworkSubnetConfig -Name backendSubnet -AddressPrefix $BackendAddressPrefix New-AzureRmVirtualNetwork -Name TestNet -ResourceGroupName $rgName -Location $locName -AddressPrefix $vnetAddressPrefix -Subnet $frontendSubnet,$backendSubnet

    Por ejemplo:

    $frontendSubnet=New-AzureRmVirtualNetworkSubnetConfig -Name frontendSubnet -AddressPrefix $FrontendAddressPrefix $backendSubnet=New-AzureRmVirtualNetworkSubnetConfig -Name backendSubnet -AddressPrefix $BackendAddressPrefix New-AzureRmVirtualNetwork -Name TestNet -ResourceGroupName $rgName -Location $locName -AddressPrefix $vnetAddressPrefix -Subnet $frontendSubnet,$backendSubnet
  5. Crear una NIC

    Cree una NIC y asocie la NIC con la instancia de Citrix ADC VPX. La subred front-end creada en el procedimiento anterior se indexa en 0 y la subred back-end se indexa en 1. Ahora cree NIC de una de las tres maneras siguientes:

    • NIC con dirección IP pública

      ``` $nicName=”<name of the NIC of the VM>”

      $pip = New-AzureRmPublicIpAddress -Name $nicName -ResourceGroupName $rgName -Location $locName -AllocationMethod Dynamic

      $nic = New-AzureRmNetworkInterface -Name $nicName -ResourceGroupName $rgName -Location $locName -SubnetId $vnet.Subnets[$subnetIndex].Id -PublicIpAddressId $pip.Id

    -  NIC with Public IP and DNS label

    
        $nicName="\<nombre de la NIC de la VM\>"
    
        $domName="\<etiqueta de nombre de dominio\>"
    
        $pip = New-AzureRmPublicIpAddress -Nombre $nicName -NombreGrupoRecursos $rgName -EtiquetaNombreDominio $domName -Ubicación $locName -MétodoAsignación Dinámico
    
     Before assigning `$domName`, check it is available or not by using command:
    

         Prueba-AzureRmDnsAvailability -DomainQualifiedName $domName -Ubicación $locName
    
         $nic = New-AzureRmNetworkInterface -Nombre $nicName -NombreGrupoRecursos $rgName -Ubicación $locName -IdSubred $vnet.Subredes\[$subnetIndex\].Id -IdDirecciónIpPública $pip.Id
    
     For example:
    

    
    
      $nicName="frontendNIC"
        
      $domName="vpxazure"
        
      $pip = New-AzureRmPublicIpAddress -Name $nicName -ResourceGroupName $rgName -DomainNameLabel $domName -Location $locName -AllocationMethod Dynamic
        
      $nic = New-AzureRmNetworkInterface -Name $nicName -ResourceGroupName $rgName -Location $locName -SubnetId $vnet.Subnets\[0\].Id -PublicIpAddressId $pip.Id
    
    • NIC with Dynamic Public Address and Static Private IP address*

      Make sure that the private (static) IP address you add to the VM should be the same range as that of the subnet specified.

         $nicName="\<nombre de la NIC de la VM\>"
    
         $staticIP="\<dirección IP estática disponible en la subred\>"
    
         $pip = New-AzureRmPublicIpAddress -Nombre $nicName -ResourceGroupName $rgName -Ubicación $locName -AllocationMethod Dinámico
    
         $nic = New-AzureRmNetworkInterface -Nombre $nicName -NombreGrupoRecursos $rgName -Ubicación $locName -IdSubred $vnet.Subredes\[$subnetIndex\].Id -IdDirecciónIpPública $pip.Id -DirecciónIpPrivada $staticIP
    
    
  6. Create a virtual object

$vmName=”<VM name>”

$vmSize=”<VM size string>”

$avSet=Get-AzureRmAvailabilitySet -Name $avName -ResourceGroupName $rgName

$vm=New-AzureRmVMConfig -VMName $vmName -VMSize $vmSize -AvailabilitySetId $avset.Id

  1. Get the Citrix ADC VPX image

$pubName=”<Image publisher name>”

$offerName=”<Image offer name>”

$skuName=”<Image SKU name>”

$cred=Get-Credential -Message “Type the name and password of the local administrator account.”

Provide your credentials that is used to login into VPX

$vm=Set-AzureRmVMOperatingSystem -VM $vm -Linux -ComputerName $vmName -Credential $cred -Verbose

$vm=Set-AzureRmVMSourceImage -VM $vm -PublisherName $pubName -Offer $offerName -Skus $skuName -Version “latest”

$vm=Add-AzureRmVMNetworkInterface -VM $vm -Id $nic.Id

For example:

$pubName="citrix"

The following command is used for displaying all offers from Citrix:

Get-AzureRMVMImageOffer -Ubicación \$locName -Editor \$pubName | Seleccionar oferta

$offerName="netscalervpx110-6531"

The following command is used to know sku offered by publisher for specific offer name:

Get-AzureRMVMImageSku -Location $locName -Publisher $pubName -Offer $offerName Select Skus
  1. Create a virtual machine

$diskName=”<name identifier for the disk in Azure storage, such as OSDisk>”

For example:

$diskName="dinámico"

$pubName="citrix"

$offerName="netscalervpx110-6531"

$skuName="escalador de red"

$storageAcc= Obtener-AzureRmStorageAccount - NombreGrupoRecursos $rgName - Nombre $saName

$osDiskUri=$storageAcc.Puntos finales primarios.Blob.ToString() + "vhds/" + $diskName+ ".vhd"

$vm= Establecer-AzureRmVMOSDisk -VM $vm -Nombre $diskName -VhdUri $osDiskUri -CreateOption desdeImagen

When you create VM from Images present in marketplace, use the following command to specify the VM plan:

Set-AzureRmVMPlan -VM $vm -Publisher $pubName -Product $offerName -Name $skuName

New-AzureRmVM -ResourceGroupName $rgName -Location $locName -VM $vm

Provision a Citrix ADC VPX pair in a high availabilty setup with an Azure external load balancer

Log on to AzureRmAccount using your Azure user credentials.

1) Create a resource group

The location specified here is the default location for resources in that resource group. Make sure that all commands used to create a load balancer use the same resource group.

$rgName=”<resource group name>”

$locName=”<location name, such as West US>”

New-AzureRmResourceGroup -Name $rgName -Location $locName

For example:


$rgName = "BRAZO-LB-NS"

$locName = "Oeste de EE. UU."

New-AzureRmResourceGroup -Nombre $rgName -Ubicación $locName

2) Create a storage account

Choose a unique name for your storage account that contains only lowercase letters and numbers.

$saName=”<storage account name>”

$saType=”<storage account type, specify one: Standard_LRS, Standard_GRS, Standard_RAGRS, or Premium_LRS>”

New-AzureRmStorageAccount -Name $saName -ResourceGroupName $rgName -Type $saType -Location $locName

For example:


$saName="almacenamiento vpx"

$saType="Estándar\_LRS"

Nueva cuenta de almacenamiento de AzureRm - Nombre $saName - Nombre del grupo de recursos $rgName - Tipo $saType - Ubicación $locName

3) Create an availability set

A load balancer configured with an availability set ensures that your application is always available.

$avName=”<availability set name>”

New-AzureRmAvailabilitySet -Name $avName -ResourceGroupName $rgName -Location $locName

4) Create a virtual network

Add a new virtual network with at least one subnet, if the subnet was not created previously.


$vnetName = "LBVnet"

$FrontendAddressPrefix="10.0.1.0/24"

$BackendAddressPrefix="10.0.2.0/24"

$vnetAddressPrefix="10.0.0.0/16"

$frontendSubnet=New-AzureRmVirtualNetworkSubnetConfig -Nombre frontendSubnet -PrefijoDirección$FrontendAddressPrefix

$backendSubnet=New-AzureRmVirtualNetworkSubnetConfig -Nombre backendSubnet -PrefijoDirección$BackendAddressPrefix

$vnet=New-AzureRmVirtualNetwork -Nombre $vnetName -NombreGrupoRecursos $rgName -Ubicación $locName -PrefijoDirección $vnetAddressPrefix-Subred $frontendSubnet,$backendSubnet

Note:

Choose the AddressPrefix parameter value as per your requirement.

Assign front end and back end subnet to the virtual network that you created earlier in this step.

If the front end subnet is the first element of array vnet, subnetId should be $vnet.Subnets[0].Id.

If the front end subnet is the second element in the array, the subnetId should be $vnet.Subnets[1].Id, and so on..

5)     Configure front end IP address and create back end address pool

Configure a front end IP address for the incoming load balancer network traffic and create a back end address pool to receive the load balanced traffic.

$pubName="IpPúblico1"

$publicIP1 = New-AzureRmPublicIpAddress -Nombre $pubName-NombreGrupoRecursos $rgName -Ubicación $locName -MétodoAsignaciónEstático -EtiquetaNombreDominio nsvpx

Note: Check for the availability of the value for DomainNameLabel.


$FIPName = "ELBFIP"

$frontendIP1 = New-AzureRmLoadBalancerFrontendIpConfig -Nombre $FIPName -DirecciónIpPública $publicIP1

$BEPool = "Grupo de backend LB"

$beaddresspool1= Nuevo-AzureRmLoadBalancerBackendAddressPoolConfig -Nombre $BEPool

8) Create a health probe

Create a TCP health probe with port 9000 and interval 5 seconds.

$healthProbe = New-AzureRmLoadBalancerProbeConfig -Nombre HealthProbe -Protocolo Tcp -Puerto 9000 -IntervaloEnSegundos 5 -ConteoDeProbe 2

9)     Create a load balancing rule

Create a LB rule for each service that you are load balancing.

For example:

You can use the following example to load balance http service.

$lbrule1 = New-AzureRmLoadBalancerRuleConfig -Nombre "HTTP-LB" -ConfiguraciónIpDeFrontend $frontendIP1 -GrupoDeDireccionesDeBackend $beAddressPool1 -Sonda $healthProbe -Protocolo Tcp -PuertoDeFrontend 80 -PuertoDeBackend 80

10)  Create inbound NAT rules

Create NAT rules for services that you are not load balancing.

For example, when creating a SSH access to a Citrix ADC VPX instance.

Note: Protocol-FrontEndPort-BackendPort triplet should not be the same for two NAT rules.


$inboundNATRule1= New-AzureRmLoadBalancerInboundNatRuleConfig -Nombre SSH1 -FrontendIpConfiguration $frontendIP1 -Protocolo TCP -FrontendPort 22 -BackendPort 22

$inboundNATRule2= New-AzureRmLoadBalancerInboundNatRuleConfig -Nombre SSH2 -FrontendIpConfiguration $frontendIP1 -Protocolo TCP -FrontendPort 10022 -BackendPort 22

11)     Create a load balancer entity

Create the load balancer adding all objects (NAT rules, load balancer rules, probe configurations) together.

$lbName="ELB"

$NRPLB = New-AzureRmLoadBalancer -ResourceGroupName $rgName -Nombre $lbName -Ubicación $locName -InboundNatRule $inboundNATRule1, $inboundNATRule2 -FrontendIpConfiguration $frontendIP1 -LoadBalancingRule $lbrule1 -BackendAddressPool $beAddressPool1 -Probe $healthProbe

12)     Create a NIC

Create two NICs and associate each NIC with each VPX instance

a)      NIC1 with VPX1

For example:

$nicName="NIC1"

$lbName="ELB"

$bePoolIndex=0  

\* Los índices de reglas comienzan desde 0.

$natRuleIndex=0

$subnetIndex=0

\* Índice de subred de interfaz

$lb= Get-AzureRmLoadBalancer -Nombre $lbName -NombreGrupoRecursos $rgName

$nic1=New-AzureRmNetworkInterface -Nombre $nicName -NombreGrupoRecursos $rgName -Ubicación $locName -Subred $vnet.Subredes\[$subnetIndex\] -LoadBalancerBackendAddressPool $lb.BackendAddressPools\[$bePoolIndex\] -LoadBalancerInboundNatRule $lb.InboundNatRules\[$natRuleIndex\]

b)      NIC2 with VPX2

For example:

$nicName="NIC2"

$lbName="ELB"

$bePoolIndex=0

$natRuleIndex=1

* Second Inbound NAT (SSH) rule we need to use

$subnetIndex=0

* Frontend subnet index

$lb= Get-AzureRmLoadBalancer -Nombre $lbName -NombreGrupoRecursos $rgName

$nic2=New-AzureRmNetworkInterface -Nombre $nicName -NombreGrupoRecursos $rgName -Ubicación $locName -Subred $vnet.Subredes\[$subnetIndex\] -LoadBalancerBackendAddressPool $lb.BackendAddressPools\[$bePoolIndex\] -LoadBalancerInboundNatRule$lb.InboundNatRules\[$natRuleIndex\]

13)     Create Citrix ADC VPX instances

Create two Citrix ADC VPX instances as part of the same resource group and availability set, and attach it to the external load balancer.

a)     Citrix ADC VPX instance 1

For example:


$vmName="VPX1"

$vmSize="Estándar\_A3"

$pubName="citrix"

$offerName="netscalervpx110-6531"

$skuName="escalador de red"

$avSet= Get-AzureRmAvailabilitySet -Nombre $avName -NombreGrupoRecursos $rgName

$vm1=New-AzureRmVMConfig -VMName $vmName -VMSize $vmSize -AvailabilitySetId $avset.Id

$cred=Get-Credential -Message "Escriba las credenciales que se utilizarán para iniciar sesión en la instancia VPX"

$vm1=Establecer-Sistema-operativo-AzureRmVMO -VM $vm1 -Linux -Nombre-computadora $vmName -Credenciales $cred -Verbose

$vm1=Set-AzureRmVMSourceImage -VM $vm1 -PublisherName $pubName -Offer $offerName -Skus $skuName -Versión "más reciente"

$vm1=Agregar-AzureRmVMNetworkInterface -VM $vm1 -Id $nic1.Id

$diskName="dinámico"

$storageAcc= Obtener-AzureRmStorageAccount - NombreGrupoRecursos $rgName - Nombre $saName

$osDiskUri1=$storageAcc.Puntos finales primarios.Blob.ToString() + "vhds1/" + $diskName+ ".vhd"

$vm1= Establecer-AzureRmVMOSDisk -VM $vm1 -Nombre $diskName -VhdUri $osDiskUri1 -CreateOption desdeImagen

Set-AzureRmVMPlan -VM $vm1 -Editor $pubName -Producto $offerName -Nombre $skuName

Nuevo-AzureRmVM -ResourceGroupName $rgName -Ubicación $locName -VM $vm1

b)  Citrix ADC VPX instance 2

For example:


$vmName="VPX2"

$vmSize="Estándar\_A3"

$avSet= Get-AzureRmAvailabilitySet -Nombre $avName -NombreGrupoRecursos $rgName

$vm2=New-AzureRmVMConfig -VMName $vmName -VMSize $vmSize -AvailabilitySetId $avset.Id

$cred=Get-Credential -Message " Escriba las credenciales que se utilizarán para iniciar sesión en la instancia VPX "

$vm2=Establecer-Sistema-operativo-AzureRmVMO -VM $vm2 -Linux -Nombre-computadora $vmName -Credenciales $cred -Verbose

$vm2=Set-AzureRmVMSourceImage -VM $vm2 -PublisherName $pubName -Offer $offerName -Skus $skuName -Versión "más reciente"

$vm2=Agregar-AzureRmVMNetworkInterface -VM $vm2 -Id $nic2.Id

$diskName="dinámico"

$storageAcc= Obtener-AzureRmStorageAccount - NombreGrupoRecursos $rgName - Nombre $saName

$osDiskUri1=$storageAcc.Puntos finales primarios.Blob.ToString() + "vhds2/" + $diskName+ ".vhd"

$vm2= Establecer-AzureRmVMOSDisk -VM $vm2 -Nombre $diskName -VhdUri $osDiskUri1 -CreateOption desdeImagen

Set-AzureRmVMPlan -VM $vm2 -Editor $pubName -Producto $offerName -Nombre $skuName

Nuevo-AzureRmVM -ResourceGroupName $rgName -Ubicación $locName -VM $vm2

14)   Configure the virtual machines

When both the Citrix ADC VPX instances start, then connect to both Citrix ADC VPX instances using the SSH protocol to configure the virtual machines.

a)      Active-Active: Run the same set of configuration commands on the command line of both the Citrix ADC VPX instances.

b)      Active-Passive: Run this command on the command line of both the Citrix ADC VPX instances.

      add ha node #nodeID <nsip of other Citrix ADC VPX>

            In Active-Passive mode, run configuration commands on the primary node only.

Provision a Citrix ADC VPX pair in a high availability setup with Azure internal load balancer

Log on to AzureRmAccount using your Azure user credentials.

1)     Create a resource group

The location specified here is the default location for resources in that resource group. Make sure all commands to create a load balancer use the same resource group.

$rgName=”<resource group name>”

$locName=”<location name, such as West US>”

New-AzureRmResourceGroup -Name $rgName -Location $locName

For example:


$rgName = "BRAZO-LB-NS"

$locName = "Oeste de EE. UU."

New-AzureRmResourceGroup -Nombre $rgName -Ubicación $locName

2)     Create a storage account

Choose a  unique name for your storage account that contains only lowercase letters and numbers.

$saName=”<storage account name>”

$saType=”<storage account type, specify one: Standard_LRS, Standard_GRS, Standard_RAGRS, or Premium_LRS>”

New-AzureRmStorageAccount -Name $saName -ResourceGroupName $rgName -Type $saType -Location $locName

For example:

$saName="almacenamiento vpx"

$saType="Estándar\_LRS"

Nueva cuenta de almacenamiento de AzureRm - Nombre $saName - Nombre del grupo de recursos $rgName - Tipo $saType - Ubicación $locName

3)    Create an availability set

A load balancer configured with an availability set ensures that your application is always available..

$avName=”<availability set name>”

New-AzureRmAvailabilitySet -Name $avName -ResourceGroupName $rgName -Location $locName

4)     Create a virtual network

Add a new virtual network with at least one subnet, if the subnet was not created previously.

$vnetName = "LBVnet"

$vnetAddressPrefix="10.0.0.0/16"

$FrontendAddressPrefix="10.0.1.0/24"

$BackendAddressPrefix="10.0.2.0/24"

$vnet=New-AzureRmVirtualNetwork -Nombre $vnetName -NombreGrupoRecursos $rgName -Ubicación $locName -PrefijoDirección $vnetAddressPrefix-Subred $frontendSubnet,$backendSubnet\`

$frontendSubnet=New-AzureRmVirtualNetworkSubnetConfig -Nombre frontendSubnet -PrefijoDirección$FrontendAddressPrefix

$backendSubnet=New-AzureRmVirtualNetworkSubnetConfig -Nombre backendSubnet -PrefijoDirección$BackendAddressPrefix

Note: Choose the AddressPrefix parameter value as per your requirement.

Assign front end and back end subnet to the virtual network that you created earlier in this step.

If the front end subnet is the first element of array vnet, subnetId should be $vnet.Subnets[0].Id.

If the front end subnet is the second element in the array, the subnetId should be $vnet.Subnets[1].Id, and so on..

5)     Create an back end address pool

$beaddresspool= New-AzureRmLoadBalancerBackendAddressPoolConfig -Nombre "LB-backend"

6)     Create NAT rules

Create NAT rules for services that you are not load balancing.

$inboundNATRule1= New-AzureRmLoadBalancerInboundNatRuleConfig -Nombre "Inboundnatrule1" -FrontendIpConfiguration $frontendIP -Protocolo TCP -FrontendPort 3441 -BackendPort 3389

$inboundNATRule2= New-AzureRmLoadBalancerInboundNatRuleConfig -Nombre "RDP2" -FrontendIpConfiguration $frontendIP -Protocolo TCP -FrontendPort 3442 -BackendPort 3389

Use front end and back end ports as per your requirement.

7)     Create a health probe

Create a TCP health probe with port 9000 and interval 5 seconds.

$healthProbe = New-AzureRmLoadBalancerProbeConfig -Nombre "HealthProbe" " -Protocolo tcp -Puerto 9000 -IntervaloEnSegundos 5 -ConteoDeProbe 2

8)     Create a load balancing rule

Create a LB rule for each service that you are load balancing.

For example:

You can use the following example to load balance http service.

$lbrule = New-AzureRmLoadBalancerRuleConfig -Nombre "lbrule1" -ConfiguraciónIpDeFrontend $frontendIP -GrupoDeDireccionesDeBackend $beAddressPool -Sonda $healthProbe -Protocolo Tcp -PuertoDeFrontend 80 -PuertoDeBackend 80

Use front end  and back end ports as per your requirement.

9)     Create a load balancer entity

Create the load balancer adding all objects (NAT rules, load balancer rules, probe configurations) together.

$NRPLB = New-AzureRmLoadBalancer -ResourceGroupName $rgname -Nombre "InternalLB" -Ubicación $locName -FrontendIpConfiguration $frontendIP -InboundNatRule $inboundNATRule1,$inboundNatRule2 -LoadBalancingRule $lbrule -BackendAddressPool $beAddressPool -Probe $healthProbe

10)     Create a NIC

Create two NICs and associate each NIC with each Citrix ADC VPX instance


$backendnic1= New-AzureRmNetworkInterface -ResourceGroupName $rgName -Name lb-nic1-be -Location $locName -PrivateIpAddress 10.0.2.6 -Subnet $backendSubnet -LoadBalancerBackendAddressPool $nrplb.BackendAddressPools\[0\] -LoadBalancerInboundNatRule $nrplb.InboundNatRules\[0\]

This NIC is for Citrix ADC VPX 1. The Private IP should be in same subnet as that of subnet added.

$backendnic2= New-AzureRmNetworkInterface -ResourceGroupName $rgName-Nombre lb-nic2-be -Ubicación $locName-DirecciónIpPrivada 10.0.2.7 -Subred $backendSubnet -LoadBalancerBackendAddressPool $nrplb.BackendAddressPools\[0\] -LoadBalancerInboundNatRule $nrplb.InboundNatRules\[1\].

This NIC is for Citrix ADC VPX 2.The parameter Private IPAddress can have any private IP as per your requirement.

11)     Create Citrix ADC VPX instances

Create two VPX instances part of same resource group and availability set and attach it to the internal load balancer.

a) Citrix ADC VPX instance 1

For example:


$vmName="VPX1"

$vmSize="Estándar\_A3"

$avSet= Get-AzureRmAvailabilitySet -Nombre $avName -NombreGrupoRecursos $rgName

$vm1=New-AzureRmVMConfig -VMName $vmName -VMSize $vmSize -AvailabilitySetId $avset.Id

$cred=Get-Credential -Message "Escriba las credenciales que se utilizarán para iniciar sesión en la instancia VPX"

$vm1=Establecer-Sistema-operativo-AzureRmVMO -VM $vm1 -Linux -Nombre-computadora $vmName -Credenciales $cred -Verbose

$vm1=Set-AzureRmVMSourceImage -VM $vm1 -PublisherName $pubName -Offer $offerName -Skus $skuName -Versión "más reciente"

$vm1=Agregar-AzureRmVMNetworkInterface -VM $vm1 -Id $backendnic1.Id

$diskName="dinámico"

$storageAcc= Obtener-AzureRmStorageAccount - NombreGrupoRecursos $rgName - Nombre $saName

$osDiskUri1=$storageAcc.Puntos finales primarios.Blob.ToString() + "vhds1/" + $diskName + ".vhd"

$vm1= Establecer-AzureRmVMOSDisk -VM $vm1 -Nombre $diskName -VhdUri $osDiskUri1 -CreateOption desdeImagen

Set-AzureRmVMPlan -VM $vm1 -Editor $pubName -Producto $offerName -Nombre $skuName

Nuevo-AzureRmVM -ResourceGroupName $rgName -Ubicación $locName -VM $vm1

b) Citrix ADC VPX instance 2

For example:

$vmName="VPX2" $vmSize="Estándar\_A3" $avSet= Get-AzureRmAvailabilitySet -Nombre $avName -NombreGrupoRecursos $rgName $vm2=New-AzureRmVMConfig -VMName $vmName -VMSize $vmSize -AvailabilitySetId $avset.Id $cred=Get-Credential -Message " Escriba las credenciales que se utilizarán para iniciar sesión en la instancia VPX " $vm2=Establecer-Sistema-operativo-AzureRmVMO -VM $vm2 -Linux -Nombre-computadora $vmName -Credenciales $cred -Verbose $vm2=Set-AzureRmVMSourceImage -VM $vm2 -PublisherName $pubName -Offer $offerName -Skus $skuName -Versión "más reciente" $vm2=Agregar-AzureRmVMNetworkInterface -VM $vm2 -Id $backendnic2.Id $diskName="dinámico" $storageAcc= Obtener-AzureRmStorageAccount - NombreGrupoRecursos $rgName - Nombre $saName $osDiskUri1=$storageAcc.Puntos finales primarios.Blob.ToString() + "vhds2/" + $diskName + ".vhd" $vm2= Establecer-AzureRmVMOSDisk -VM $vm2 -Nombre $diskName -VhdUri $osDiskUri1 -CreateOption desdeImagen Set-AzureRmVMPlan -VM $vm2 -Editor $pubName -Producto $offerName -Nombre $skuName Nuevo-AzureRmVM -ResourceGroupName $rgName -Ubicación $locName -VM $vm2 ``` 12\)**Configurar las máquinas virtuales** Cuando se inician las dos instancias de Citrix ADC VPX, conéctese a ambas instancias de Citrix ADC VPX mediante el protocolo SSH para configurar las máquinas virtuales. a) Activo-Activo: ejecuta el mismo conjunto de comandos de configuración en la línea de comandos de ambas instancias de Citrix ADC VPX. b) Activo-Pasivo: Ejecute este comando en la línea de comandos de ambas instancias de Citrix ADC VPX. agregue el nodo ha \#nodeID \<nsip de otro Citrix ADC VPX\> En el modo Activo-Pasivo, ejecute comandos de configuración solo en el nodo principal.
La versión oficial de este contenido está en inglés. Para mayor comodidad, parte del contenido de la documentación de Cloud Software Group solo tiene traducción automática. Cloud Software Group no puede controlar el contenido con traducción automática, que puede contener errores, imprecisiones o un lenguaje inadecuado. No se ofrece ninguna garantía, ni implícita ni explícita, en cuanto a la exactitud, la fiabilidad, la idoneidad o la precisión de las traducciones realizadas del original en inglés a cualquier otro idioma, o que su producto o servicio de Cloud Software Group se ajusten a cualquier contenido con traducción automática, y cualquier garantía provista bajo el contrato de licencia del usuario final o las condiciones de servicio, o cualquier otro contrato con Cloud Software Group, de que el producto o el servicio se ajusten a la documentación no se aplicará en cuanto dicha documentación se ha traducido automáticamente. Cloud Software Group no se hace responsable de los daños o los problemas que puedan surgir del uso del contenido traducido automáticamente.
Scripts de PowerShell adicionales para la implementación de Azure