code: public DeploymentExtendedInner createOrUpdate(String resourceGroupName, String deploymentName, DeploymentProperties properties) {
          return createOrUpdateWithServiceResponseAsync(resourceGroupName, deploymentName, properties).toBlocking().last().body();
      }
docs: Deploys resources to a resource group.
  You can provide the template and parameters directly in the request or link to JSON files.
  
  @param resourceGroupName The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist.
  @param deploymentName The name of the deployment.
  @param properties The deployment properties.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the DeploymentExtendedInner object if successful.