Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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);
});
});
});
}