Skip to content

Commit ff2912b

Browse files
committed
Updating to old version - Nov 14th
removing ARM template merge
1 parent bd46da4 commit ff2912b

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

MasterScript.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";"
5858
choco install git.install -y
5959
# refresh the PATH to recognize git
6060
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
61-
git clone "https://github.com/Azure-Samples/AzureStack-AdminPowerShell-OMSIntegration.git" C:\AZSAdminOMSInt
61+
git clone "https://github.com/ashika789/AzureStack-AdminPowerShell-OMSIntegration.git" C:\AZSAdminOMSInt
6262

6363
# installing powershell modules for azure stack.
6464
# NuGet required for Set-PsRepository PSGallery.

docs/setup.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# OMS Workspace
1+
# OMS Workspace
22

33
An OMS (Operations Management Suite) workspace is needed as the platform aggregating data from all Azure Stacks.
44

@@ -30,7 +30,7 @@ To see aggregated usage from all of your Azure Stacks, you need to deploy a data
3030

3131
### Step 1 - Install a VM in the Default Provider Subscription
3232
1. Login to admin portal
33-
2. Click Create a resource -> Everything -> Windows Server 2016 Datacenter - BYOL use only
33+
2. Create Windows Server 2016 VM
3434
3. Name VM: UploadToOMSVM
3535
4. Choose A1 Standard
3636
5. Wait for VM deployment to complete
@@ -58,6 +58,8 @@ The following are required to setup the environment. You should gather these var
5858
1. Update with the OMS/Log Analytics Workspace ID which can be found in the settings pane of your Log Analytics workspace
5959
#### OMSSharedKey = "<Log Analytics Workspace Shared Key>"
6060
1. Update with the OMS/Log Analytics Workspace Shared Key found in the settings pane of your Log Analytics workspace
61+
#### OEM = "<replace with your hardware vendor name>"
62+
1. Update with the name of your hardware vendor. Allows for reports in log analytics utilizing the OEM name.
6163

6264
### Step 4 – Update variables
6365
1. Open an elevated PowerShell ISE session
@@ -66,12 +68,12 @@ The following are required to setup the environment. You should gather these var
6668

6769
### Step 5 – Execute the script & update the scheduled task
6870
1. Run the InvokeMasterScript.ps1 now that the variables have been updated.
69-
2. Once the script completes, open Task Scheduler and update the Run As account to the Admin UserName and Password of the UploadToOMSVM VM.
70-
71+
2. Once the script completes, open Task Scheduler, right click on the newly created tasks named UsageDataUpload1 & OperationalDataUpload1, click Properties, and click "Change User or Group" (the Run As account) to the Admin UserName and Password of the UploadToOMSVM VM.
72+
3. Click Run. Operational Data will be piushed every 13 minutes now. Usage Data will be pushed at 9am every day.
7173

7274
The scripts sets up 2 scheduled tasks:
7375
1. Upload of 1-day worth of usage data provided from the Provider Usage API at 9am every day.
74-
2. Upload of operational data every 13 minutes. (Note this is disabled in the current release while the script for usage is fixed)
76+
2. Upload of operational data every 13 minutes.
7577

7678
The data are uploaded to the OMS workspace you specified in the ARM template.
7779

@@ -88,7 +90,7 @@ Note: For usage data, the script is setup to query and upload usage data reporte
8890
- The scheduled task(s) did not get set up. To check, rdp into the machine you deployed using the ARM template and launch **Task Scheduler** from Windows Start menu to check if there is a scheduled task called **UsageDataUpload**. If there isn't, it may help to check the logs for the custom script extension following question 1 step 3 and look for any errors with registering a scheduled task.
8991
- Unable to access the usage API. To check for this, look in `C:\AZSAdminOMSInt\UsageSummary.json` on the deployed VM, if there are no records here, that means `usagesummaryjson.ps1` failed at one point.
9092
- There are no usage data collected. On the deployed VM, if `C:\AZSAdminOMSInt\UsageSummary.json` shows an empty array, that most likely means there were no usage data available in the time frame specified (the day before yesterday).
91-
- If there are usage entries in `C:\AZSAdminOMSInt\UsageSummary.json` and the scheduled task exists, then the error likely occurred in `C:\AZSAdminOMSInt\uploadToOMS.ps1`, which uploads usage data to OMS from the json file.
93+
- If there are usage entries in `C:\AZSAdminOMSInt\UsageSummary.json` and the sceduled task exists, then the error likely occurred in `C:\AZSAdminOMSInt\uploadToOMS.ps1`, which uploads usage data to OMS from the json file.
9294

9395
# OMS Solution
9496

0 commit comments

Comments
 (0)