Create New Environment in Azure
In this chapter, you will find the steps required to create an environment in your Azure subscription. But before you start creating a new environment in your Azure subscription, please consider the following points:
If you authorized a deployment user in the previous step, you will be able to automatically deploy resources in your subscription. See the section Environment Configuration for Automatic Deployment.
In case you do not wish to provide NCache Cloud with a deployment user's details, you will only be able to create an environment manually, the steps of which have been explained in the Environment Configuration for Manual Deployment section.
Environment Configuration for Automatic Deployment
Note
You can only deploy resources through Automatic Deployment if you have linked a deployment user with your cloud subscription.
In front of you is an environment creation form that includes all the fields required to create and configure an environment in your Azure subscription.
Give your environment a suitable name against the Environment Name field.
Select the Environment Type, License Type, and License Plan from the dropdown menus as per your requirement.
Note
- In case of Client-Server license type, you will have to provide the No. of Clients as well.
- In case you want to simply add more clients in an existing environment, select the Existing Environment option and select the Environment Name which you want to modify from the dropdown menu. Add the number of clients required in the No. of Clients box.
Next up is providing information about the servers that you want to deploy in your environment. Choose the Number of Servers, the NCache Version they should use, and their Server VM Size accordingly.
Under the Deployment Configuration section, select the Region under which you want to create your environment and deploy resources.
Select Subscription and Resource Group from the dropdown menus.
You only need to provide a VNET and a Subnet for your environment.
Note
NCache servers will be deployed in the Resource Group and VNET you mention here.
If you want to assign public IPs to the servers deployed in your environment, check the Assign Public IP to Servers checkbox.
If you want these servers to form a cluster, then select Create 'demoCache' cluster option.
- Click on Next: Review & Create to review environment details and then the Create button to create the environment.
You can connect to the deployed server(s) by following steps provided in Connect to Server section.
Environment Configuration for Manual Deployment
If you decide to manually deploy all resources in your Azure subscription, you can create an environment for this in the following way:
In the Environment Configuration tab, you have two options:
- Existing Environment: If you want to add more servers in an existing environment.
- New Environment: If you want to create a new environment altogether.
To create a new environment, check the New Environment option and fill out the required fields i.e. Environment Name, Environment Type, and License Type.
Note
- In case of Client-Server license type, you will have to provide the No. of Clients as well.
- In case you want to simply add more servers in an existing environment, select the Existing Environment option and select the Environment Name which you want to modify from the dropdown menu. Add the number of clients required in the No. of Clients box.
Click on Finish if you want to skip resource deployment in your created environment. This will take you to the Deployment Environments page where you can see your environment listed with its details. This created environment will not have any servers deployed in it. To manually deploy servers, refer to Manually Create VM through Azure Portal.
Click on the Next: Resource Configuration button will take you to a resource configuration form to proceed with deploying resources in your environment. Also Azure CLI script is generated for resource deployment in your Azure subscription.
Resource Configuration
Fill out the server fields by providing Number of Servers, NCache Version to be used by those servers, and Server VM Size.
Next up is providing login information of the deployed servers i.e. VM Username and VM Password that is used to access the machines deployed in your environment.
Under the Deployment Configuration section, you need to provide the Resource Group Name, Virtual Network Name, and the Subnet Name against which you want these servers to be deployed.
Note
- Refer to Microsoft's documentation on Resource Groups, Virtual Networks, and Subnets to find the necessary information to fill the form.
- NCache servers will be deployed in the Resource Group and Virtual Network you mention here.
- When done, review the deployment details and click on Next: NCache Deployment button.
NCache Deployment
On the next NCache Deployment tab, you will find an auto generated user script that is to be used to create a cluster of NCache servers in your environment. Follow the steps mentioned below to know how to use this script.
Copy the user script by clicking on the Copy button.
Launch Azure CLI in a new tab by clicking on the > Launch CLI button
Paste and run the copied script here.
Once successfully executed, go back to the Create Deployment User tab on NCache Cloud Portal and select I have copied and executed above script through CLI checkbox.
On clicking Finish button after script execution, user is redirected to Deployment Environments page where user can see the environment created. When done, you can connect to the deployed server(s) by following steps provided in Connect to Server section.
See Also
Select Deployment Method
Create Deployment User in Azure
Connect to Deployed Server
Manually Create VM in Azure