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
run: az login --service-principal --username $AZURE_APP_ID --password $AZURE_PASSWORD --tenant $AZURE_TENANT
63
+
64
+
- name: Build and Run Loader
65
+
run: go run cmd/loader.go --config cmd/config_azure_trace.json
66
+
67
+
- name: Check the output
68
+
run: test -f "data/out/experiment_duration_5.csv" && test $(grep true data/out/experiment_duration_5.csv | wc -l) -eq 0 # test the output file for errors (true means failure to invoke)
Copy file name to clipboardexpand all lines: docs/loader.md
+45-1
Original file line number
Diff line number
Diff line change
@@ -262,4 +262,48 @@ Note:
262
262
- Under `Manage Quota`, select`AWS Lambda` service and click `View quotas` (Alternatively, click [here](https://us-east-1.console.aws.amazon.com/servicequotas/home/services/lambda/quotas))
263
263
- Under `Quota name`, select`Concurrent executions` and click `Request increase at account level` (Alternatively, click [here](https://us-east-1.console.aws.amazon.com/servicequotas/home/services/lambda/quotas/L-B99A9384))
264
264
- Under `Increase quota value`, input `1000` and click `Request`
265
-
- Await AWS Support Team to approve the request. The request may take several days or weeks to be approved.
265
+
- Await AWS Support Team to approve the request. The request may take several days or weeks to be approved.
266
+
267
+
## Using Azure Functions
268
+
269
+
**Pre-requisites:**
270
+
1. Microsoft Azure account with an active subscription ID
271
+
2. Existing Service Principal for authentication (refer to Notes section)
2. Use existing Service Principal credentials in order login to Azure.
282
+
```bash
283
+
az login --service-principal --username $AZURE_APP_ID --password $AZURE_PASSWORD --tenant $AZURE_TENANT
284
+
```
285
+
> Refer to Note section for generation of Service Principal credentials
286
+
3. Start the Azure Functions deployment experiment:
287
+
```bash
288
+
go run cmd/loader.go --config cmd/config_azure_trace.json
289
+
```
290
+
---
291
+
Notes:
292
+
293
+
- Service Principal must be created before running experiment, as some environments do not have browsers (e.g. CloudLab). Perform these steps in an environment that allows launching of browser and use the generated credentials.
294
+
- Log in as a user (Note: This will open a browser window to selectAzure account):
295
+
```bash
296
+
az login
297
+
```
298
+
- Create an Azure Service Principal:
299
+
```bash
300
+
az ad sp create-for-rbac --name "InVitro" --role Contributor --scopes /subscriptions/<your-subscription-id>
301
+
```
302
+
- Set the following values in the environment that the experiment is being run and return to Step 2 of setup:
303
+
```bash
304
+
export AZURE_APP_ID=<appId>
305
+
export AZURE_PASSWORD=<password>
306
+
export AZURE_TENANT=<tenant>
307
+
```
308
+
- Current deployment is via ZIP
309
+
- Python is used fordeployment workload as Go is not supportedin Consumption Plan
0 commit comments