Skip to content

Commit

Permalink
Improve logging (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
sparsick authored Feb 18, 2022
1 parent f18b5bf commit 03c1dc7
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,16 @@ public static void createDeployment(final AciCloud cloud,
AciCleanTask.DeploymentRegistrar deploymentRegistrar = AciCleanTask.DeploymentRegistrar.getInstance();
deploymentRegistrar.registerDeployment(cloud.getName(), cloud.getResourceGroup(), deployName);

String armTemplateForDeployment = deploymentTemplate.deploymentTemplateAsString();
LOGGER.log(Level.FINE, "Deployment ARM Template: {0}", armTemplateForDeployment);
String armTemplateParameterForDeployment = deploymentTemplate.templateParameterAsString();
LOGGER.log(Level.FINE, "Deployment ARM Template Parameter: {0}", armTemplateParameterForDeployment);
final AzureResourceManager azureClient = cloud.getAzureClient();
azureClient.deployments()
.define(deployName)
.withExistingResourceGroup(cloud.getResourceGroup())
.withTemplate(deploymentTemplate.deploymentTemplateAsString())
.withParameters(deploymentTemplate.templateParameterAsString())
.withTemplate(armTemplateForDeployment)
.withParameters(armTemplateParameterForDeployment)
.withMode(DeploymentMode.INCREMENTAL)
.beginCreate();

Expand Down

0 comments on commit 03c1dc7

Please sign in to comment.