Share this page

# lr_azure_set_service_port

Specifies a port for the local Azure API Service.

## C Language

`int lr_azure_set_service_port(int portNum);`

## Arguments

Name | Comments
--- | ---
portNum | Port number for connection to the local Azure API service. The default port is 16888.

## Return Values

C Language: Returns 0 on success, or 1 for an error.

## Parameterization

All string input arguments can be passed using standard parameterization.

## Example

Copy code

    Action ()
    {
        int   rc;
        rc = lr_azure_set_service_port(16888);

        rc = lr_azure_ad_client_get_token("ResultParamName=token1",
                                           "TenantID=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
                                           "ClientID=xxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxx",
                                           "ClientSecret=xxxxxxxxxxxxxxxx", LAST);

            lr_output_message("token value is %s",lr_eval_string("{token1}"));

        rc = lr_azure_kv_get_secret("ResultParamName=secret1",
                                     "VaultURL=https://xxxxkeyvtest.vault.azure.net",
                                     "SecretName=ProductSecret",
                                     "Token={token1}", LAST);

           lr_output_message("secret1 value is %s",lr_eval_string("{secret1}"));

    }

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: