Skip to content

Instantly share code, notes, and snippets.

@MertSenel
Created August 22, 2020 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MertSenel/bc0c7376ccbb5ab6507771599c7ca5e3 to your computer and use it in GitHub Desktop.
Save MertSenel/bc0c7376ccbb5ab6507771599c7ca5e3 to your computer and use it in GitHub Desktop.
Deploy-AzARMTemplate-region1.ps1
#Requires -Module @{ ModuleName = 'Az'; ModuleVersion = '4.2' }
[CmdletBinding()]
param (
[Parameter()][switch]$WhatIf,
[Parameter()][switch]$Test,
[Parameter()][switch]$Force
)
#region Configuration
#Deployment Assets Configuration
# Go Up one level so you can pick a project folder.
# This is here in case you want to keep your script in different folder.
$OperationsPath = Split-Path $PSScriptRoot
# Target the folder which desired ARM Template and Parameter files are in.
$ArmArtifactsPath = "$OperationsPath\infrastructure"
#Azure Environment Configuration
$TenantId = '#{YOUR-AZUREAD-TENANT-ID}#'
$SubscriptionId = '#{YOUR-AZURE-SUBSCRIPTION-ID}#'
#endregion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment