This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################## RBAC ROLES SCRIPT ############################ | |
# | |
#Author DJD 4/11/2017 ### | |
################################################################ | |
# | |
##Login to Azure ARM | |
##This script gathers information about Azure ARM REsources | |
$azureAccountName ="username@.onmicrosoft.com" | |
$azurePassword = ConvertTo-SecureString "passwordhere" -AsPlainText -Force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Author DJD #### | |
### Login to Azure and Switch to ARM Mode #### | |
############## Change Variable to match the nameing conventions and VNET you are deploying ################## | |
#### Variables ############################################################################################################################ | |
$RG= "D-RGE-DMZ01" ## Name of Resource Group## | |
$LOC= "East US" ### Location of Resource Group and Resources | |
$LOC2 = "East US 2" ####Automation Account Location ###### | |
$STA1 ="dedatadmz01" ## First Storage Account for IOS Data ##### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### This is the Retention Polocy | |
# Create Retention Policy object. Has to be modified from existing 'default' values provided by Azure | |
$RetPol = Get-AzureRmRecoveryServicesBackupRetentionPolicyObject -WorkloadType "AzureVM" | |
$BackupTime = (Get-Date).ToUniversalTime().Date.AddHours(23) | |
$Day = $true | |
$DayTime = $BackupTime | |
$DayRet = 1 #How many days? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###This Script creates Policies based on your requirements### | |
###DJD### | |
###8/17/2015 ### | |
##Login to Azure ARM | |
##This script gathers information about Azure ARM REsources | |
$azureAccountName ="YourAccountName" | |
$azurePassword = ConvertTo-SecureString "xxxxxxxxxxx" -AsPlainText -Force | |
$psCred = New-Object System.Management.Automation.PSCredential($azureAccountName, $azurePassword) | |
Add-AzureRmAccount -Credential $psCred |