New Name ResourceGroupName

New name resourcegroupname

This preview shows page 88 - 91 out of 588 pages.

New-AzureRmResourceGroupDeployment -Name AdatumVNetDeployment -ResourceGroupName AdatumRG ` -TemplateFile .\azuredeploy.json -TemplateParameterFile .\azuredeploy- parameters.json
Image of page 88
MCT USE ONLY. STUDENT USE PROHIBITED Implementing Microsoft Azure Infrastructure Solutions 2-23 Demonstration: Deploying a virtual network by using Azure portal Demonstration Steps 1. Open Internet Explorer and go to . 2. Save the azuredeploy.json file in RAW format to the D:\Demofiles\Mod02 folder. 3. Open the file in Visual Studio 2015. 4. In the Visual Studio 2015 interface review the parameters that you can modify with your custom values that you will use during deployment (but do not make any changes at this point): o vnetName . Provide name of the virtual network. o vnetAddressPrefix . Define the IP address range in Classless Interdomain Routing (CIDR) format. o subnet1Name . Define the name for the first subnet. o subnet1Preffix . Define the IP address range in CIDR notation for the first subnet. o Subnet2Name . Define the name for the second subnet. o Subnet2Preffix . Define the IP address range in CIDR notation for the second subnet. o location . Specify the Azure region where the virtual network will be created. 5. Review the resources section to identify the schema of the resources created in Azure Resource Manager (ARM) without making any changes: o type . Provides the resource type created in the ARM. In this template virtual networks are represented by the resource type. Microsoft.Network/virtualNetworks . o name . Provides name for the resource. o location . Specifies the Azure region that will be provided as input by the user during the deployment. o properties . Define the properties, such as address space and subnet, during the creation of the virtual network. 6. Download azuredeploy.parameters.json in RAW format to the D:\Demofiles\Mod02 folder and then open it in Visual Studio. 7. Modify the parameters with the values listed in the code content below, and then save the changes. Modify the values for the properties of the Azure Resource Manager (ARM) template that can be used for creation of the virtual network: Modify the azuredepeploy-parameters.json file { "location": { "value": "<enter here the Azure region that will be used as the primary location for the demos and labs in this module> " }, "vnetName": { "value": "AdatumDemoVNet" }, "vnetAddressPrefix": { "value": "10.0.0.0/16" }, "subnet1Name": { "value": "AdatumSubnet1" }, "subnet1Prefix": { "value": "10.0.1.0/24"
Image of page 89
MCT USE ONLY. STUDENT USE PROHIBITED 2-24 Implementing and managing Azure networking }, "subnet2Name": { "value": "AdatumSubnet2" }, "subnet2Prefix": { "value": "10.0.1.0/24" } } 8. Use the following command to start Microsoft Azure PowerShell and sign in to your subscription: Login-AzureRMAccount 9. If you have multiple subscriptions, select the subscription in which you are going to create the virtual network by using the following command (replace ‘Name of your subscription’ with the actual name of your subscription and make sure to enclose the name of your subscription in single quotes): Set-AzureRMContext –SubscriptionName ‘Name of your subscription’ 10.
Image of page 90
Image of page 91

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture