We recommend using Azure Native.
azure.network.SecurityPartnerProvider
Explore with Pulumi AI
Manages a Security Partner Provider which could be associated to virtual hub.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleVirtualWan = new azure.network.VirtualWan("example", {
name: "example-vwan",
resourceGroupName: example.name,
location: example.location,
});
const exampleVirtualHub = new azure.network.VirtualHub("example", {
name: "example-vhub",
resourceGroupName: example.name,
location: example.location,
virtualWanId: exampleVirtualWan.id,
addressPrefix: "10.0.2.0/24",
});
const exampleVpnGateway = new azure.network.VpnGateway("example", {
name: "example-vpngw",
location: example.location,
resourceGroupName: example.name,
virtualHubId: exampleVirtualHub.id,
});
const exampleSecurityPartnerProvider = new azure.network.SecurityPartnerProvider("example", {
name: "example-spp",
resourceGroupName: example.name,
location: example.location,
virtualHubId: exampleVirtualHub.id,
securityProviderName: "IBoss",
tags: {
ENV: "Prod",
},
}, {
dependsOn: [exampleVpnGateway],
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_virtual_wan = azure.network.VirtualWan("example",
name="example-vwan",
resource_group_name=example.name,
location=example.location)
example_virtual_hub = azure.network.VirtualHub("example",
name="example-vhub",
resource_group_name=example.name,
location=example.location,
virtual_wan_id=example_virtual_wan.id,
address_prefix="10.0.2.0/24")
example_vpn_gateway = azure.network.VpnGateway("example",
name="example-vpngw",
location=example.location,
resource_group_name=example.name,
virtual_hub_id=example_virtual_hub.id)
example_security_partner_provider = azure.network.SecurityPartnerProvider("example",
name="example-spp",
resource_group_name=example.name,
location=example.location,
virtual_hub_id=example_virtual_hub.id,
security_provider_name="IBoss",
tags={
"ENV": "Prod",
},
opts=pulumi.ResourceOptions(depends_on=[example_vpn_gateway]))
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleVirtualWan, err := network.NewVirtualWan(ctx, "example", &network.VirtualWanArgs{
Name: pulumi.String("example-vwan"),
ResourceGroupName: example.Name,
Location: example.Location,
})
if err != nil {
return err
}
exampleVirtualHub, err := network.NewVirtualHub(ctx, "example", &network.VirtualHubArgs{
Name: pulumi.String("example-vhub"),
ResourceGroupName: example.Name,
Location: example.Location,
VirtualWanId: exampleVirtualWan.ID(),
AddressPrefix: pulumi.String("10.0.2.0/24"),
})
if err != nil {
return err
}
exampleVpnGateway, err := network.NewVpnGateway(ctx, "example", &network.VpnGatewayArgs{
Name: pulumi.String("example-vpngw"),
Location: example.Location,
ResourceGroupName: example.Name,
VirtualHubId: exampleVirtualHub.ID(),
})
if err != nil {
return err
}
_, err = network.NewSecurityPartnerProvider(ctx, "example", &network.SecurityPartnerProviderArgs{
Name: pulumi.String("example-spp"),
ResourceGroupName: example.Name,
Location: example.Location,
VirtualHubId: exampleVirtualHub.ID(),
SecurityProviderName: pulumi.String("IBoss"),
Tags: pulumi.StringMap{
"ENV": pulumi.String("Prod"),
},
}, pulumi.DependsOn([]pulumi.Resource{
exampleVpnGateway,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleVirtualWan = new Azure.Network.VirtualWan("example", new()
{
Name = "example-vwan",
ResourceGroupName = example.Name,
Location = example.Location,
});
var exampleVirtualHub = new Azure.Network.VirtualHub("example", new()
{
Name = "example-vhub",
ResourceGroupName = example.Name,
Location = example.Location,
VirtualWanId = exampleVirtualWan.Id,
AddressPrefix = "10.0.2.0/24",
});
var exampleVpnGateway = new Azure.Network.VpnGateway("example", new()
{
Name = "example-vpngw",
Location = example.Location,
ResourceGroupName = example.Name,
VirtualHubId = exampleVirtualHub.Id,
});
var exampleSecurityPartnerProvider = new Azure.Network.SecurityPartnerProvider("example", new()
{
Name = "example-spp",
ResourceGroupName = example.Name,
Location = example.Location,
VirtualHubId = exampleVirtualHub.Id,
SecurityProviderName = "IBoss",
Tags =
{
{ "ENV", "Prod" },
},
}, new CustomResourceOptions
{
DependsOn =
{
exampleVpnGateway,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.VirtualWan;
import com.pulumi.azure.network.VirtualWanArgs;
import com.pulumi.azure.network.VirtualHub;
import com.pulumi.azure.network.VirtualHubArgs;
import com.pulumi.azure.network.VpnGateway;
import com.pulumi.azure.network.VpnGatewayArgs;
import com.pulumi.azure.network.SecurityPartnerProvider;
import com.pulumi.azure.network.SecurityPartnerProviderArgs;
import com.pulumi.resources.CustomResourceOptions;
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) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleVirtualWan = new VirtualWan("exampleVirtualWan", VirtualWanArgs.builder()
.name("example-vwan")
.resourceGroupName(example.name())
.location(example.location())
.build());
var exampleVirtualHub = new VirtualHub("exampleVirtualHub", VirtualHubArgs.builder()
.name("example-vhub")
.resourceGroupName(example.name())
.location(example.location())
.virtualWanId(exampleVirtualWan.id())
.addressPrefix("10.0.2.0/24")
.build());
var exampleVpnGateway = new VpnGateway("exampleVpnGateway", VpnGatewayArgs.builder()
.name("example-vpngw")
.location(example.location())
.resourceGroupName(example.name())
.virtualHubId(exampleVirtualHub.id())
.build());
var exampleSecurityPartnerProvider = new SecurityPartnerProvider("exampleSecurityPartnerProvider", SecurityPartnerProviderArgs.builder()
.name("example-spp")
.resourceGroupName(example.name())
.location(example.location())
.virtualHubId(exampleVirtualHub.id())
.securityProviderName("IBoss")
.tags(Map.of("ENV", "Prod"))
.build(), CustomResourceOptions.builder()
.dependsOn(exampleVpnGateway)
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleVirtualWan:
type: azure:network:VirtualWan
name: example
properties:
name: example-vwan
resourceGroupName: ${example.name}
location: ${example.location}
exampleVirtualHub:
type: azure:network:VirtualHub
name: example
properties:
name: example-vhub
resourceGroupName: ${example.name}
location: ${example.location}
virtualWanId: ${exampleVirtualWan.id}
addressPrefix: 10.0.2.0/24
exampleVpnGateway:
type: azure:network:VpnGateway
name: example
properties:
name: example-vpngw
location: ${example.location}
resourceGroupName: ${example.name}
virtualHubId: ${exampleVirtualHub.id}
exampleSecurityPartnerProvider:
type: azure:network:SecurityPartnerProvider
name: example
properties:
name: example-spp
resourceGroupName: ${example.name}
location: ${example.location}
virtualHubId: ${exampleVirtualHub.id}
securityProviderName: IBoss
tags:
ENV: Prod
options:
dependson:
- ${exampleVpnGateway}
Create SecurityPartnerProvider Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecurityPartnerProvider(name: string, args: SecurityPartnerProviderArgs, opts?: CustomResourceOptions);
@overload
def SecurityPartnerProvider(resource_name: str,
args: SecurityPartnerProviderArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecurityPartnerProvider(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
security_provider_name: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
virtual_hub_id: Optional[str] = None)
func NewSecurityPartnerProvider(ctx *Context, name string, args SecurityPartnerProviderArgs, opts ...ResourceOption) (*SecurityPartnerProvider, error)
public SecurityPartnerProvider(string name, SecurityPartnerProviderArgs args, CustomResourceOptions? opts = null)
public SecurityPartnerProvider(String name, SecurityPartnerProviderArgs args)
public SecurityPartnerProvider(String name, SecurityPartnerProviderArgs args, CustomResourceOptions options)
type: azure:network:SecurityPartnerProvider
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SecurityPartnerProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SecurityPartnerProviderArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SecurityPartnerProviderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurityPartnerProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecurityPartnerProviderArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var securityPartnerProviderResource = new Azure.Network.SecurityPartnerProvider("securityPartnerProviderResource", new()
{
ResourceGroupName = "string",
SecurityProviderName = "string",
Location = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
VirtualHubId = "string",
});
example, err := network.NewSecurityPartnerProvider(ctx, "securityPartnerProviderResource", &network.SecurityPartnerProviderArgs{
ResourceGroupName: pulumi.String("string"),
SecurityProviderName: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
VirtualHubId: pulumi.String("string"),
})
var securityPartnerProviderResource = new SecurityPartnerProvider("securityPartnerProviderResource", SecurityPartnerProviderArgs.builder()
.resourceGroupName("string")
.securityProviderName("string")
.location("string")
.name("string")
.tags(Map.of("string", "string"))
.virtualHubId("string")
.build());
security_partner_provider_resource = azure.network.SecurityPartnerProvider("securityPartnerProviderResource",
resource_group_name="string",
security_provider_name="string",
location="string",
name="string",
tags={
"string": "string",
},
virtual_hub_id="string")
const securityPartnerProviderResource = new azure.network.SecurityPartnerProvider("securityPartnerProviderResource", {
resourceGroupName: "string",
securityProviderName: "string",
location: "string",
name: "string",
tags: {
string: "string",
},
virtualHubId: "string",
});
type: azure:network:SecurityPartnerProvider
properties:
location: string
name: string
resourceGroupName: string
securityProviderName: string
tags:
string: string
virtualHubId: string
SecurityPartnerProvider Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The SecurityPartnerProvider resource accepts the following input properties:
- Resource
Group stringName - The name of the Resource Group where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- Security
Provider stringName - The security provider name. Possible values are
ZScaler
,IBoss
andCheckpoint
is allowed. Changing this forces a new resource to be created. - Location string
- The Azure Region where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- Name string
- The name which should be used for this Security Partner Provider. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Security Partner Provider.
- Virtual
Hub stringId - The ID of the Virtual Hub within which this Security Partner Provider should be created. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the Resource Group where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- Security
Provider stringName - The security provider name. Possible values are
ZScaler
,IBoss
andCheckpoint
is allowed. Changing this forces a new resource to be created. - Location string
- The Azure Region where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- Name string
- The name which should be used for this Security Partner Provider. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags which should be assigned to the Security Partner Provider.
- Virtual
Hub stringId - The ID of the Virtual Hub within which this Security Partner Provider should be created. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the Resource Group where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- security
Provider StringName - The security provider name. Possible values are
ZScaler
,IBoss
andCheckpoint
is allowed. Changing this forces a new resource to be created. - location String
- The Azure Region where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- name String
- The name which should be used for this Security Partner Provider. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags which should be assigned to the Security Partner Provider.
- virtual
Hub StringId - The ID of the Virtual Hub within which this Security Partner Provider should be created. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the Resource Group where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- security
Provider stringName - The security provider name. Possible values are
ZScaler
,IBoss
andCheckpoint
is allowed. Changing this forces a new resource to be created. - location string
- The Azure Region where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- name string
- The name which should be used for this Security Partner Provider. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags which should be assigned to the Security Partner Provider.
- virtual
Hub stringId - The ID of the Virtual Hub within which this Security Partner Provider should be created. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the Resource Group where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- security_
provider_ strname - The security provider name. Possible values are
ZScaler
,IBoss
andCheckpoint
is allowed. Changing this forces a new resource to be created. - location str
- The Azure Region where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- name str
- The name which should be used for this Security Partner Provider. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags which should be assigned to the Security Partner Provider.
- virtual_
hub_ strid - The ID of the Virtual Hub within which this Security Partner Provider should be created. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the Resource Group where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- security
Provider StringName - The security provider name. Possible values are
ZScaler
,IBoss
andCheckpoint
is allowed. Changing this forces a new resource to be created. - location String
- The Azure Region where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- name String
- The name which should be used for this Security Partner Provider. Changing this forces a new resource to be created.
- Map<String>
- A mapping of tags which should be assigned to the Security Partner Provider.
- virtual
Hub StringId - The ID of the Virtual Hub within which this Security Partner Provider should be created. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityPartnerProvider resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SecurityPartnerProvider Resource
Get an existing SecurityPartnerProvider resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SecurityPartnerProviderState, opts?: CustomResourceOptions): SecurityPartnerProvider
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
security_provider_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
virtual_hub_id: Optional[str] = None) -> SecurityPartnerProvider
func GetSecurityPartnerProvider(ctx *Context, name string, id IDInput, state *SecurityPartnerProviderState, opts ...ResourceOption) (*SecurityPartnerProvider, error)
public static SecurityPartnerProvider Get(string name, Input<string> id, SecurityPartnerProviderState? state, CustomResourceOptions? opts = null)
public static SecurityPartnerProvider get(String name, Output<String> id, SecurityPartnerProviderState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Location string
- The Azure Region where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- Name string
- The name which should be used for this Security Partner Provider. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the Resource Group where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- Security
Provider stringName - The security provider name. Possible values are
ZScaler
,IBoss
andCheckpoint
is allowed. Changing this forces a new resource to be created. - Dictionary<string, string>
- A mapping of tags which should be assigned to the Security Partner Provider.
- Virtual
Hub stringId - The ID of the Virtual Hub within which this Security Partner Provider should be created. Changing this forces a new resource to be created.
- Location string
- The Azure Region where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- Name string
- The name which should be used for this Security Partner Provider. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the Resource Group where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- Security
Provider stringName - The security provider name. Possible values are
ZScaler
,IBoss
andCheckpoint
is allowed. Changing this forces a new resource to be created. - map[string]string
- A mapping of tags which should be assigned to the Security Partner Provider.
- Virtual
Hub stringId - The ID of the Virtual Hub within which this Security Partner Provider should be created. Changing this forces a new resource to be created.
- location String
- The Azure Region where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- name String
- The name which should be used for this Security Partner Provider. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the Resource Group where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- security
Provider StringName - The security provider name. Possible values are
ZScaler
,IBoss
andCheckpoint
is allowed. Changing this forces a new resource to be created. - Map<String,String>
- A mapping of tags which should be assigned to the Security Partner Provider.
- virtual
Hub StringId - The ID of the Virtual Hub within which this Security Partner Provider should be created. Changing this forces a new resource to be created.
- location string
- The Azure Region where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- name string
- The name which should be used for this Security Partner Provider. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the Resource Group where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- security
Provider stringName - The security provider name. Possible values are
ZScaler
,IBoss
andCheckpoint
is allowed. Changing this forces a new resource to be created. - {[key: string]: string}
- A mapping of tags which should be assigned to the Security Partner Provider.
- virtual
Hub stringId - The ID of the Virtual Hub within which this Security Partner Provider should be created. Changing this forces a new resource to be created.
- location str
- The Azure Region where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- name str
- The name which should be used for this Security Partner Provider. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the Resource Group where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- security_
provider_ strname - The security provider name. Possible values are
ZScaler
,IBoss
andCheckpoint
is allowed. Changing this forces a new resource to be created. - Mapping[str, str]
- A mapping of tags which should be assigned to the Security Partner Provider.
- virtual_
hub_ strid - The ID of the Virtual Hub within which this Security Partner Provider should be created. Changing this forces a new resource to be created.
- location String
- The Azure Region where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- name String
- The name which should be used for this Security Partner Provider. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the Resource Group where the Security Partner Provider should exist. Changing this forces a new resource to be created.
- security
Provider StringName - The security provider name. Possible values are
ZScaler
,IBoss
andCheckpoint
is allowed. Changing this forces a new resource to be created. - Map<String>
- A mapping of tags which should be assigned to the Security Partner Provider.
- virtual
Hub StringId - The ID of the Virtual Hub within which this Security Partner Provider should be created. Changing this forces a new resource to be created.
Import
Security Partner Providers can be imported using the resource id
, e.g.
$ pulumi import azure:network/securityPartnerProvider:SecurityPartnerProvider example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/securityPartnerProviders/securityPartnerProvider1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.