Page History
CSS Stylesheet |
---|
.indent {margin-left:40px !important} |
Add_workflow_for_techpubs | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Info | ||||||||
---|---|---|---|---|---|---|---|---|
This procedure applies to deploying an
|
Panel | ||||
---|---|---|---|---|
In this section:
|
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 Deploying
...
...
Edge from the Azure Marketplace.
Log into PowerShell
PowerShell is an option used to execute various commands when deploying
Spacevars | ||
---|---|---|
|
- Install Azure CLI PowerShell module or Azure RM PowerShell module on your laptop.
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:
- Access PowerShell. Refer to the PowerShell documentation.
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
- Access PowerShell. Refer to the PowerShell documentation.
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
- Access PowerShell. Refer to PowerShell documentation.
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 | ||
---|---|---|
|
Perform these steps via PowerShell:
- Access PowerShell. Refer to PowerShell documentation.
Run the following commands (per Azure CLI PowerShell module):
Div | ||||
---|---|---|---|---|
| ||||
|
...
|
Assign Additional Network Interface
Perform these steps via PowerShell:
- Access PowerShell. Refer to PowerShell documentation.
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"