Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <#
- .NOTES
- #---------------------------------------------------------------------------------------
- # Date : 12-07-2017
- # Script name : Set-AzureRMTags.ps1
- # Description : Set tags on Azure RM resources
- # Created by : Ralph Jansen
- # Extra module :
- # Copyright : ©2017 Ralph Jansen, all rights reserved.
- # History : RJA 12-07-2017 Initial version
- #
- #---------------------------------------------------------------------------------------
- .DESCRIPTION
- Set tags on Azure RM resources
- #>
- Start-Transcript -Path '$env:tmp\Set-AzureRMTags.log' -Force
- Write-Verbose -Verbose "Script started..."
- Import-Module "C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ServiceManagement\Azure\Azure.psd1"
- Login-AzureRmAccount -SubscriptionName "<replace with subscription name>"
- Find-AzureRmResource | Set-AzureRmResource -Tag @{ DEPARTMENT="Marketing"; ENVIRONMENT="DEVELOPMENT" } -Force
- Stop-Transcript
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement