Showcase how to use PowerShell to call a seperate ARM Template and deploy into Azure
description: This template teaches how to create a Standard Storage Account products:
- azure
- azure-resource-manager languages:
- json
This template creates a standard storage account.
If you're new to Azure Storage account, see:
- Azure Storage account quickstart article
- Azure Storage account template reference
- Quickstart templates
If you're new to the template development, see:
- Git installed [accept the defaults] (Downloadable from here https://git-scm.com/download/win)
- Az PowerShell Modules Installed (Find install instructions here https://learn.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-9.3.0)
Clone this repo to your local machine. You can do this by opening PowerShell and running Git Clone [Make sure you have Git installed]
git clone https://github.com/WernerRall147/PSARMDemo.git
Open the files in Visual Studio Code or Notepad. We will be modifying our azuredeploy.json file
Lets take a look at the deploy.ps1 file
Open PowerShell on your machine. 'cd' or Change Directory to where our Deploy.ps1 Script is (the same directory as where you cloned this repo into)
Run the Deploy.ps1 file by entering
.\deploy.ps1
Congratulations! You have just deployed your first ARM Template using PowerShell. To confirm this you can go to https://portal.azure.com and navigate to the Resource Group you specified in Step 4.
Tags: Azure Storage account, Resource Manager, Resource Manager templates, ARM templates, Microsoft.Storage/storageAccounts