Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


CSS Stylesheet
.indent {margin-left:40px !important}


Add_workflow_for_techpubs
AUTH1UserResourceIdentifier{userKey=8a00a0c85b2726c2015b58aa779d0003, userName='null'}
JIRAIDAUTHCHOR-3700
REV5UserResourceIdentifier{userKey=8a00a0c85b2726c2015b58aa779d0003, userName='null'}
REV6UserResourceIdentifier{userKey=8a00a0c85b2726c2015b58aa779d0003, userName='null'}
REV3UserResourceIdentifier{userKey=8a00a0c85c46b657015d4f57d577001c, userName='null'}
REV1UserResourceIdentifier{userKey=8a00a02355cd1c2f0155cd26cc5207f0, userName='null'}

Info

This procedure applies to deploying an

Spacevars
0series3
 via Marketplace; this procedure does not apply to deploying an 
Spacevars
0series3
via Azure Launch Wizard.


Panel

In this section:

Table of Contents
maxLevel3

PowerShell is an alternate option in Azure to execute commands, such as creating a resource group or virtual network. Powershell is required if you plan to create a resource group, virtual networks and virtual subnetworks via Powershell. These commands are not required if you are using Azure Portal to execute these commands.  For details on PowerShell, refer to the PowerShell documentation. For executing comments via Azure Portal, refer to to Deploying a an SBC SWe Lite via Edge from the Azure Marketplace.

Log into PowerShell

PowerShell is an option used to execute various commands when deploying 

Spacevars
0series3
via Azure. Use Azure CLI PowerShell module or Azure RM PowerShell module to login into PowerShell as follows:

  1. Install Azure CLI PowerShell module or Azure RM PowerShell module on your laptop.
  2. Login to Azure with PowerShell:

    Code Block
    ### Azure CLI ###
    az login
    
    ### Azure RM ###
    Connect-AzureRmAccount


Create a Resource Group

Create a Resource Group via PowerShell as follows: 

  1. Access PowerShell. Refer to the PowerShell documentation.
  2. Run one of the following commands (per Azure CLI PowerShell module or Azure RM PowerShell module):

    Code Block
    ### Azure CLI ###
    az group create -l "westus2" -n "SWeLite-RG"
    
    ### Azure RM ###
    New-AzureRmResourceGroup -Name "SWeLite-RG" -Location westus2


Create a Virtual Network and Virtual Subnet

  1. Access PowerShell. Refer to the PowerShell documentation.
  2. Run one of the following commands (per Azure CLI Powershell module or Azure RM PowerShell module):

    Code Block
    ### Azure CLI ###
    az network vnet create -g "SWeLite-RG" -n "SWeLite-Network" --address-prefix 10.0.0.0/16 --subnet-name MySubnet1 --subnet-prefix 10.0.0.0/24
    
    ### Azure RM ###
    $Subnets = New-AzureRmVirtualNetworkSubnetConfig -Name "MySubnet1" -AddressPrefix "10.0.0.0/24"
    New-AzureRmVirtualNetwork -ResourceGroupName "SWeLite-RG" -Name "SWeLite-Network" -Location westus2 -Subnet $Subnets


Create Additional Virtual Subnet

  1. Access PowerShell. Refer to PowerShell documentation.
  2. Run one of the following commands (per Azure CLI or Azure RM):

    Code Block
    ### Azure CLI ###
    az network vnet subnet create -g "SWeLite-RG" --vnet-name "SWeLite-Network" -n "MySubnet2" --address-prefix 10.0.1.0/24
    
    ### Azure RM ###
    $Subnets = New-AzureRmVirtualNetworkSubnetConfig -Name "MySubnet2" -AddressPrefix "10.0.1.0/24"
    Set-AzureRmVirtualNetwork -ResourceGroupName "SWeLite-RG" -Name "SWeLite-Network" -Location westus2 -Subnet $Subnets


Create 
Spacevars
0series3
VM

Perform these steps via PowerShell:

  1. Access PowerShell. Refer to PowerShell documentation.
  2. Run the following commands (per Azure CLI PowerShell module):

Div
classindent


Info

When deploying SWe Edge without Marketplace access:

  1. Upload the OS Disk (SBCSWeEdge-OsDisk.vhd) and Data Disk (SBCSWeEdge-DataDisk.vhd) found in the file SWeEdge-Hyperv-release11.0.1.build47.zip to an Azure Storage Account Blob.

  2. Create an Azure Image out of the vhds using

    'az image create -g $ResourceGroup -n SWeEdgeImage --source "https://<YourStorageAccount>.blob.core.windows.net/<YourStorageAccountBlob>/SBCSWeLite-OsDisk.vhd" --data-disk-sources "https://<YourStorageAccount>.blob.core.windows.net/<YourStorageAccountBlob>/SBCSWeLite-DataDisk.vhd" --os-type Linux'

  3. Replace content of the Image variable below ($Image) by the image name create previously '$Image = "SWeEdgeImage"'


Code Block
$ResourceGroup = "SWeLite-RG"
$VirtualNetwork = "SWeLite-Network"
$Image = "ribboncommunications:ribbon_sbc_swe-lite:ribbon_sbc_swe-lite:8.0.0"

### Azure CLI ###
az network nic create --resource-group $ResourceGroup --name "swelite800-1-1" --vnet-name $VirtualNetwork --subnet MySubnet1
az network nic create --resource-group $ResourceGroup --name "swelite800-1-2" --vnet-name $VirtualNetwork --subnet MySubnet2
az vm create -g $ResourceGroup -n "swelite800-1" --image $Image --size "Standard_B1ms" --generate-ssh-keys --nics "swelite800-1-1" "swelite800-1-2"



Assign Additional Network Interface

Perform these steps via PowerShell:

  1. Access PowerShell. Refer to PowerShell documentation.
  2. Run the following commands (per Azure CLI PowerShell module):

    Code Block
    $ResourceGroup = "SWeLite-RG"
    $VirtualNetwork = "SWeLite-Network"
    
    ### Azure CLI ###
    az network nic create --resource-group $ResourceGroup --name "swelite-2" --vnet-name $VirtualNetwork --subnet pkt0
    az vm nic add -g $ResourceGroup --vm-name "swelite" --nics "swelite-2"