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
Copy file name to clipboardExpand all lines: articles/sql-database/sql-database-xevent-code-event-file.md
+62-72Lines changed: 62 additions & 72 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ ms.workload: data-management
15
15
ms.tgt_pltfrm: na
16
16
ms.devlang: na
17
17
ms.topic: article
18
-
ms.date: 02/06/2017
18
+
ms.date: 10/04/2017
19
19
ms.author: genemi
20
20
21
21
---
@@ -65,176 +65,165 @@ The script starts with commands to clean up after a possible previous run, and i
65
65
* If you rerun the script without disrupting your session, you have the convenient option of commenting out the **Add-AzureAccount** command.
66
66
67
67
![PowerShell ISE, with Azure module installed, ready to run script.][30_powershell_ise]
68
-
68
+
;
69
69
70
70
### PowerShell code
71
71
72
+
This PowerShell script assumes you have already run the cmdlet Import-Module for the AzureRm module. For reference documentation, see [PowerShell Module Browser](https://docs.microsoft.com/powershell/module/).
73
+
72
74
```powershell
73
75
## TODO: Before running, find all 'TODO' and make each edit!!
74
76
75
-
#--------------- 1 -----------------------
76
-
77
-
78
-
# You can comment out or skip this Add-AzureAccount
79
-
# command after the first run.
80
-
# Current PowerShell environment retains the successful outcome.
81
-
82
-
'Expect a pop-up window in which you log in to Azure.'
77
+
cls;
83
78
79
+
#--------------- 1 -----------------------
84
80
85
-
Add-AzureAccount
81
+
'Script assumes you have already logged your PowerShell session into Azure.
82
+
But if not, run Add-AzureRmAccount (or Login-AzureRmAccount), just one time.';
83
+
#Add-AzureRmAccount; # Same as Login-AzureRmAccount.
86
84
87
85
#-------------- 2 ------------------------
88
86
89
-
90
87
'
91
88
TODO: Edit the values assigned to these variables, especially the first few!
92
-
'
89
+
';
93
90
94
91
# Ensure the current date is between
95
92
# the Expiry and Start time values that you edit here.
0 commit comments