using the cloudeos and veos router on Microsoft Azure
cloudeos and veos router Image Updates
the process you use to update cloudeos and veos router images is the standard update process used for EOS images.
For details on the steps to use, refer to the Arista EOS User Manual (see https://www.arista.com/en/support/product-documentation).
Launching cloudeos and veos router Azure Instance
there are two methods which can be used to launch a cloudeos and veos router instance.
Below is a summary of each method.
- Portal Marketplace This method launches an instance using the Azure Portal Marketplace UI.
Note: Arista recommends using only the v2 instance type for better pricing and performance while creating an instance using Azure Marketplace. Also, make sure to enable Accelerated Networking on all the interfaces while creating an instance.
- Azure CLI 2.0: This method launches an instance using a custom template through the Azure CLI 2.0. the primary advantage of a CLI deployment is the ability to include custom-data and customize your deployment.
Do not deploy the same template twice into a single resource group, because this creates name conflicts. To deploy multiple instances into the same resource group, modify the template, so all resources are renamed, and all IP addresses are unique.
Creating an Instance using the Portal Marketplace
To create an instance using the Portal Marketplace, complete the following steps.
Creating an Instance under Azure CLI 2.0
To create an instance under Azure CLI 2.0, complete the following steps.
Logging into Instance
To log into an instance, complete the following steps.
cloudeos router Startup-Configuration using Instance Custom-Data
Describes launch employing custom-data information.
During the initial launching of the veos router Instance, Azure provides a feature to upload custom-data. the administrator can upload veos router configuration using custom-data at the time of the launching of the veos router Instance.
Custom-data can be used to pass in configuration for multiple entities. Currently, only the EOS configuration is supported in Azure. This configuration must be separated by start and end markers.
Entity |
Markers |
File Path |
---|---|---|
EOS CLI configuration file |
|
N/A |
EOS CLI configuration file Use: %FORCE_USER_DATA% will forcibly apply the Arista startup configs in the user custom data under the %EOS-STARTUP-CONFIG-START% and%EOS-STARTUP-CONFIG-END% ) even when it is not a first time boot of the instance. |
%FORCE_USER_DATA% |
N/A |
Note, the following regarding the custom-data.
- Markers must be at the beginning of the line.
- the user is expected to have tested the configurations on a live system before using the configurations to deploy the new veos router. Mis-configuration may result in an unrecoverable instance.
- EOS configuration for all interfaces can be passed in during deployment. the configuration takes effect as the new instances attach to the veos router.
Sample Instance Custom-Data
Illustrates a sample Instance with custom-data.
%EOS-STARTUP-CONFIG-START%
! EOS startup config
username admin nopassword
username admin sshkey file flash:key.pub
%EOS-STARTUP-CONFIG-END%
Providing Startup-Configuration using Azure Custom-Data
Adding custom-data to an instance.
Currently, custom-data can only be used on instances deployed using the Azure CLI 2.0.
In order to add custom-data to an instance, the custom-data must be provided as a single-line value with '\n' delimiting newlines.
Use the single_line_json.sh script to convert your custom-data into this format.
#!/usr/bin/bash
cat $1 | python -c 'import json, sys; print( json.dumps( sys.stdin.read() ) )'
Usage of the script is as follows:
./single_line_json.sh user_data.txt
Copy and paste the generated output into the customData value field of the JSON parameters file.
Troubleshooting Instance
To troubleshoot the instance, complete the following steps.
Resources
Additional resources.
- How To Deploy Resources - https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-template-deploy-cli