1. Packages
  2. Azure Native v2
  3. API Docs
  4. network
  5. StaticCidr
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.network.StaticCidr

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Instance of StaticCidr resource. Azure REST API version: 2024-01-01-preview.

Other available API versions: 2024-05-01.

Example Usage

StaticCidrs_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var staticCidr = new AzureNative.Network.StaticCidr("staticCidr", new()
    {
        NetworkManagerName = "TestNetworkManager",
        PoolName = "TestPool",
        ResourceGroupName = "rg1",
        StaticCidrName = "TestStaticCidr",
    });

});
Copy
package main

import (
	network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := network.NewStaticCidr(ctx, "staticCidr", &network.StaticCidrArgs{
			NetworkManagerName: pulumi.String("TestNetworkManager"),
			PoolName:           pulumi.String("TestPool"),
			ResourceGroupName:  pulumi.String("rg1"),
			StaticCidrName:     pulumi.String("TestStaticCidr"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.StaticCidr;
import com.pulumi.azurenative.network.StaticCidrArgs;
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 staticCidr = new StaticCidr("staticCidr", StaticCidrArgs.builder()
            .networkManagerName("TestNetworkManager")
            .poolName("TestPool")
            .resourceGroupName("rg1")
            .staticCidrName("TestStaticCidr")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const staticCidr = new azure_native.network.StaticCidr("staticCidr", {
    networkManagerName: "TestNetworkManager",
    poolName: "TestPool",
    resourceGroupName: "rg1",
    staticCidrName: "TestStaticCidr",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

static_cidr = azure_native.network.StaticCidr("staticCidr",
    network_manager_name="TestNetworkManager",
    pool_name="TestPool",
    resource_group_name="rg1",
    static_cidr_name="TestStaticCidr")
Copy
resources:
  staticCidr:
    type: azure-native:network:StaticCidr
    properties:
      networkManagerName: TestNetworkManager
      poolName: TestPool
      resourceGroupName: rg1
      staticCidrName: TestStaticCidr
Copy

Create StaticCidr Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new StaticCidr(name: string, args: StaticCidrArgs, opts?: CustomResourceOptions);
@overload
def StaticCidr(resource_name: str,
               args: StaticCidrArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def StaticCidr(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               network_manager_name: Optional[str] = None,
               pool_name: Optional[str] = None,
               resource_group_name: Optional[str] = None,
               properties: Optional[StaticCidrPropertiesArgs] = None,
               static_cidr_name: Optional[str] = None)
func NewStaticCidr(ctx *Context, name string, args StaticCidrArgs, opts ...ResourceOption) (*StaticCidr, error)
public StaticCidr(string name, StaticCidrArgs args, CustomResourceOptions? opts = null)
public StaticCidr(String name, StaticCidrArgs args)
public StaticCidr(String name, StaticCidrArgs args, CustomResourceOptions options)
type: azure-native:network:StaticCidr
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. StaticCidrArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. StaticCidrArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. StaticCidrArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. StaticCidrArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. StaticCidrArgs
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 staticCidrResource = new AzureNative.Network.StaticCidr("staticCidrResource", new()
{
    NetworkManagerName = "string",
    PoolName = "string",
    ResourceGroupName = "string",
    Properties = 
    {
        { "addressPrefixes", new[]
        {
            "string",
        } },
        { "description", "string" },
        { "numberOfIPAddressesToAllocate", "string" },
    },
    StaticCidrName = "string",
});
Copy
example, err := network.NewStaticCidr(ctx, "staticCidrResource", &network.StaticCidrArgs{
	NetworkManagerName: "string",
	PoolName:           "string",
	ResourceGroupName:  "string",
	Properties: map[string]interface{}{
		"addressPrefixes": []string{
			"string",
		},
		"description":                   "string",
		"numberOfIPAddressesToAllocate": "string",
	},
	StaticCidrName: "string",
})
Copy
var staticCidrResource = new StaticCidr("staticCidrResource", StaticCidrArgs.builder()
    .networkManagerName("string")
    .poolName("string")
    .resourceGroupName("string")
    .properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .staticCidrName("string")
    .build());
Copy
static_cidr_resource = azure_native.network.StaticCidr("staticCidrResource",
    network_manager_name=string,
    pool_name=string,
    resource_group_name=string,
    properties={
        addressPrefixes: [string],
        description: string,
        numberOfIPAddressesToAllocate: string,
    },
    static_cidr_name=string)
Copy
const staticCidrResource = new azure_native.network.StaticCidr("staticCidrResource", {
    networkManagerName: "string",
    poolName: "string",
    resourceGroupName: "string",
    properties: {
        addressPrefixes: ["string"],
        description: "string",
        numberOfIPAddressesToAllocate: "string",
    },
    staticCidrName: "string",
});
Copy
type: azure-native:network:StaticCidr
properties:
    networkManagerName: string
    poolName: string
    properties:
        addressPrefixes:
            - string
        description: string
        numberOfIPAddressesToAllocate: string
    resourceGroupName: string
    staticCidrName: string
Copy

StaticCidr Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The StaticCidr resource accepts the following input properties:

NetworkManagerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network manager.
PoolName
This property is required.
Changes to this property will trigger replacement.
string
IP Address Manager Pool resource name.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
Properties Pulumi.AzureNative.Network.Inputs.StaticCidrProperties
Properties of static CIDR resource.
StaticCidrName Changes to this property will trigger replacement. string
Static Cidr allocation name.
NetworkManagerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network manager.
PoolName
This property is required.
Changes to this property will trigger replacement.
string
IP Address Manager Pool resource name.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
Properties StaticCidrPropertiesArgs
Properties of static CIDR resource.
StaticCidrName Changes to this property will trigger replacement. string
Static Cidr allocation name.
networkManagerName
This property is required.
Changes to this property will trigger replacement.
String
The name of the network manager.
poolName
This property is required.
Changes to this property will trigger replacement.
String
IP Address Manager Pool resource name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
properties StaticCidrProperties
Properties of static CIDR resource.
staticCidrName Changes to this property will trigger replacement. String
Static Cidr allocation name.
networkManagerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network manager.
poolName
This property is required.
Changes to this property will trigger replacement.
string
IP Address Manager Pool resource name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
properties StaticCidrProperties
Properties of static CIDR resource.
staticCidrName Changes to this property will trigger replacement. string
Static Cidr allocation name.
network_manager_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the network manager.
pool_name
This property is required.
Changes to this property will trigger replacement.
str
IP Address Manager Pool resource name.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group.
properties StaticCidrPropertiesArgs
Properties of static CIDR resource.
static_cidr_name Changes to this property will trigger replacement. str
Static Cidr allocation name.
networkManagerName
This property is required.
Changes to this property will trigger replacement.
String
The name of the network manager.
poolName
This property is required.
Changes to this property will trigger replacement.
String
IP Address Manager Pool resource name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
properties Property Map
Properties of static CIDR resource.
staticCidrName Changes to this property will trigger replacement. String
Static Cidr allocation name.

Outputs

All input properties are implicitly available as output properties. Additionally, the StaticCidr resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
SystemData Pulumi.AzureNative.Network.Outputs.SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
SystemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
system_data SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
systemData Property Map
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

StaticCidrProperties
, StaticCidrPropertiesArgs

AddressPrefixes List<string>
List of IP address prefixes of the resource.
Description string
NumberOfIPAddressesToAllocate string
Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
AddressPrefixes []string
List of IP address prefixes of the resource.
Description string
NumberOfIPAddressesToAllocate string
Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
addressPrefixes List<String>
List of IP address prefixes of the resource.
description String
numberOfIPAddressesToAllocate String
Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
addressPrefixes string[]
List of IP address prefixes of the resource.
description string
numberOfIPAddressesToAllocate string
Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
address_prefixes Sequence[str]
List of IP address prefixes of the resource.
description str
number_of_ip_addresses_to_allocate str
Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
addressPrefixes List<String>
List of IP address prefixes of the resource.
description String
numberOfIPAddressesToAllocate String
Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.

StaticCidrPropertiesResponse
, StaticCidrPropertiesResponseArgs

ProvisioningState This property is required. string
Provisioning states of a resource.
TotalNumberOfIPAddresses This property is required. string
Total number of IP addresses allocated for the static CIDR resource.
AddressPrefixes List<string>
List of IP address prefixes of the resource.
Description string
NumberOfIPAddressesToAllocate string
Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
ProvisioningState This property is required. string
Provisioning states of a resource.
TotalNumberOfIPAddresses This property is required. string
Total number of IP addresses allocated for the static CIDR resource.
AddressPrefixes []string
List of IP address prefixes of the resource.
Description string
NumberOfIPAddressesToAllocate string
Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
provisioningState This property is required. String
Provisioning states of a resource.
totalNumberOfIPAddresses This property is required. String
Total number of IP addresses allocated for the static CIDR resource.
addressPrefixes List<String>
List of IP address prefixes of the resource.
description String
numberOfIPAddressesToAllocate String
Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
provisioningState This property is required. string
Provisioning states of a resource.
totalNumberOfIPAddresses This property is required. string
Total number of IP addresses allocated for the static CIDR resource.
addressPrefixes string[]
List of IP address prefixes of the resource.
description string
numberOfIPAddressesToAllocate string
Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
provisioning_state This property is required. str
Provisioning states of a resource.
total_number_of_ip_addresses This property is required. str
Total number of IP addresses allocated for the static CIDR resource.
address_prefixes Sequence[str]
List of IP address prefixes of the resource.
description str
number_of_ip_addresses_to_allocate str
Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
provisioningState This property is required. String
Provisioning states of a resource.
totalNumberOfIPAddresses This property is required. String
Total number of IP addresses allocated for the static CIDR resource.
addressPrefixes List<String>
List of IP address prefixes of the resource.
description String
numberOfIPAddressesToAllocate String
Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The type of identity that last modified the resource.
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The type of identity that last modified the resource.
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The type of identity that last modified the resource.
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The type of identity that last modified the resource.
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The type of identity that last modified the resource.
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The type of identity that last modified the resource.
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:network:StaticCidr OnPremResources /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi