We recommend using Azure Native.
Azure v6.32.0 published on Thursday, Feb 5, 2026 by Pulumi
Use this data source to access information about an existing Network Security Perimeter Profile.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.network.getNetworkSecurityPerimeter({
name: "existing",
resourceGroupName: "existing",
});
const exampleGetNetworkSecurityPerimeterProfile = example.then(example => azure.network.getNetworkSecurityPerimeterProfile({
name: "existing",
networkSecurityPerimeterId: example.id,
}));
export const id = exampleGetNetworkSecurityPerimeterProfile.then(exampleGetNetworkSecurityPerimeterProfile => exampleGetNetworkSecurityPerimeterProfile.id);
import pulumi
import pulumi_azure as azure
example = azure.network.get_network_security_perimeter(name="existing",
resource_group_name="existing")
example_get_network_security_perimeter_profile = azure.network.get_network_security_perimeter_profile(name="existing",
network_security_perimeter_id=example.id)
pulumi.export("id", example_get_network_security_perimeter_profile.id)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := network.LookupNetworkSecurityPerimeter(ctx, &network.LookupNetworkSecurityPerimeterArgs{
Name: "existing",
ResourceGroupName: "existing",
}, nil)
if err != nil {
return err
}
exampleGetNetworkSecurityPerimeterProfile, err := network.LookupNetworkSecurityPerimeterProfile(ctx, &network.LookupNetworkSecurityPerimeterProfileArgs{
Name: "existing",
NetworkSecurityPerimeterId: example.Id,
}, nil)
if err != nil {
return err
}
ctx.Export("id", exampleGetNetworkSecurityPerimeterProfile.Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Network.GetNetworkSecurityPerimeter.Invoke(new()
{
Name = "existing",
ResourceGroupName = "existing",
});
var exampleGetNetworkSecurityPerimeterProfile = Azure.Network.GetNetworkSecurityPerimeterProfile.Invoke(new()
{
Name = "existing",
NetworkSecurityPerimeterId = example.Apply(getNetworkSecurityPerimeterResult => getNetworkSecurityPerimeterResult.Id),
});
return new Dictionary<string, object?>
{
["id"] = exampleGetNetworkSecurityPerimeterProfile.Apply(getNetworkSecurityPerimeterProfileResult => getNetworkSecurityPerimeterProfileResult.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.network.NetworkFunctions;
import com.pulumi.azure.network.inputs.GetNetworkSecurityPerimeterArgs;
import com.pulumi.azure.network.inputs.GetNetworkSecurityPerimeterProfileArgs;
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 = NetworkFunctions.getNetworkSecurityPerimeter(GetNetworkSecurityPerimeterArgs.builder()
.name("existing")
.resourceGroupName("existing")
.build());
final var exampleGetNetworkSecurityPerimeterProfile = NetworkFunctions.getNetworkSecurityPerimeterProfile(GetNetworkSecurityPerimeterProfileArgs.builder()
.name("existing")
.networkSecurityPerimeterId(example.id())
.build());
ctx.export("id", exampleGetNetworkSecurityPerimeterProfile.id());
}
}
variables:
example:
fn::invoke:
function: azure:network:getNetworkSecurityPerimeter
arguments:
name: existing
resourceGroupName: existing
exampleGetNetworkSecurityPerimeterProfile:
fn::invoke:
function: azure:network:getNetworkSecurityPerimeterProfile
arguments:
name: existing
networkSecurityPerimeterId: ${example.id}
outputs:
id: ${exampleGetNetworkSecurityPerimeterProfile.id}
API Providers
This data source uses the following Azure API Providers:
Microsoft.Network- 2025-01-01
Using getNetworkSecurityPerimeterProfile
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 getNetworkSecurityPerimeterProfile(args: GetNetworkSecurityPerimeterProfileArgs, opts?: InvokeOptions): Promise<GetNetworkSecurityPerimeterProfileResult>
function getNetworkSecurityPerimeterProfileOutput(args: GetNetworkSecurityPerimeterProfileOutputArgs, opts?: InvokeOptions): Output<GetNetworkSecurityPerimeterProfileResult>def get_network_security_perimeter_profile(name: Optional[str] = None,
network_security_perimeter_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkSecurityPerimeterProfileResult
def get_network_security_perimeter_profile_output(name: Optional[pulumi.Input[str]] = None,
network_security_perimeter_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkSecurityPerimeterProfileResult]func LookupNetworkSecurityPerimeterProfile(ctx *Context, args *LookupNetworkSecurityPerimeterProfileArgs, opts ...InvokeOption) (*LookupNetworkSecurityPerimeterProfileResult, error)
func LookupNetworkSecurityPerimeterProfileOutput(ctx *Context, args *LookupNetworkSecurityPerimeterProfileOutputArgs, opts ...InvokeOption) LookupNetworkSecurityPerimeterProfileResultOutput> Note: This function is named LookupNetworkSecurityPerimeterProfile in the Go SDK.
public static class GetNetworkSecurityPerimeterProfile
{
public static Task<GetNetworkSecurityPerimeterProfileResult> InvokeAsync(GetNetworkSecurityPerimeterProfileArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkSecurityPerimeterProfileResult> Invoke(GetNetworkSecurityPerimeterProfileInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetworkSecurityPerimeterProfileResult> getNetworkSecurityPerimeterProfile(GetNetworkSecurityPerimeterProfileArgs args, InvokeOptions options)
public static Output<GetNetworkSecurityPerimeterProfileResult> getNetworkSecurityPerimeterProfile(GetNetworkSecurityPerimeterProfileArgs args, InvokeOptions options)
fn::invoke:
function: azure:network/getNetworkSecurityPerimeterProfile:getNetworkSecurityPerimeterProfile
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- The name of this Network Security Perimeter Profile.
- Network
Security stringPerimeter Id - The ID of the Network Security Perimeter.
- Name string
- The name of this Network Security Perimeter Profile.
- Network
Security stringPerimeter Id - The ID of the Network Security Perimeter.
- name String
- The name of this Network Security Perimeter Profile.
- network
Security StringPerimeter Id - The ID of the Network Security Perimeter.
- name string
- The name of this Network Security Perimeter Profile.
- network
Security stringPerimeter Id - The ID of the Network Security Perimeter.
- name str
- The name of this Network Security Perimeter Profile.
- network_
security_ strperimeter_ id - The ID of the Network Security Perimeter.
- name String
- The name of this Network Security Perimeter Profile.
- network
Security StringPerimeter Id - The ID of the Network Security Perimeter.
getNetworkSecurityPerimeterProfile Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Network
Security stringPerimeter Id
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Network
Security stringPerimeter Id
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- network
Security StringPerimeter Id
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- network
Security stringPerimeter Id
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- network_
security_ strperimeter_ id
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- network
Security StringPerimeter Id
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
