Azure ARM (8) ARM Template - VS Code

Publisher:心灵捕手Latest update time:2019-12-12 Source: eefocusKeywords:Azure  ARM  Template  Code Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  In the previous section, the author introduced how to use Visual Studio to edit ARM Template.

  But at some point, Visual Studio is too large to install. This chapter will introduce you to using VS Code to edit Azure Template.

  

  1. Download VS Code: https://code.visualstudio.com/

  2. Run VS Code and install the Azure ARM Extension. Click View and expand

  

  3. Search for azurerm and install the Extension. As shown below:

  

 

  4. After the installation is complete, select File, Preferences, User Code Snippets. As shown below:

  

 

  5. Then select JSON.

  

 

  6. Create a new JSON file and enter the following content:

{

    "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",

    "contentVersion": "1.0.0.0",

    "parameters": {

    },

    "variables": {

    },

    "resources": [

    ],

    "outputs": {

    }

}


  7. We click on the resources node, add curly brackets {} at the end, and then write the first letter a in the curly brackets.

  The system will automatically prompt apiVersion, we can just press Enter:

  

 

  8. Enter other content in sequence, as shown below:

  

 

  9. After deployment, we can also deploy Azure Template in the following ways

# sign in

Write-Host "Logging in...";

Add-AzureRmAccount -EnvironmentName AzureChinaCloud;


# select subscription

Write-Host "Selecting subscription '$subscriptionId'";

Select-AzureRmSubscription -SubscriptionID $subscriptionId;


#Create Resource Group

New-AzureRmResourceGroup -Name $resourceGroupName -Location $resourceGroupLocation


#Deploy Template

 New-AzureRmResourceGroupDeployment -ResourceGroupName "[ResourceGroupName]" -TemplateFile "[FilePath]" -TemplateParameterFile ["ParameterFilePath"];



Keywords:Azure  ARM  Template  Code Reference address:Azure ARM (8) ARM Template - VS Code

Previous article:Cortex-M3's SVC and PendSV exceptions and operating system (ucos real-time system)
Next article:Azure ARM (9) Create a virtual machine network in ARM mode

Recommended ReadingLatest update time:2024-11-16 11:48

ADS1.2 uses jlink debugger (debug chip s3c2440 arm9)
1. Software Installation ADS1.2 Download: http://down.drv5.cn/www.drv5.cn/arm-ads1.2.rar Jlink driver download: http://fastsoft.onlinedown.net/down/JLink_Windows_V630d.exe S3C2440led bare metal program (GT2440 development board): https://download.csdn.net/download/u012577474/11249524 Download and install the above 3
[Microcontroller]
ADS1.2 uses jlink debugger (debug chip s3c2440 arm9)
ARM Linux kernel boot2
The previous article is about ARM Linux kernel booting (1). Continuing from the previous article, look at the following source code: /*  * Setup the initial page tables.  We only setup the barest  * amount which are required to get the kernel running, which  * generally means mapping in the kernel code.只创建内核代码的映射
[Microcontroller]
Nvidia and ARM's deal has sounded the alarm for the industry
The deal to sell ARM to Nvidia for $40 billion has caused a lot of discussion in the industry, but some of ARM's partners have remained silent.   "This is shocking news and spells trouble for many manufacturers," said Mark Lippett, chief executive of XMOS processor design in Bristol, England. "Contrary to traditional
[Embedded]
Nvidia and ARM's deal has sounded the alarm for the industry
ARM memory address access
1. Access the memory location of the absolute address:      #define pISR_EINT0 (*(unsigned *) (_ISR_STRATADDRESS+0x74))      The above statement casts the unsigned integer _ISR_STRATADDRESS+0x74 to a pointer to RAM, which can be accessed using the following statement: pISR_EINT0 = (int)Eint0_ISR      To access a
[Microcontroller]
Linux arm mmu basics
ARM MMU page table framework First, here is a general block diagram of the page table structure of the arm mmu (the following discussion is gradually expanded from this diagram): The above is the typical structure of the arm's page table diagram: that is, the secondary page table structure: The first-level page ta
[Microcontroller]
Linux arm mmu basics
Arm announces termination of Mbed project
Recently, Arm officially announced that the Mbed development platform and operating system will be discontinued from July 2026. At that time, the Mbed website will be archived and it will no longer be possible to build projects using online tools. Mbed said the Mbed OS software is open source and will r
[Embedded]
Arm announces termination of Mbed project
Preparation before calling the main function in ARM bare metal driver
Hardware 1. Turn off the CPU watchdog 2 Configure the CPU working clock 3. The program needs to run in SDRAM, so SDRAM must be initialized Software 1 To run a function, stack space is required, so the stack pointer SP must be initialized 2 Set the return address of the main function 3 Calling main 4. Cleaning up
[Microcontroller]
Solutions to communication problems between MCU and ARM series processors
  1 System Hardware Design   1.1 Host hardware system structure   1) Power supply circuit AT91RM9200 requires 1.8 V and 3.3 V power supplies. In addition, most peripheral devices require 3.3 V power supplies, and a small number of peripheral devices also require 5 V power supplies. Here, the SPX1117M3-3.3 low-dro
[Microcontroller]
Solutions to communication problems between MCU and ARM series processors
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号