Get started with Skytap Environment creation using the Rest API. This script is a template that, when edited to include user-specific credentials and variables, will:
- Create a new environment within a Skytap account.
- Create two LPARs/VMs within the environment.
- Configure the environment's network.
- Establish a connection with an Existing Azure ExpressRoute.
- Connect the newly created Skytap environment nextwork to the ExpressRoute.
- An active Skytap account or Skytap on Azure services.
- Skytap account email address or Skytap on Azure auto-generated email address.
- Skytap REST API key or Skytap account password.
- An active Azure ExpressRoute service key. Follow Skytap's documentation to create a customer-managed ExpressRoute in Azure.
- May need to install
requests
library.
Set up your Azure ExpressRoute prior to running this script. You can utilize your Azure portal or use Azure Networking scripts on GitHub.
You can clone this repo, save it to your machine, then upload the script to your Azure account's PowerShell.
- APAC-2
- AU-Sydney-I-1
- CAN-Toronto
- CN-HongKong-M-1
- DE-Frankfurt-1-1
- EMEA
- IE-Dublin-M-1
- NL-Amsterdam-M-1
- SG-Singapore-M-1
- UK-London-M-1
- US-Central
- US-East-2
- US-Texas-M-1
- US-Virginia-M-1
- US-West
Skytap provides public templates for customer use. Various operating systems and versions are available, and can be found in a Skytap account under 'Environments' > 'Templates'.
This script uses Template IDs for environment and VM creation. Here is a reference for a few common templates used in customer environments:
Template | ID | Region |
---|---|---|
Windows Server 2022 Standard Sysprepped | 2111381 | US-Texas-M-1 |
IBM i 7.4 TR 5 | 2110325 | US-Texas-M-1 |
AIX - AIX7.3TL0SP1-2148 | 2125303 | US-Texas-M-1 |
Ubuntu 18.04.1 LTS Desktop Firstboot | 2038279 | US-Texas-M-1 |
https://help.skytap.com/API_Documentation.html#top
'https://cloud.skytap.com/configurations.json' --> all environments - Create an environment
'https://cloud.skytap.com/configurations/{env_id}.json' --> within an env - Create new LPARs and VMs - Configure network
'https://cloud.skytap.com/ips/acquire.json' --> IP addresses - Generate an public IP address
'https://cloud.skytap.com/vpns.json' --> WAN resources - Create new ExpressRoute
'https://cloud.skytap.com/configurations/{env-id}/networks/{network-id}/vpns.json' --> WANs within network - Attach network to ExpressRoute
'https://cloud.skytap.com/configurations/{env_id}/networks/{network_id}/vpns/{exr_id}.json' --> ExpressRoute WAN - Connect environment's network to ExpressRoute
Sections of this script not included in the API v1 documentation are not supported, and may therefore not function properly in the foreseeable future––as it may be the case with Azure ExpressRoute connectivity and enablement.