1 | ## Environment Variables Setup
|
2 |
|
3 | From an admin cmd console/terminal, at the root directory of your cloned repo, run the following for environment setup:
|
4 | * **Windows**
|
5 | ```
|
6 | set AZURE_GITHUB_PASSWORD=github password/access token
|
7 | set AZURE_GITHUB_REPOSITORY=username/reponame
|
8 | set AZURE_GITHUB_USERNAME=github_username
|
9 | set AZURE_GIT_USERNAME=git_username
|
10 | set AZURE_ARM_TEST_STORAGEACCOUNT=storage_account_name_created_in_the_subscription
|
11 | set AZURE_ARM_TEST_LOCATION=South Central US
|
12 | set AZURE_STORAGE_TEST_LOCATION=West US
|
13 | set AZURE_STORAGE_ACCESS_KEY=access-key_of_the_storage_account
|
14 | set AZURE_STORAGE_ACCOUNT=storage_account_name_created_in_the_subscription
|
15 | set AZURE_SITE_TEST_LOCATION=West US
|
16 | set AZURE_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=https;AccountName=storage_account;AccountKey=access_key
|
17 | set AZURE_SCM_SITE_SUFFIX=.scm.azurewebsites.net
|
18 | set AZURE_AD_TEST_PASSWORD=your_password
|
19 | ```
|
20 |
|
21 | * **OS X**, **Linux**
|
22 | ```
|
23 | export AZURE_GIT_USERNAME=git_username
|
24 | export AZURE_GITHUB_PASSWORD=github password/access token
|
25 | export AZURE_GITHUB_REPOSITORY=username/reponame
|
26 | export AZURE_GITHUB_USERNAME=github_username
|
27 | export AZURE_ARM_TEST_STORAGEACCOUNT=storage_account_name_created_in_the_subscription
|
28 | export AZURE_ARM_TEST_LOCATION="South Central US"
|
29 | export AZURE_STORAGE_TEST_LOCATION="West US"
|
30 | export AZURE_STORAGE_ACCESS_KEY=access-key_of_the_storage_account
|
31 | export AZURE_STORAGE_ACCOUNT=storage_account_name_created_in_the_subscription
|
32 | export AZURE_SITE_TEST_LOCATION="West US"
|
33 | export AZURE_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=https;AccountName=storage_account;AccountKey=access_key
|
34 | export AZURE_SCM_SITE_SUFFIX=.scm.azurewebsites.net
|
35 | export AZURE_AD_TEST_PASSWORD=your_password
|
36 | ```
|
37 |
|
38 | ### Running VM Tests
|
39 | Following environment variables need to be set for running vm tests:
|
40 | * **Windows**
|
41 | ```
|
42 | set AZURE_COMMUNITY_IMAGE_ID=vmdepot-40432-1-1 (Select any Image ID from deployment script of any image selected from https://vmdepot.msopentech.com)
|
43 | set AZURE_STORAGE_ACCESS_KEY=storage account access key
|
44 | set AZURE_STORAGE_ACCOUNT=storage account name
|
45 | set BLOB_SOURCE_PATH=path to the disk in a blob
|
46 | set SSHCERT=path to the pem file
|
47 | ```
|
48 |
|
49 | * **OS X**, **Linux**
|
50 | ```
|
51 | export AZURE_COMMUNITY_IMAGE_ID=vmdepot-40432-1-1 (Select any Image ID from deployment script of any image selected from https://vmdepot.msopentech.com)
|
52 | export AZURE_STORAGE_ACCESS_KEY=storage account access key
|
53 | export AZURE_STORAGE_ACCOUNT=storage account name
|
54 | export BLOB_SOURCE_PATH=path to the disk in a blob
|
55 | export SSHCERT=path to the pem file
|
56 | ```
|
57 |
|
58 | #### Note: Not all tests require all these environment variables, and if a required one is not set the test will fail and tell you which ones need to be set. |
\ | No newline at end of file |