1. Packages
  2. Prismacloud Provider
  3. API Docs
  4. getAzureTemplate
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks

prismacloud.getAzureTemplate

Explore with Pulumi AI

Retrieve information about azure template for azure account.

Example Usage

Azure Subscription

import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";

const example = prismacloud.getAzureTemplate({
    accountType: "account",
    deploymentType: "azure",
    fileName: "<file-name>",
    subscriptionId: "<subscription-id>",
    tenantId: "<tenant_id>",
});
Copy
import pulumi
import pulumi_prismacloud as prismacloud

example = prismacloud.get_azure_template(account_type="account",
    deployment_type="azure",
    file_name="<file-name>",
    subscription_id="<subscription-id>",
    tenant_id="<tenant_id>")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/prismacloud/prismacloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := prismacloud.GetAzureTemplate(ctx, &prismacloud.GetAzureTemplateArgs{
			AccountType:    "account",
			DeploymentType: pulumi.StringRef("azure"),
			FileName:       "<file-name>",
			SubscriptionId: pulumi.StringRef("<subscription-id>"),
			TenantId:       "<tenant_id>",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Prismacloud = Pulumi.Prismacloud;

return await Deployment.RunAsync(() => 
{
    var example = Prismacloud.GetAzureTemplate.Invoke(new()
    {
        AccountType = "account",
        DeploymentType = "azure",
        FileName = "<file-name>",
        SubscriptionId = "<subscription-id>",
        TenantId = "<tenant_id>",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prismacloud.PrismacloudFunctions;
import com.pulumi.prismacloud.inputs.GetAzureTemplateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = PrismacloudFunctions.getAzureTemplate(GetAzureTemplateArgs.builder()
            .accountType("account")
            .deploymentType("azure")
            .fileName("<file-name>")
            .subscriptionId("<subscription-id>")
            .tenantId("<tenant_id>")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: prismacloud:getAzureTemplate
      arguments:
        accountType: account
        deploymentType: azure
        fileName: <file-name>
        subscriptionId: <subscription-id>
        tenantId: <tenant_id>
Copy

Azure Active Directory

import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";

const example = prismacloud.getAzureTemplate({
    accountType: "tenant",
    deploymentType: "azure",
    fileName: "<file-name>",
    tenantId: "<tenant-id>",
});
Copy
import pulumi
import pulumi_prismacloud as prismacloud

example = prismacloud.get_azure_template(account_type="tenant",
    deployment_type="azure",
    file_name="<file-name>",
    tenant_id="<tenant-id>")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/prismacloud/prismacloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := prismacloud.GetAzureTemplate(ctx, &prismacloud.GetAzureTemplateArgs{
			AccountType:    "tenant",
			DeploymentType: pulumi.StringRef("azure"),
			FileName:       "<file-name>",
			TenantId:       "<tenant-id>",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Prismacloud = Pulumi.Prismacloud;

return await Deployment.RunAsync(() => 
{
    var example = Prismacloud.GetAzureTemplate.Invoke(new()
    {
        AccountType = "tenant",
        DeploymentType = "azure",
        FileName = "<file-name>",
        TenantId = "<tenant-id>",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prismacloud.PrismacloudFunctions;
import com.pulumi.prismacloud.inputs.GetAzureTemplateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = PrismacloudFunctions.getAzureTemplate(GetAzureTemplateArgs.builder()
            .accountType("tenant")
            .deploymentType("azure")
            .fileName("<file-name>")
            .tenantId("<tenant-id>")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: prismacloud:getAzureTemplate
      arguments:
        accountType: tenant
        deploymentType: azure
        fileName: <file-name>
        tenantId: <tenant-id>
Copy

Azure Tenant

import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";

const example = prismacloud.getAzureTemplate({
    accountType: "tenant",
    deploymentType: "azure",
    fileName: "<file-name>",
    rootSyncEnabled: true,
    tenantId: "<tenant-id>",
});
Copy
import pulumi
import pulumi_prismacloud as prismacloud

example = prismacloud.get_azure_template(account_type="tenant",
    deployment_type="azure",
    file_name="<file-name>",
    root_sync_enabled=True,
    tenant_id="<tenant-id>")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/prismacloud/prismacloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := prismacloud.GetAzureTemplate(ctx, &prismacloud.GetAzureTemplateArgs{
			AccountType:     "tenant",
			DeploymentType:  pulumi.StringRef("azure"),
			FileName:        "<file-name>",
			RootSyncEnabled: pulumi.BoolRef(true),
			TenantId:        "<tenant-id>",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Prismacloud = Pulumi.Prismacloud;

return await Deployment.RunAsync(() => 
{
    var example = Prismacloud.GetAzureTemplate.Invoke(new()
    {
        AccountType = "tenant",
        DeploymentType = "azure",
        FileName = "<file-name>",
        RootSyncEnabled = true,
        TenantId = "<tenant-id>",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prismacloud.PrismacloudFunctions;
import com.pulumi.prismacloud.inputs.GetAzureTemplateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = PrismacloudFunctions.getAzureTemplate(GetAzureTemplateArgs.builder()
            .accountType("tenant")
            .deploymentType("azure")
            .fileName("<file-name>")
            .rootSyncEnabled(true)
            .tenantId("<tenant-id>")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: prismacloud:getAzureTemplate
      arguments:
        accountType: tenant
        deploymentType: azure
        fileName: <file-name>
        rootSyncEnabled: true
        tenantId: <tenant-id>
Copy

Using getAzureTemplate

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getAzureTemplate(args: GetAzureTemplateArgs, opts?: InvokeOptions): Promise<GetAzureTemplateResult>
function getAzureTemplateOutput(args: GetAzureTemplateOutputArgs, opts?: InvokeOptions): Output<GetAzureTemplateResult>
Copy
def get_azure_template(account_type: Optional[str] = None,
                       deployment_type: Optional[str] = None,
                       features: Optional[Sequence[str]] = None,
                       file_name: Optional[str] = None,
                       id: Optional[str] = None,
                       root_sync_enabled: Optional[bool] = None,
                       subscription_id: Optional[str] = None,
                       tenant_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetAzureTemplateResult
def get_azure_template_output(account_type: Optional[pulumi.Input[str]] = None,
                       deployment_type: Optional[pulumi.Input[str]] = None,
                       features: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       file_name: Optional[pulumi.Input[str]] = None,
                       id: Optional[pulumi.Input[str]] = None,
                       root_sync_enabled: Optional[pulumi.Input[bool]] = None,
                       subscription_id: Optional[pulumi.Input[str]] = None,
                       tenant_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetAzureTemplateResult]
Copy
func GetAzureTemplate(ctx *Context, args *GetAzureTemplateArgs, opts ...InvokeOption) (*GetAzureTemplateResult, error)
func GetAzureTemplateOutput(ctx *Context, args *GetAzureTemplateOutputArgs, opts ...InvokeOption) GetAzureTemplateResultOutput
Copy

> Note: This function is named GetAzureTemplate in the Go SDK.

public static class GetAzureTemplate 
{
    public static Task<GetAzureTemplateResult> InvokeAsync(GetAzureTemplateArgs args, InvokeOptions? opts = null)
    public static Output<GetAzureTemplateResult> Invoke(GetAzureTemplateInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAzureTemplateResult> getAzureTemplate(GetAzureTemplateArgs args, InvokeOptions options)
public static Output<GetAzureTemplateResult> getAzureTemplate(GetAzureTemplateArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: prismacloud:index/getAzureTemplate:getAzureTemplate
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountType This property is required. string
Azure account type.
FileName This property is required. string
File name to store azure template (Provide filename along with path to store azure template).
TenantId This property is required. string
Azure tenant ID.
DeploymentType string
Deployment type.
Features List<string>
List of features. If features key/field is not passed, then the default features will be applicable. Refer : **Supported features readme ** for more details.
Id string
RootSyncEnabled bool
Azure tenant has children. Must be set to true if account_type is tenant.
SubscriptionId string
Azure subscription ID.
AccountType This property is required. string
Azure account type.
FileName This property is required. string
File name to store azure template (Provide filename along with path to store azure template).
TenantId This property is required. string
Azure tenant ID.
DeploymentType string
Deployment type.
Features []string
List of features. If features key/field is not passed, then the default features will be applicable. Refer : **Supported features readme ** for more details.
Id string
RootSyncEnabled bool
Azure tenant has children. Must be set to true if account_type is tenant.
SubscriptionId string
Azure subscription ID.
accountType This property is required. String
Azure account type.
fileName This property is required. String
File name to store azure template (Provide filename along with path to store azure template).
tenantId This property is required. String
Azure tenant ID.
deploymentType String
Deployment type.
features List<String>
List of features. If features key/field is not passed, then the default features will be applicable. Refer : **Supported features readme ** for more details.
id String
rootSyncEnabled Boolean
Azure tenant has children. Must be set to true if account_type is tenant.
subscriptionId String
Azure subscription ID.
accountType This property is required. string
Azure account type.
fileName This property is required. string
File name to store azure template (Provide filename along with path to store azure template).
tenantId This property is required. string
Azure tenant ID.
deploymentType string
Deployment type.
features string[]
List of features. If features key/field is not passed, then the default features will be applicable. Refer : **Supported features readme ** for more details.
id string
rootSyncEnabled boolean
Azure tenant has children. Must be set to true if account_type is tenant.
subscriptionId string
Azure subscription ID.
account_type This property is required. str
Azure account type.
file_name This property is required. str
File name to store azure template (Provide filename along with path to store azure template).
tenant_id This property is required. str
Azure tenant ID.
deployment_type str
Deployment type.
features Sequence[str]
List of features. If features key/field is not passed, then the default features will be applicable. Refer : **Supported features readme ** for more details.
id str
root_sync_enabled bool
Azure tenant has children. Must be set to true if account_type is tenant.
subscription_id str
Azure subscription ID.
accountType This property is required. String
Azure account type.
fileName This property is required. String
File name to store azure template (Provide filename along with path to store azure template).
tenantId This property is required. String
Azure tenant ID.
deploymentType String
Deployment type.
features List<String>
List of features. If features key/field is not passed, then the default features will be applicable. Refer : **Supported features readme ** for more details.
id String
rootSyncEnabled Boolean
Azure tenant has children. Must be set to true if account_type is tenant.
subscriptionId String
Azure subscription ID.

getAzureTemplate Result

The following output properties are available:

AccountType string
FileName string
Id string
TenantId string
DeploymentType string
Features List<string>
RootSyncEnabled bool
SubscriptionId string
AccountType string
FileName string
Id string
TenantId string
DeploymentType string
Features []string
RootSyncEnabled bool
SubscriptionId string
accountType String
fileName String
id String
tenantId String
deploymentType String
features List<String>
rootSyncEnabled Boolean
subscriptionId String
accountType string
fileName string
id string
tenantId string
deploymentType string
features string[]
rootSyncEnabled boolean
subscriptionId string
accountType String
fileName String
id String
tenantId String
deploymentType String
features List<String>
rootSyncEnabled Boolean
subscriptionId String

Package Details

Repository
prismacloud paloaltonetworks/terraform-provider-prismacloud
License
Notes
This Pulumi package is based on the prismacloud Terraform Provider.