Skip to content

Latest commit

 

History

History
63 lines (47 loc) · 3.24 KB

CLI_CreateAzureDestination.md

File metadata and controls

63 lines (47 loc) · 3.24 KB

Copyright (c) 2022, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Configure an Azure Publishing Destination

Note: Before you can use the models plug-in CLI to create a publishing destination, you must complete the prerequisites in the README.md file.

To list the models plug-in CLI help for the destination create commands, use one of the following commands:

sas-viya models destination create --help
sas-viya models destination createAzure --help

For more information about the models plug-in CLI commands and options, see SAS Viya: Models Command-Line Interface

Here are some examples of using the models plug-in to the SAS Viya CLI to create an Azure publishing destination.

Note: For the following CLI examples, you will be prompted to enter a client ID and secret after the command is submitted.

Example 1: Create an Azure Destination

sas-viya models destination create --type azure --name AzureDemo 
--identityId SASAdministrators --identityType group --baseRepoURL cefeed5719c54f0091ad7e1df5ac3a70.azurecr.io 
--tenantId b1c14d5c-3625-45b3-a430-9552373a0c2f --subscriptionId 224f27e0-745f-452c-a442-70e79d24ce7f 
--resourceGroupName modelManager --kubernetesCluster azureAKS  --region eastus --credDomainID domainAzure 
--validationNamespace default
 

OR

sas-viya models destination createAzure --name AzureDemo 
--identityId SASAdministrators --identityType group --baseRepoURL cefeed5719c54f0091ad7e1df5ac3a70.azurecr.io 
--tenantId b1c14d5c-3625-45b3-a430-9552373a0c2f --subscriptionId 224f27e0-745f-452c-a442-70e79d24ce7f 
--resourceGroupName modelManager --kubernetesCluster azureAKS  --region eastus --credDomainID domainAzure 
--validationNamespace default

Example 2: Create an Azure Destination with Git Support

sas-viya models destination createAzure --name AzureDemo 
--identityId SASAdministrators --identityType group --baseRepoURL cefeed5719c54f0091ad7e1df5ac3a70.azurecr.io 
--tenantId b1c14d5c-3625-45b3-a430-9552373a0c2f --subscriptionId 224f27e0-745f-452c-a442-70e79d24ce7f 
--resourceGroupName modelManager --kubernetesCluster azureAKS  --region eastus --credDomainID domainAzure 
--validationNamespace default --remoteRepoURL https://gitlab.myserver.com/sasdemo/sasdemo.git  --gitUserEmail [email protected] 
--gitUserId sasdemo --gitAccessToken D4bPHJvByqSFnxGBrQ73

Example 3: Create an Azure Destination with Git and Database Support

sas-viya models destination createAzure --name AzureDemo 
--identityId SASAdministrators --identityType group --baseRepoURL cefeed5719c54f0091ad7e1df5ac3a70.azurecr.io 
--tenantId b1c14d5c-3625-45b3-a430-9552373a0c2f --subscriptionId 224f27e0-745f-452c-a442-70e79d24ce7f 
--resourceGroupName modelManager --kubernetesCluster azureAKS  --region eastus --credDomainID domainAzure 
--validationNamespace default --remoteRepoURL https://gitlab.myserver.com/sasdemo/sasdemo.git  --gitUserEmail [email protected] 
--gitUserId sasdemo --gitAccessToken D4bPHJvByqSFnxGBrQ73 
--dbSecret oracle-secret-decision --dbConfigMap oracle-config