Azure Classic v5.43.0, May 6 23
Azure Classic v5.43.0, May 6 23
azure.network.SecurityPartnerProvider
Explore with Pulumi AI
Manages a Security Partner Provider which could be associated to virtual hub.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var exampleVirtualWan = new Azure.Network.VirtualWan("exampleVirtualWan", new()
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
});
var exampleVirtualHub = new Azure.Network.VirtualHub("exampleVirtualHub", new()
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
VirtualWanId = exampleVirtualWan.Id,
AddressPrefix = "10.0.2.0/24",
});
var exampleVpnGateway = new Azure.Network.VpnGateway("exampleVpnGateway", new()
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
VirtualHubId = exampleVirtualHub.Id,
});
var exampleSecurityPartnerProvider = new Azure.Network.SecurityPartnerProvider("exampleSecurityPartnerProvider", new()
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
VirtualHubId = exampleVirtualHub.Id,
SecurityProviderName = "IBoss",
Tags =
{
{ "ENV", "Prod" },
},
}, new CustomResourceOptions
{
DependsOn = new[]
{
exampleVpnGateway,
},
});
});
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 {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleVirtualWan, err := network.NewVirtualWan(ctx, "exampleVirtualWan", &network.VirtualWanArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
})
if err != nil {
return err
}
exampleVirtualHub, err := network.NewVirtualHub(ctx, "exampleVirtualHub", &network.VirtualHubArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
VirtualWanId: exampleVirtualWan.ID(),
AddressPrefix: pulumi.String("10.0.2.0/24"),
})
if err != nil {
return err
}
exampleVpnGateway, err := network.NewVpnGateway(ctx, "exampleVpnGateway", &network.VpnGatewayArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
VirtualHubId: exampleVirtualHub.ID(),
})
if err != nil {
return err
}
_, err = network.NewSecurityPartnerProvider(ctx, "exampleSecurityPartnerProvider", &network.SecurityPartnerProviderArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.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
})
}
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleVirtualWan = new VirtualWan("exampleVirtualWan", VirtualWanArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.build());
var exampleVirtualHub = new VirtualHub("exampleVirtualHub", VirtualHubArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.virtualWanId(exampleVirtualWan.id())
.addressPrefix("10.0.2.0/24")
.build());
var exampleVpnGateway = new VpnGateway("exampleVpnGateway", VpnGatewayArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.virtualHubId(exampleVirtualHub.id())
.build());
var exampleSecurityPartnerProvider = new SecurityPartnerProvider("exampleSecurityPartnerProvider", SecurityPartnerProviderArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.virtualHubId(exampleVirtualHub.id())
.securityProviderName("IBoss")
.tags(Map.of("ENV", "Prod"))
.build(), CustomResourceOptions.builder()
.dependsOn(exampleVpnGateway)
.build());
}
}
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_virtual_wan = azure.network.VirtualWan("exampleVirtualWan",
resource_group_name=example_resource_group.name,
location=example_resource_group.location)
example_virtual_hub = azure.network.VirtualHub("exampleVirtualHub",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
virtual_wan_id=example_virtual_wan.id,
address_prefix="10.0.2.0/24")
example_vpn_gateway = azure.network.VpnGateway("exampleVpnGateway",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
virtual_hub_id=example_virtual_hub.id)
example_security_partner_provider = azure.network.SecurityPartnerProvider("exampleSecurityPartnerProvider",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
virtual_hub_id=example_virtual_hub.id,
security_provider_name="IBoss",
tags={
"ENV": "Prod",
},
opts=pulumi.ResourceOptions(depends_on=[example_vpn_gateway]))
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleVirtualWan = new azure.network.VirtualWan("exampleVirtualWan", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
});
const exampleVirtualHub = new azure.network.VirtualHub("exampleVirtualHub", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
virtualWanId: exampleVirtualWan.id,
addressPrefix: "10.0.2.0/24",
});
const exampleVpnGateway = new azure.network.VpnGateway("exampleVpnGateway", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
virtualHubId: exampleVirtualHub.id,
});
const exampleSecurityPartnerProvider = new azure.network.SecurityPartnerProvider("exampleSecurityPartnerProvider", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
virtualHubId: exampleVirtualHub.id,
securityProviderName: "IBoss",
tags: {
ENV: "Prod",
},
}, {
dependsOn: [exampleVpnGateway],
});
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
exampleVirtualWan:
type: azure:network:VirtualWan
properties:
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
exampleVirtualHub:
type: azure:network:VirtualHub
properties:
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
virtualWanId: ${exampleVirtualWan.id}
addressPrefix: 10.0.2.0/24
exampleVpnGateway:
type: azure:network:VpnGateway
properties:
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
virtualHubId: ${exampleVirtualHub.id}
exampleSecurityPartnerProvider:
type: azure:network:SecurityPartnerProvider
properties:
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
virtualHubId: ${exampleVirtualHub.id}
securityProviderName: IBoss
tags:
ENV: Prod
options:
dependson:
- ${exampleVpnGateway}
Create SecurityPartnerProvider Resource
new SecurityPartnerProvider(name: string, args: SecurityPartnerProviderArgs, opts?: CustomResourceOptions);
@overload
def SecurityPartnerProvider(resource_name: 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)
@overload
def SecurityPartnerProvider(resource_name: str,
args: SecurityPartnerProviderArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.