Skip to content

Commit

Permalink
Created AddSecurityDesignerModule.ps1 in AzureAutomation.
Browse files Browse the repository at this point in the history
  • Loading branch information
nboettcher committed Jan 31, 2018
1 parent db96a64 commit 97178e7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions AddSecurityDesignerModule.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Param(
[Parameter(Mandatory=$True,Position=1)]
[string]$sqlServer,

[Parameter(Mandatory=$True)]
[string]$database,

[Parameter(Mandatory=$True)]
[string]$product
)

$productsArray = $product.Split(';')

.\ExecuteSQLScript.ps1 -SQLSERVER $sqlServer -Database $database -FileName 'SecurityDesigner.sql'
.\AddTargetGroupMember.ps1 -SQLSERVER $sqlServer -Database $database -TargetGroup 'SecurityDesigner'

if ($productsArray -contains 'AX7')
{
.\ExecuteSQLScript.ps1 -SQLSERVER $sqlServer -Database $database -FileName 'SecurityDesignerAX7.sql'
.\AddTargetGroupMember.ps1 -SQLSERVER $sqlServer -Database $database -TargetGroup 'SecurityDesignerAX7'
}

0 comments on commit 97178e7

Please sign in to comment.