この記事は機械翻訳されています.免責事項
Azure展開の追加のPowerShellスクリプト
このセクションでは、Azure PowerShell で次の構成を実行できる PowerShell コマンドレットについて説明します。
- Citrix ADC VPXスタンドアロンインスタンスのプロビジョニング
- Azure 外部ロード バランサーを使用して高可用性設定で Citrix ADC VPX ペアをプロビジョニングする
- Azure内部ロードバランサーを使用した高可用性セットアップでのCitrix ADC VPXペアのプロビジョニング
PowerShell コマンドを使用して実行できる構成については、次のトピックも参照してください。
- PowerShell コマンドを使用して複数の IP アドレスと NIC を使用して高可用性セットアップを構成する
- Citrix ADC VPXインスタンスでGSLBを構成する
- NetScalerのアクティブ/スタンバイ高可用性セットアップでGSLBを構成する
- PowerShell コマンドを使用して、スタンドアロンモードでCitrix ADC VPXインスタンスの複数のIPアドレスを構成する
Citrix ADC VPXスタンドアロンインスタンスのプロビジョニング
-
リソースグループの作成
リソースグループには、ソリューションのすべてのリソースを含めることも、グループとして管理するリソースのみを含めることもできます。 ここで指定した場所は、そのリソースグループ内のリソースのデフォルトの場所です。 ロードバランサーを作成する場合、すべてのコマンドで同じリソースグループを使用してください。
$rgName="\<resource group name\>" $locName="\<location name, such as West US\>" New-AzureRmResourceGroup -Name $rgName -Location $locName
例えば:
$rgName = "ARM-VPX" $locName = "West US" New-AzureRmResourceGroup -Name $rgName -Location $locName
-
ストレージアカウントの作成
ストレージアカウントには、小文字と数字のみを含む一意の名前を選択する必要があります。
$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
例えば:
$saName="vpxstorage" $saType="Standard\_LRS" New-AzureRmStorageAccount -Name $saName -ResourceGroupName $rgName -Type $saType -Location $locName
-
アベイラビリティセットの作成
可用性セットにより、メンテナンス時などのダウンタイム中でも仮想マシンを使用し続けることができます。 可用性セットが構成されたロードバランサーでは、アプリケーションをいつでも使用できます。
$avName="\<availability set name\>" New-AzureRmAvailabilitySet -Name $avName -ResourceGroupName $rgName -Location $locName
-
仮想ネットワークの作成
以前に作成されたサブネットがない場合、少なくとも1つのサブネットを持つ新しい仮想ネットワークを追加します。
$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
例えば:
$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
-
NIC を作成する
NICを作成し、そのNICをCitrix ADC VPXインスタンスに関連付けます。 上記の手順で作成されたフロントエンドサブネットは0でインデックス付けされ、バックエンドサブネットは1でインデックス付けされます。 次の3つのいずれかの方法でNICを作成します。
-
パブリック IP アドレスを持つ NIC
``` $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="\<VM の NIC の名前\>" $domName="\<ドメイン名ラベル\>" $pip = New-AzureRmPublicIpAddress -Name $nicName -ResourceGroupName $rgName -DomainNameLabel $domName -Location $locName -AllocationMethod Dynamic
Before assigning `$domName`, check it is available or not by using command:
テスト-AzureRmDnsAvailability -DomainQualifiedName $domName -場所 $locName $nic = New-AzureRmNetworkInterface -Name $nicName -ResourceGroupName $rgName -Location $locName -SubnetId $vnet.Subnets\[$subnetIndex\].Id -PublicIpAddressId $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="\<VM の NIC の名前\>" $staticIP="\<サブネット上の利用可能な静的 IP アドレス\>" $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 -PrivateIpAddress $staticIP
-
-
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
- 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 -Location \$locName -Publisher \$pubName | オファーを選択
$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 |
- Create a virtual machine
$diskName=”<name identifier for the disk in Azure storage, such as OSDisk>”
For example:
$diskName="ダイナミック"
$pubName="Citrix"
$offerName="netscalervpx110-6531"
$skuName="netscalerbyol"
$storageAcc=Get-AzureRmStorageAccount -リソースグループ名 $rgName -名前 $saName
$osDiskUri=$storageAcc.PrimaryEndpoints.Blob.ToString() + "vhds/" + $diskName+ ".vhd"
$vm=Set-AzureRmVMOSDisk -VM $vm -名前 $diskName -VhdUri $osDiskUri -CreateOption fromImage
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 = "アーム-LB-NS"
$locName = "米国西部"
New-AzureRmResourceGroup -名前 $rgName -場所 $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="vpxストレージ"
$saType="標準\_LRS"
New-AzureRmStorageAccount -名前 $saName -リソースグループ名 $rgName -タイプ $saType -場所 $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 = "LBVネット"
$FrontendAddressPrefix="10.0.1.0/24"
$BackendAddressPrefix="10.0.2.0/24"
$vnetAddressPrefix="10.0.0.0/16"
$frontendSubnet=New-AzureRmVirtualNetworkSubnetConfig -名前 frontendSubnet -アドレスプレフィックス$FrontendAddressPrefix
$backendSubnet=New-AzureRmVirtualNetworkSubnetConfig -名前 backendSubnet -アドレスプレフィックス$BackendAddressPrefix
$vnet=New-AzureRmVirtualNetwork -Name $vnetName -ResourceGroupName $rgName -Location $locName -AddressPrefix $vnetAddressPrefix-Subnet $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="パブリックIP1"
$publicIP1 = New-AzureRmPublicIpAddress -Name $pubName-ResourceGroupName $rgName -Location $locName -AllocationMethod Static -DomainNameLabel nsvpx
Note: Check for the availability of the value for DomainNameLabel.
$FIPName = "エルブフィップ"
$frontendIP1 = New-AzureRmLoadBalancerFrontendIpConfig -名前 $FIPName -パブリックIPアドレス $publicIP1
$BEPool = "LB バックエンド プール"
$beaddresspool1= New-AzureRmLoadBalancerBackendAddressPoolConfig -Name $BEPool
8) Create a health probe
Create a TCP health probe with port 9000 and interval 5 seconds.
$healthProbe = New-AzureRmLoadBalancerProbeConfig -Name HealthProbe -Protocol Tcp -Port 9000 -IntervalInSeconds 5 -ProbeCount 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 -Name "HTTP-LB" -FrontendIpConfiguration $frontendIP1 -BackendAddressPool $beAddressPool1 -Probe $healthProbe -Protocol Tcp -FrontendPort 80 -BackendPort 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 -名前 SSH1 -FrontendIpConfiguration $frontendIP1 -プロトコル TCP -フロントエンドポート 22 -バックエンドポート 22
$inboundNATRule2= New-AzureRmLoadBalancerInboundNatRuleConfig -名前 SSH2 -FrontendIpConfiguration $frontendIP1 -プロトコル TCP -フロントエンドポート 10022 -バックエンドポート 22
11) Create a load balancer entity
Create the load balancer adding all objects (NAT rules, load balancer rules, probe configurations) together.
$lbName="エルビー"
$NRPLB = New-AzureRmLoadBalancer -ResourceGroupName $rgName -Name $lbName -Location $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="エルビー"
$bePoolIndex=0
\* ルールのインデックスは 0 から始まります。
$natRuleIndex=0
$subnetIndex=0
\* フロントエンドサブネットインデックス
$lb=Get-AzureRmLoadBalancer -名前 $lbName -リソースグループ名 $rgName
$nic1=New-AzureRmNetworkInterface -Name $nicName -ResourceGroupName $rgName -Location $locName -Subnet $vnet.Subnets\[$subnetIndex\] -LoadBalancerBackendAddressPool $lb.BackendAddressPools\[$bePoolIndex\] -LoadBalancerInboundNatRule $lb.InboundNatRules\[$natRuleIndex\]
b) NIC2 with VPX2
For example:
$nicName="NIC2"
$lbName="エルビー"
$bePoolIndex=0
$natRuleIndex=1
* Second Inbound NAT (SSH) rule we need to use
$subnetIndex=0
* Frontend subnet index
$lb=Get-AzureRmLoadBalancer -名前 $lbName -リソースグループ名 $rgName
$nic2=New-AzureRmNetworkInterface -Name $nicName -ResourceGroupName $rgName -Location $locName -Subnet $vnet.Subnets\[$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="標準\_A3"
$pubName="Citrix"
$offerName="netscalervpx110-6531"
$skuName="netscalerbyol"
$avSet=Get-AzureRmAvailabilitySet -名前 $avName -リソースグループ名 $rgName
$vm1=New-AzureRmVMConfig -VMName $vmName -VMSize $vmSize -AvailabilitySetId $avset.Id
$cred=Get-Credential -Message "VPXインスタンスへのログインに使用する資格情報を入力してください"
$vm1=Set-AzureRmVMOperatingSystem -VM $vm1 -Linux -ComputerName $vmName -資格情報 $cred -Verbose
$vm1=Set-AzureRmVMSourceImage -VM $vm1 -PublisherName $pubName -Offer $offerName -Skus $skuName -バージョン「最新」
$vm1=Add-AzureRmVMNetworkInterface -VM $vm1 -Id $nic1.Id
$diskName="ダイナミック"
$storageAcc=Get-AzureRmStorageAccount -リソースグループ名 $rgName -名前 $saName
$osDiskUri1=$storageAcc.PrimaryEndpoints.Blob.ToString() + "vhds1/" + $diskName+ ".vhd"
$vm1=Set-AzureRmVMOSDisk -VM $vm1 -名前 $diskName -VhdUri $osDiskUri1 -CreateOption fromImage
Set-AzureRmVMPlan -VM $vm1 -発行元 $pubName -製品 $offerName -名前 $skuName
New-AzureRmVM -リソースグループ名 $rgName -場所 $locName -VM $vm1
b) Citrix ADC VPX instance 2
For example:
$vmName="VPX2"
$vmSize="標準\_A3"
$avSet=Get-AzureRmAvailabilitySet -名前 $avName -リソースグループ名 $rgName
$vm2=New-AzureRmVMConfig -VMName $vmName -VMSize $vmSize -AvailabilitySetId $avset.Id
$cred=Get-Credential -Message " VPXインスタンスへのログインに使用する資格情報を入力してください "
$vm2=Set-AzureRmVMOperatingSystem -VM $vm2 -Linux -ComputerName $vmName -資格情報 $cred -Verbose
$vm2=Set-AzureRmVMSourceImage -VM $vm2 -PublisherName $pubName -Offer $offerName -Skus $skuName -バージョン「最新」
$vm2=Add-AzureRmVMNetworkInterface -VM $vm2 -Id $nic2.Id
$diskName="ダイナミック"
$storageAcc=Get-AzureRmStorageAccount -リソースグループ名 $rgName -名前 $saName
$osDiskUri1=$storageAcc.PrimaryEndpoints.Blob.ToString() + "vhds2/" + $diskName+ ".vhd"
$vm2=Set-AzureRmVMOSDisk -VM $vm2 -名前 $diskName -VhdUri $osDiskUri1 -CreateOption fromImage
Set-AzureRmVMPlan -VM $vm2 -発行元 $pubName -製品 $offerName -名前 $skuName
New-AzureRmVM -リソースグループ名 $rgName -場所 $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 = "アーム-LB-NS"
$locName = "米国西部"
New-AzureRmResourceGroup -名前 $rgName -場所 $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="vpxストレージ"
$saType="標準\_LRS"
New-AzureRmStorageAccount -名前 $saName -リソースグループ名 $rgName -タイプ $saType -場所 $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 = "LBVネット"
$vnetAddressPrefix="10.0.0.0/16"
$FrontendAddressPrefix="10.0.1.0/24"
$BackendAddressPrefix="10.0.2.0/24"
$vnet=New-AzureRmVirtualNetwork -Name $vnetName -ResourceGroupName $rgName -Location $locName -AddressPrefix $vnetAddressPrefix-Subnet $frontendSubnet、$backendSubnet\`
$frontendSubnet=New-AzureRmVirtualNetworkSubnetConfig -名前 frontendSubnet -アドレスプレフィックス$FrontendAddressPrefix
$backendSubnet=New-AzureRmVirtualNetworkSubnetConfig -名前 backendSubnet -アドレスプレフィックス$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 -Name "LB-backend"
6) Create NAT rules
Create NAT rules for services that you are not load balancing.
$inboundNATRule1= New-AzureRmLoadBalancerInboundNatRuleConfig -名前 "Inboundnatrule1" -FrontendIpConfiguration $frontendIP -プロトコル TCP -フロントエンドポート 3441 -バックエンドポート 3389
$inboundNATRule2= New-AzureRmLoadBalancerInboundNatRuleConfig -名前 "RDP2" -FrontendIpConfiguration $frontendIP -プロトコル TCP -フロントエンドポート 3442 -バックエンドポート 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 -Name "HealthProbe" " -Protocol tcp -Port 9000 -IntervalInSeconds 5 -ProbeCount 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 -Name "lbrule1" -FrontendIpConfiguration $frontendIP -BackendAddressPool $beAddressPool -Probe $healthProbe -Protocol Tcp -FrontendPort 80 -BackendPort 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 -Name "InternalLB" -Location $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-Name lb-nic2-be -Location $locName-PrivateIpAddress 10.0.2.7 -Subnet $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="標準\_A3"
$avSet=Get-AzureRmAvailabilitySet -名前 $avName -リソースグループ名 $rgName
$vm1=New-AzureRmVMConfig -VMName $vmName -VMSize $vmSize -AvailabilitySetId $avset.Id
$cred=Get-Credential -Message "VPXインスタンスへのログインに使用する資格情報を入力してください"
$vm1=Set-AzureRmVMOperatingSystem -VM $vm1 -Linux -ComputerName $vmName -資格情報 $cred -Verbose
$vm1=Set-AzureRmVMSourceImage -VM $vm1 -PublisherName $pubName -Offer $offerName -Skus $skuName -バージョン「最新」
$vm1=Add-AzureRmVMNetworkInterface -VM $vm1 -Id $backendnic1.Id
$diskName="ダイナミック"
$storageAcc=Get-AzureRmStorageAccount -リソースグループ名 $rgName -名前 $saName
$osDiskUri1=$storageAcc.PrimaryEndpoints.Blob.ToString() + "vhds1/" + $diskName + ".vhd"
$vm1=Set-AzureRmVMOSDisk -VM $vm1 -名前 $diskName -VhdUri $osDiskUri1 -CreateOption fromImage
Set-AzureRmVMPlan -VM $vm1 -発行元 $pubName -製品 $offerName -名前 $skuName
New-AzureRmVM -リソースグループ名 $rgName -場所 $locName -VM $vm1
b) Citrix ADC VPX instance 2
For example:
```
$vmName=”VPX2”
$vmSize=”標準_A3”
$avSet=Get-AzureRmAvailabilitySet -名前 $avName -リソースグループ名 $rgName
$vm2=New-AzureRmVMConfig -VMName $vmName -VMSize $vmSize -AvailabilitySetId $avset.Id
$cred=Get-Credential -Message “ VPXインスタンスへのログインに使用する資格情報を入力してください “
$vm2=Set-AzureRmVMOperatingSystem -VM $vm2 -Linux -ComputerName $vmName -資格情報 $cred -Verbose
$vm2=Set-AzureRmVMSourceImage -VM $vm2 -PublisherName $pubName -Offer $offerName -Skus $skuName -バージョン「最新」
$vm2=Add-AzureRmVMNetworkInterface -VM $vm2 -Id $backendnic2.Id
$diskName=”ダイナミック”
$storageAcc=Get-AzureRmStorageAccount -リソースグループ名 $rgName -名前 $saName
$osDiskUri1=$storageAcc.PrimaryEndpoints.Blob.ToString() + “vhds2/” + $diskName + “.vhd”
$vm2=Set-AzureRmVMOSDisk -VM $vm2 -名前 $diskName -VhdUri $osDiskUri1 -CreateOption fromImage
Set-AzureRmVMPlan -VM $vm2 -発行元 $pubName -製品 $offerName -名前 $skuName
New-AzureRmVM -リソースグループ名 $rgName -場所 $locName -VM $vm2 「」
12)仮想マシンを構成する
両方のCitrix ADC VPXインスタンスが起動したら、SSHプロトコルを使用して両方のCitrix ADC VPXインスタンスに接続し、仮想マシンを構成します。
a) アクティブ/アクティブ: 両方の Citrix ADC VPX インスタンスのコマンド ラインで同じ構成コマンドのセットを実行します。
b) アクティブ/パッシブ: 両方の Citrix ADC VPX インスタンスのコマンド ラインでこのコマンドを実行します。
他のCitrix ADC VPXのノード#nodeID<nsip>を追加します
アクティブ-パッシブモードでは、プライマリノードでのみ構成コマンドを実行します。