UNPKG

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