How to use the ms-rest-azure.AzureServiceClient function in ms-rest-azure

To help you get started, we’ve selected a few ms-rest-azure examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / oav / lib / util / executionEngine.js View on Github external
msrestazure.loginWithServicePrincipalSecret(clientId, secret, domain, function (err, creds, subscriptions) {
            if (err) {
              throw err;
            }
            let resourceClient = new ResourceManagementClient(creds, subscriptionId);
            let client = new msrestazure.AzureServiceClient(creds);
            self.createResourceGroup(resourceClient, location, resourceGroupName, function (err, resourceGroup) {
              if (err) {
                throw err;
              }
              client.sendRequest(req, function (err, result, request, response) {
                log.info(request);
                log.info(response);
                if (err) {
                  throw err;
                }
                log.info(result);
              });
            });
          });
        }