Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. # Fill in the blanks with appropriate values
  2. library(AzureSMR)
  3. client_id <- "---------------------"
  4. app_key <- "---------------------"
  5. tenant_id <- "---------------------"
  6.  
  7. sc <- createAzureContext(tenantID = tenant_id, clientID = client_id, authKey = app_key)
  8. rgs <- azureListRG(sc)
  9. rgs
  10.  
  11. azureListVM(sc, resourceGroup = rg, verbose = TRUE)
  12.  
  13. azureListHDI(sc)
  14.  
  15.  
  16. # Create HDI Cluster ------------------------------------------------------
  17.  
  18. system.time(azureCreateHDI(sc,
  19. clustername = "---------------------",
  20. location = "centralus",
  21. storageAccount = "---------------------",
  22. resourceGroup = rg,
  23. componentVersion = "3.5",
  24. subscriptionID = "---------------------",
  25. version = "3.5",
  26. kind = "rserver",
  27. workers = 4,
  28. vmSize = "Standard_D13_V2",
  29. adminUser = "admin",
  30. adminPassword = "---------------------",
  31. sshUser = "---------------------",
  32. sshPassword = "---------------------")
  33. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement