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"];
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
- Popular Resources
- Popular amplifiers
- Microgrid Stability Analysis and Control Microgrid Modeling Stability Analysis and Control to Improve Power Distribution and Power Flow Control (
- Virtualization Technology Practice Guide - High-efficiency and low-cost solutions for small and medium-sized enterprises (Wang Chunhai)
- 【2024 DigiKey Creative Competition】+ Portable Infrared Smart Smoking Device-Source Code
- usb_host_device_code
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Share two children's poems, guess how old the author is
- Let’s talk about digital filtering algorithms. Reply to get points!
- GaN power amplifiers revolutionize radar design
- This is an equalizer. I bought it but never used it. I want to share it with you.
- Join the thread and have a chat: If I give you a motor board, what would you want to do?
- 【China Academy of Electronics Science】Recruitment of embedded/algorithm engineers
- Create a healthy life and achieve powerful tools
- Help with the synchronization of the power supply LMZ34002
- How to distinguish diode overcurrent failure and overvoltage failure?
- Protection methods for low-speed interfaces and power circuits (digital audio, analog video, keyboard, etc.)