Adding Microsoft Azure Cloud Provider Resource
The use of an Azure cloud provider resource requires a CloudShell management resource group to be installed on an Azure region. For additional information, see Microsoft Azure Integration.
The Microsoft Azure cloud provider enables the deployment of Azure virtual machines from an Azure image.
Tip: We strongly recommend using the 2nd Gen version of the shell, which provides significant enhancements and capabilities, and is tamper-resistant from within CloudShell, ensuring your Azure cloud provider resources and Apps are in pristine condition. Useful articles: Replacing the 1st Gen shell with a 2nd Gen version, Cloud Provider Shells - Features and Capabilities Per Release.
To add an Azure cloud provider resource:
- Log in to the CloudShell domain in which this resource will reside. This will enable the Apps based on this cloud provider resource to be usable in this domain.
- In the Inventory dashboard, in the Resources tab, click the folder in which you want to create the resource.
- Click + Add New.
- In the Create New Resource dialog box, select the Microsoft Azure cloud provider template. To use the Azure 2nd Gen shell, select Microsoft Azure Cloud Provider 2G.
-
Enter a Name for the Azure resource.
Note: The resource's name has a limit of 100 characters and can only contain alpha-numeric characters, spaces, and the following characters: | . - _ ] [
-
Click Create.
The Resource dialog box is displayed.
-
Enter the required information.
Note: All Azure resources must belong to the specified region.
Attribute Supporting shell version Description Region All The Azure region to be used by this cloud provider resource. For example, "East US".
Note: The Azure region must have the CloudShell Management resource group configured. All Azure regions are supported by CloudShell.
VM Size All The size of the Microsoft Azure VM. The VM size determines the CPU, memory and networking capacity of the VM. By default: “Standard_A3”.
For additional information, see the Azure help page Sizes for virtual machines in Azure or use Azure CLI to get a list of your region's supported sizes.
Note: The VM size can be changed when creating the App in the Manage dashboard.
Networks in Use All Comma-separated list of CIDRs to be excluded when allocating sandbox networks. The value must include at least the CloudShell Management VNet.
For example,
10.0.0.0/24,10.1.0.0/16,172.31.0.0/24
Azure Subscription ID All The Subscription ID of the Azure user. Azure Tenant ID All The ID of the Azure tenant that is associated with your Azure Active Directory (AAD) instance - called Directory (tenant) ID in Azure. For example: ccd13026-98e3-4e90-01f4-28e2afdf3213.
The tenant ID can be retrieved when creating the Azure API web application or from Azure CLI. For more information, see Configure Azure API to work with CloudShell.
Azure Application ID All The Azure API web application's Application (client) ID.
The application ID allows CloudShell to access the Azure API and is generated as part of the web application’s configuration process. For more information, see Configure Azure API to work with CloudShell.
Azure Application Key All The Azure API web application's client secret.
The application key allows CloudShell to access the Azure API and is generated as part of the Azure API web application’s configuration process. For more information, see Configure Azure API to work with CloudShell.
Management Group Name All The name of the Management Resource Group. Sandbox Virtual Network Name Azure 2nd Gen shell only The name of the Sandbox VNet under the Management Resource Group.
Notes:- In dedicated mode, the sandbox subnet will be created in this VNet.
- In predefined mode, you must make sure the subnet to be used is located within this VNet.
Management Virtual Network Name Azure 2nd Gen shell only (Optional) The name of the Management VNet under the Management Resource Group. Used to store management network security rules. Additional Mgmt Networks All Networks to be allowed to interact with all sandboxes. This is used for allowing connectivity to Azure resources outside the Management VNet.
The syntax is comma separated CIDRs. For example, "10.0.0.0/24,10.1.0.0/16,172.31.0.0/24".
Custom Tags Azure 2nd Gen shell only Semi-colon separated list of up to 9 tags to be applied to all related Azure objects created during the App deployment, such as the sandbox's resource group, VNETs, subnets, NSGs and VMs.
Attribute supports the following syntax: [TagName]=[TagValue]; [TagName]=[TagValue]. For example: “Tag1=Val1;Tag2=Val2”
Private IP Allocation Method All Method to be used to assign private IP addresses to VMs. Options are:
- Azure Allocation: (Default. Recommended option) Azure assigns private IPs when creating the network interface.
-
CloudShell Allocation: In this method, the Azure cloud provider resource assigns the private IPs for the network interface from the region's subnet CIDR. When the VM is deleted, the assigned IPs are released.
Note: When using this option, you can use the GetAvailablePrivateIP command (on the Azure cloud provider resource) to get an IP that will not be used by CloudShell when allocating any future private IPs. You can use this IP when creating Azure VMs independently from CloudShell.
Execution Server Selector All
This attribute points to a pre-defined group of execution servers (grouped by a common Execution Server Selector value). To make the association, enter the same value you specified on the execution server.
For additional information on managing App deployments per domains, see Managing Public Cloud Apps in Domains.
-
Click Start Discovery.
When the discovery process completes, a confirmation message is displayed. The cloud provider resource is displayed in the Inventory dashboard in CloudShell Portal and in Resource Manager Client.
To customize the App deployment types and publish App orchestration parameters, see Customizing App Deployment Types