You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Upload the .cer file to your subscription [in the old portal](https://manage.windowsazure.com/)
31
-
- Upload the .pfx file to the certificates under Assets in the automation account that you want to use on Azure. You will use the password you gave in the previous step to authenticate it.
32
-
2. Create new a new credentials asset to authenticate your server with.
33
-
- Under assets, click on Credentials, and then click on Add a credential.
34
-
- Name the credential and give the username and password that you will be logging into the server with.
35
-
3. Create a new variable asset to pass the storage key of the Azure storage account you will be using.
36
-
- Under assets, click on variables and then Add a variable.
37
-
- Give the value of the storage key and you can make it encrypted so that only Azure Automation can read the variable and it won't show the key in plaintext if someone looks at the variable.
38
-
4. Set Up Log Analytics (OMS) and Alerts
39
-
- If you don't have Log Analytics set up on your Azure account, follow [these](https://azure.microsoft.com/en-us/documentation/articles/automation-manage-send-joblogs-log-analytics/) instructions for setting it up.
11
+
## Prerequisite Set Up
12
+
13
+
1. Create and set up your Azure Automation Account
14
+
- Create an Azure Automation Account by [following the instructions here](https://docs.microsoft.com/en-us/azure/automation/automation-sec-configure-azure-runas-account).
15
+
2. Add Azure Automation Credential assets for your SQL Azure servers
16
+
- Create your Automation Credential for each of your SQL Azure servers you intend to export by [following the instructions here](https://docs.microsoft.com/en-us/azure/automation/automation-credentials#creating-a-new-credential-asset).
17
+
3. Create the Azure Storage Account to hold your bacpac files
18
+
- Create the Storage Account by [following the instructions here](https://docs.microsoft.com/en-us/azure/storage/storage-create-storage-account#create-a-storage-account).
19
+
- Copy your Storage Account access keys by [following the instructions here](https://docs.microsoft.com/en-us/azure/storage/storage-create-storage-account#view-and-copy-storage-access-keys).
20
+
- Create an Azure Automation string Variable asset for your Storage Account access key by [following the instructions here](https://docs.microsoft.com/en-us/azure/automation/automation-variables#creating-an-automation-variable).
21
+
4. Set Up Log Analytics (OMS) and Alerts (optional for alerting)
22
+
- If you don't have Log Analytics set up on your Azure account, [follow these](https://docs.microsoft.com/en-us/azure/automation/automation-manage-send-joblogs-log-analytics) instructions for setting it up.
40
23
5. Set Up Log Analytics Alerts
41
24
- To send yourself an email if an error occurs or one of the jobs fails, you need to set up alerts.
42
25
- Select your log analytics account that you want to use in the azure portal and click on the OMS Portal box under Management.
@@ -55,9 +38,7 @@ Provides the scripts and lists the steps to set up automatically exporting your
55
38
- $waitTimeInMinutes: This tells the script how long it can wait for an operation to complete before it fails.
56
39
- $storageKeyVariableName: This is the AutomationAccount you created the StorageKey variable under (probably the same one you are running the RunBook under) and -Name is the name of the variable.
57
40
- $storageAccountName: This is the name of the storage account you are exporting to.
58
-
- $automationCertificateName for Get-AutomationCertificate: This is the name of the certificate you setup to authenticate with Azure.
59
-
- $subId: The ID of the subscription you are using. This will be used to tell Azure Automation which subscription to use.
60
-
- $subName: The name of the subscription you are using. This will be used to tell Azure Automation which subscription to use.
41
+
- $connectionAssetName: Connection Asset Name for Authenticating (Keep as AzureClassicRunAsConnection if you created the default RunAs accounts)
61
42
2. In AutoExportBlobRetention, here are the values that need to be modified:
62
43
- -Name for Get-AzureAutomationVariable: This is the AutomationAccount you created the StorageKey variable under (probably the same one you are running the RunBook under) and -Name is the name of the variable.
63
44
- $storageContainer: This is the name of the storage container where you will be monitoring the exported blobs.
0 commit comments