-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDeploy_the_SQL_Resource_Provider.ps1
More file actions
29 lines (23 loc) · 1.67 KB
/
Deploy_the_SQL_Resource_Provider.ps1
File metadata and controls
29 lines (23 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Install the AzureRM.Bootstrapper module, set the profile, and install AzureRM and AzureStack modules
Install-Module -Name AzureRm.BootStrapper -Force
Use-AzureRmProfile -Profile 2017-03-09-profile
Install-Module -Name AzureStack -RequiredVersion 1.2.11 -Force
# Use the NetBIOS name for the Azure Stack domain. On ASDK, the default is AzureStack
$domain = "AzureStack"
# Point to the directory where the RP installation files were extracted
$tempDir = 'D:\AzureStack\AzureStackSQLPlattform'
# The service admin account (can be AAD or ADFS)
$serviceAdmin = "user@abcdefg.onmicrosoft.com"
$AdminPass = ConvertTo-SecureString "Password" -AsPlainText -Force
$AdminCreds = New-Object System.Management.Automation.PSCredential ($serviceAdmin, $AdminPass)
# Set the credentials for the Resource Provider VM
$vmLocalAdminPass = ConvertTo-SecureString "Password" -AsPlainText -Force
$vmLocalAdminCreds = New-Object System.Management.Automation.PSCredential ("sqlrpadmin", $vmLocalAdminPass)
# and the cloudadmin credential required for Privileged Endpoint access
$CloudAdminPass = ConvertTo-SecureString "Password" -AsPlainText -Force
$CloudAdminCreds = New-Object System.Management.Automation.PSCredential ("$domain\azurestackadmin", $CloudAdminPass)
# change the following as appropriate
$PfxPass = ConvertTo-SecureString "Password" -AsPlainText -Force
# Change directory to the folder where you extracted the installation files
# and adjust the endpoints
.$tempDir\DeploySQLProvider.ps1 -AzCredential $AdminCreds -VMLocalCredential $vmLocalAdminCreds -CloudAdminCredential $CloudAdminCreds -PrivilegedEndpoint '192.168.200.225' -DefaultSSLCertificatePassword $PfxPass -DependencyFilesLocalPath $tempDir\cert