diff --git a/.ci/azure-pipelines-v2.yml b/.ci/azure-pipelines-v2.yml index 2d1540e..256abe6 100644 --- a/.ci/azure-pipelines-v2.yml +++ b/.ci/azure-pipelines-v2.yml @@ -14,7 +14,7 @@ resources: - repository: aitemplates type: github name: microsoft/AI - endpoint: AIArchitecturesAndPractices-GitHub + endpoint: AIArchitecturesAndPractices-GitHub trigger: batch: true @@ -29,9 +29,11 @@ pr: - master stages: -- template: .ci/stages/deploy_notebooks_stages_v2.yml@aitemplates +- template: .ci/stages/deploy_container_stages_v2.yml@aitemplates parameters: Agent: $(Agent_Name) jobDisplayName: RMLAKSDeployAMLJob DefaultWorkingDirectory: $(System.DefaultWorkingDirectory) workload_vars: ../vars/rml_realtime_scoring.yml + sp_appid: $(sp_appid) + sp_password: $(sp_password) \ No newline at end of file diff --git a/01_create_resources.R b/01_create_resources.R index 6a70f35..8490a49 100644 --- a/01_create_resources.R +++ b/01_create_resources.R @@ -9,11 +9,11 @@ source("resource_specs.R") # create ARM and Graph logins az <- try(get_azure_login(tenant), silent=TRUE) if(inherits(az, "try-error")) - az <- create_azure_login(tenant, auth_type="device_code") + az <- create_azure_login(tenant, app=app_id, password=password) gr <- try(get_graph_login(tenant), silent=TRUE) if(inherits(gr, "try-error")) - gr <- create_graph_login(tenant, auth_type="device_code") + gr <- create_graph_login(tenant, app=app_id, password=password) sub <- az$get_subscription(sub_id) diff --git a/DESCRIPTION b/DESCRIPTION new file mode 100644 index 0000000..908cfc4 --- /dev/null +++ b/DESCRIPTION @@ -0,0 +1,22 @@ +Package: realtimeRDeployment +Title: Deploy Real Time R Service +Version: 0.0.0.0 +Authors@R: + c(person(given = "Hong", + family = "Ooi", + role = c("aut", "cre"), + email = "hongooi@microsoft.com", + comment = c(ORCID = "0000-0002-2739-7082")), + person(given = "RStudio", + role = c("cph", "fnd"))) +Description: What the package does (one paragraph). +License: MIT + file LICENSE +Encoding: UTF-8 +LazyData: true +Suggests: + testthat (>= 2.1.0), + xml2, + covr +URL: https://github.com/Azure/RealtimeRDeployment +BugReports: https://github.com/Azure/RealtimeRDeployment/issues +RoxygenNote: 6.1.1 diff --git a/resource_specs.R b/resource_specs.R index 0d7d541..6d6ee06 100644 --- a/resource_specs.R +++ b/resource_specs.R @@ -31,6 +31,8 @@ email <- "your.email@tenant.com" # service username username <- "ml-model-user" +app_id <- "your ap id" + # service password password <- stop("Must specify a password!")