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

prismacloud logo
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks

    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>",
    });
    
    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>")
    
    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
    	})
    }
    
    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>",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: prismacloud:getAzureTemplate
          arguments:
            accountType: account
            deploymentType: azure
            fileName: <file-name>
            subscriptionId: <subscription-id>
            tenantId: <tenant_id>
    

    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>",
    });
    
    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>")
    
    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
    	})
    }
    
    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>",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: prismacloud:getAzureTemplate
          arguments:
            accountType: tenant
            deploymentType: azure
            fileName: <file-name>
            tenantId: <tenant-id>
    

    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>",
    });
    
    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>")
    
    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
    	})
    }
    
    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>",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: prismacloud:getAzureTemplate
          arguments:
            accountType: tenant
            deploymentType: azure
            fileName: <file-name>
            rootSyncEnabled: true
            tenantId: <tenant-id>
    

    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>
    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]
    func GetAzureTemplate(ctx *Context, args *GetAzureTemplateArgs, opts ...InvokeOption) (*GetAzureTemplateResult, error)
    func GetAzureTemplateOutput(ctx *Context, args *GetAzureTemplateOutputArgs, opts ...InvokeOption) GetAzureTemplateResultOutput

    > 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)
    }
    public static CompletableFuture<GetAzureTemplateResult> getAzureTemplate(GetAzureTemplateArgs args, InvokeOptions options)
    public static Output<GetAzureTemplateResult> getAzureTemplate(GetAzureTemplateArgs args, InvokeOptions options)
    
    fn::invoke:
      function: prismacloud:index/getAzureTemplate:getAzureTemplate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountType string
    Azure account type.
    FileName string
    File name to store azure template (Provide filename along with path to store azure template).
    TenantId 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 string
    Azure account type.
    FileName string
    File name to store azure template (Provide filename along with path to store azure template).
    TenantId 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 String
    Azure account type.
    fileName String
    File name to store azure template (Provide filename along with path to store azure template).
    tenantId 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 string
    Azure account type.
    fileName string
    File name to store azure template (Provide filename along with path to store azure template).
    tenantId 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 str
    Azure account type.
    file_name str
    File name to store azure template (Provide filename along with path to store azure template).
    tenant_id 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 String
    Azure account type.
    fileName String
    File name to store azure template (Provide filename along with path to store azure template).
    tenantId 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.
    prismacloud logo
    prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks