ConfigMgr

VMware, Azure and Automation

Creating Azure JSON templates with Visual Studio Code

6 mei 2017 Azure

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. [code language=”powershell”]New-AzureRmResourceGroupDeployment -Name "MyDeployment" -ResourceGroupName "MyResourceGroup" -TemplateFile "MySavedJSONFile"[/code]

Deploy SQL Server Certificate to your ConfigMgr Consoles

Restoring Task Sequences the easy way

Recent Posts

  • Using API for Aria OPS Chargeback
  • Unable to set reservation on Org VDC
  • Veeam Tweaks
  • VCF Anyone? Get your license for free…
  • Configure Entra ID as Cloud Director IdP

Recent Comments

Geen reacties om te tonen.

Archives

  • april 2025
  • maart 2025
  • november 2024
  • oktober 2024
  • januari 2024
  • november 2023
  • oktober 2023
  • september 2023
  • juni 2023
  • mei 2023
  • april 2023
  • november 2022
  • maart 2021
  • februari 2021
  • januari 2021
  • november 2020
  • oktober 2020
  • september 2020
  • juli 2020
  • juni 2020
  • april 2020
  • maart 2020
  • februari 2020
  • oktober 2019
  • september 2019
  • juli 2019
  • juni 2019
  • mei 2019
  • maart 2019
  • februari 2019
  • januari 2019
  • december 2018
  • november 2018
  • april 2018
  • januari 2018
  • juli 2017
  • juni 2017
  • mei 2017

Categories

  • AnyLinq
  • Azure
  • Cloud Director
  • ConfigMgr
  • DIY
  • HomeAssistant
  • Microsoft
  • PowerCli
  • Powershell
  • SCCM
  • Script
  • Solutions
  • System Center
  • Veeam
  • VMware
  • vRealize Automation
  • vRealize Orchestrator
Proudly powered by WordPress | Theme: Doo by ThemeVS.