I have an ARM template with the "subscription" scope, I can deploy it using the Azure CLI and the command: az deployment sub create
How do I use the Azure Java SDK to deploy this template? I have found this command that takes a resource group (or create a new one):
azureResourceManager.deployments().define(deploymentName)
.withExistingResourceGroup(rgName) //OR .withNewResourceGroup(rgName)
.withTemplate(templateJson)
.withParameters("{}")
.withMode(DeploymentMode.INCREMENTAL)
.create();
But I don't find a way to deploy at the subscription level. I know about the REST API but is there a way to do it using this Azure Java SDK?