• About me…

ConfigMgr.nl

VMware, Automation and more

  • About me…

Creating Azure JSON templates with Visual Studio Code

06-05-2017 Azure No Comments

Because I am practising for the 70-533 exam I thought I could try to create some Azure JSON templates. For this I wanted to use Visual Studio Code. On the Azure documentation site there are some great examples to get you started.

After installing Visual Studio Code I installed the Azure Tools for Visual Studio Code. To install this extension:
– Open the extension view (CTRL-Shift-X) and type “Azure Tools”.
– Click on the green Install button
– activate the extension

In order to use the Azure: Login command go to File, Preferences, Settings and type the following between the curly brackets:
"azure.tenantId": "<your Azure tenant ID"

To retrieve your tenant ID login to the ARM portal and select the Azure Active Directory. Select App registrations and click on Endpoints. Copy the URL of the federation metadata document and strip out the first and last part so you end up with your tenant ID.
It looks like 12345678-abcd-1a23-a12b-1a2bc3defa4b

To logon do CTRL-P and type >azure. If al goes well you should see the following commands to choose from.

The first command you should use is Azure: Login. This will give you a code to fill in during the logon process similar like the Azure CLI logon process.

But you don’t have to do it from Visual Studio Code. You could also write your JSON template file, save it, and use it with powershell i.e. 

New-AzureRmResourceGroupDeployment -Name "MyDeployment" -ResourceGroupName "MyResourceGroup" -TemplateFile "MySavedJSONFile"

Deploy SQL Server Certificate to your ConfigMgr Consoles

Restoring Task Sequences the easy way

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Testing Script Runtime Service for vSphere – part 1
  • Using ADFS with vCenter 7
  • Network Port Diagram vSphere
  • Joining ESXi hosts to AD using Authentication Proxy in vCenter 7 (updated 04-12-2020)
  • Windows Server 2019 customization issue
  • Packer and WinRM – mystery resolved
  • Using LDAPS with vCenter and AD
  • Backup your homelab… for free!
  • Remediation did not succeed
  • Troubleshooting Host Profiles

Archives

Categories

AnyLinq (1) Azure (2) ConfigMgr (8) DIY (4) PowerCli (8) Powershell (8) SCCM (9) Script (11) Solutions (15) System Center (3) VMware (30) vRealize Automation (1) vRealize Orchestrator (1)

Jeroen BurenFollow

Jeroen Buren
Retweet on TwitterJeroen Buren Retweeted
Annemiek73Annemiek Meijer@Annemiek73·
20h

Running man kan altijd! Ook tijdens #VVAL2021 @VriendvanAmstel #RunningMan #VVALS

Reply on Twitter 1350537030879608833Retweet on Twitter 13505370308796088332Like on Twitter 135053703087960883323Twitter 1350537030879608833
Retweet on TwitterJeroen Buren Retweeted
PowerCLIVMware PowerCLI@PowerCLI·
11 Jan

Do check out the SRS roadmap here. Feel free to influence the roadmap by submitting your requests. https://github.com/vmware/script-runtime-service-for-vsphere/projects/2 https://twitter.com/PowerCLI/status/1337370157551796225

VMware PowerCLI@PowerCLI

Introduction to Script Runtime Service (SRS) for vSphere https://blogs.vmware.com/PowerCLI/2020/12/introduction-to-script-runtime-service-srs-for-vsphere.html

Reply on Twitter 1348606798492618752Retweet on Twitter 13486067984926187524Like on Twitter 13486067984926187528Twitter 1348606798492618752
jeroen_burenJeroen Buren@jeroen_buren·
7 Jan

New blogpost about Script Runtime Service for vSphere.
https://configmgr.nl/2021/01/07/testing-script-runtime-service-for-vsphere-part-1/

#VMware #vSphere #SRS #PowerCLI

Reply on Twitter 1347191971002118144Retweet on Twitter 1347191971002118144Like on Twitter 1347191971002118144Twitter 1347191971002118144
jeroen_burenJeroen Buren@jeroen_buren·
18 Dec

Nice!! https://www.formula1.com/en/latest/article.breaking-perez-to-partner-verstappen-at-red-bull-in-2021-as-albon-becomes.21qHfmHAyfzAjVHT3PfVBd.html

Reply on Twitter 1339935240069001218Retweet on Twitter 1339935240069001218Like on Twitter 13399352400690012181Twitter 1339935240069001218
Retweet on TwitterJeroen Buren Retweeted
vRealizeAutovRealize Automation@vRealizeAuto·
16 Dec

#vRA x Terraform part 1 — #Cloud Automation Essentials☁️

Check out this blog to explore how you can use vRealize Automation and Terraform in effective ways.👍 https://bit.ly/3r2sLxE

Reply on Twitter 1339261564931727368Retweet on Twitter 13392615649317273686Like on Twitter 13392615649317273685Twitter 1339261564931727368
Load More...
Proudly powered by WordPress | Theme: Doo by ThemeVS.