published on Wednesday, Aug 5, 2026 by Pulumi
published on Wednesday, Aug 5, 2026 by Pulumi
The commit resource
Uses Azure REST API version 2025-07-01.
Example Usage
Create or Update Network Manager Commit
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var commit = new AzureNative.Network.Commit("commit", new()
{
CommitName = "myTestCommit",
NetworkManagerName = "testNetworkManager",
Properties = new AzureNative.Network.Inputs.CommitPropertiesArgs
{
CommitType = AzureNative.Network.ConfigurationType.SecurityAdmin,
ConfigurationIds = new[]
{
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/SampleSecurityAdminConfig",
},
Description = "Sample Commit",
ForceUpdateTag = "00000000-0000-0000-0000-000000000000",
TargetLocations = new[]
{
"useast",
},
},
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewCommit(ctx, "commit", &network.CommitArgs{
CommitName: pulumi.String("myTestCommit"),
NetworkManagerName: pulumi.String("testNetworkManager"),
Properties: &network.CommitPropertiesArgs{
CommitType: pulumi.String(network.ConfigurationTypeSecurityAdmin),
ConfigurationIds: pulumi.StringArray{
pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/SampleSecurityAdminConfig"),
},
Description: pulumi.String("Sample Commit"),
ForceUpdateTag: pulumi.String("00000000-0000-0000-0000-000000000000"),
TargetLocations: pulumi.StringArray{
pulumi.String("useast"),
},
},
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_network_commit" "commit" {
commit_name = "myTestCommit"
network_manager_name = "testNetworkManager"
properties = {
commit_type = "SecurityAdmin"
configuration_ids = ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/SampleSecurityAdminConfig"]
description = "Sample Commit"
force_update_tag = "00000000-0000-0000-0000-000000000000"
target_locations = ["useast"]
}
resource_group_name = "myResourceGroup"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.Commit;
import com.pulumi.azurenative.network.CommitArgs;
import com.pulumi.azurenative.network.inputs.CommitPropertiesArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 commit = new Commit("commit", CommitArgs.builder()
.commitName("myTestCommit")
.networkManagerName("testNetworkManager")
.properties(CommitPropertiesArgs.builder()
.commitType("SecurityAdmin")
.configurationIds("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/SampleSecurityAdminConfig")
.description("Sample Commit")
.forceUpdateTag("00000000-0000-0000-0000-000000000000")
.targetLocations("useast")
.build())
.resourceGroupName("myResourceGroup")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const commit = new azure_native.network.Commit("commit", {
commitName: "myTestCommit",
networkManagerName: "testNetworkManager",
properties: {
commitType: azure_native.network.ConfigurationType.SecurityAdmin,
configurationIds: ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/SampleSecurityAdminConfig"],
description: "Sample Commit",
forceUpdateTag: "00000000-0000-0000-0000-000000000000",
targetLocations: ["useast"],
},
resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
commit = azure_native.network.Commit("commit",
commit_name="myTestCommit",
network_manager_name="testNetworkManager",
properties={
"commit_type": azure_native.network.ConfigurationType.SECURITY_ADMIN,
"configuration_ids": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/SampleSecurityAdminConfig"],
"description": "Sample Commit",
"force_update_tag": "00000000-0000-0000-0000-000000000000",
"target_locations": ["useast"],
},
resource_group_name="myResourceGroup")
resources:
commit:
type: azure-native:network:Commit
properties:
commitName: myTestCommit
networkManagerName: testNetworkManager
properties:
commitType: SecurityAdmin
configurationIds:
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/SampleSecurityAdminConfig
description: Sample Commit
forceUpdateTag: 00000000-0000-0000-0000-000000000000
targetLocations:
- useast
resourceGroupName: myResourceGroup
Create Commit Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Commit(name: string, args: CommitArgs, opts?: CustomResourceOptions);@overload
def Commit(resource_name: str,
args: CommitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Commit(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_manager_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
commit_name: Optional[str] = None,
properties: Optional[CommitPropertiesArgs] = None)func NewCommit(ctx *Context, name string, args CommitArgs, opts ...ResourceOption) (*Commit, error)public Commit(string name, CommitArgs args, CustomResourceOptions? opts = null)
public Commit(String name, CommitArgs args)
public Commit(String name, CommitArgs args, CustomResourceOptions options)
type: azure-native:network:Commit
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure-native_network_commit" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CommitArgs
- 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 CommitArgs
- 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 CommitArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CommitArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CommitArgs
- 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 commitResource = new AzureNative.Network.Commit("commitResource", new()
{
NetworkManagerName = "string",
ResourceGroupName = "string",
CommitName = "string",
Properties = new AzureNative.Network.Inputs.CommitPropertiesArgs
{
CommitType = "string",
TargetLocations = new[]
{
"string",
},
ConfigurationIds = new[]
{
"string",
},
Description = "string",
ForceUpdateTag = "string",
},
});
example, err := network.NewCommit(ctx, "commitResource", &network.CommitArgs{
NetworkManagerName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
CommitName: pulumi.String("string"),
Properties: &network.CommitPropertiesArgs{
CommitType: pulumi.String("string"),
TargetLocations: pulumi.StringArray{
pulumi.String("string"),
},
ConfigurationIds: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
ForceUpdateTag: pulumi.String("string"),
},
})
resource "azure-native_network_commit" "commitResource" {
lifecycle {
create_before_destroy = true
}
network_manager_name = "string"
resource_group_name = "string"
commit_name = "string"
properties = {
commit_type = "string"
target_locations = ["string"]
configuration_ids = ["string"]
description = "string"
force_update_tag = "string"
}
}
var commitResource = new Commit("commitResource", CommitArgs.builder()
.networkManagerName("string")
.resourceGroupName("string")
.commitName("string")
.properties(CommitPropertiesArgs.builder()
.commitType("string")
.targetLocations("string")
.configurationIds("string")
.description("string")
.forceUpdateTag("string")
.build())
.build());
commit_resource = azure_native.network.Commit("commitResource",
network_manager_name="string",
resource_group_name="string",
commit_name="string",
properties={
"commit_type": "string",
"target_locations": ["string"],
"configuration_ids": ["string"],
"description": "string",
"force_update_tag": "string",
})
const commitResource = new azure_native.network.Commit("commitResource", {
networkManagerName: "string",
resourceGroupName: "string",
commitName: "string",
properties: {
commitType: "string",
targetLocations: ["string"],
configurationIds: ["string"],
description: "string",
forceUpdateTag: "string",
},
});
type: azure-native:network:Commit
properties:
commitName: string
networkManagerName: string
properties:
commitType: string
configurationIds:
- string
description: string
forceUpdateTag: string
targetLocations:
- string
resourceGroupName: string
Commit 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 Commit resource accepts the following input properties:
- Network
Manager stringName - The name of the network manager.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Commit
Name string - The name of the commit.
- Properties
Pulumi.
Azure Native. Network. Inputs. Commit Properties - The Commit properties
- Network
Manager stringName - The name of the network manager.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Commit
Name string - The name of the commit.
- Properties
Commit
Properties Args - The Commit properties
- network_
manager_ stringname - The name of the network manager.
- resource_
group_ stringname - The name of the resource group. The name is case insensitive.
- commit_
name string - The name of the commit.
- properties object
- The Commit properties
- network
Manager StringName - The name of the network manager.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- commit
Name String - The name of the commit.
- properties
Commit
Properties - The Commit properties
- network
Manager stringName - The name of the network manager.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- commit
Name string - The name of the commit.
- properties
Commit
Properties - The Commit properties
- network_
manager_ strname - The name of the network manager.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- commit_
name str - The name of the commit.
- properties
Commit
Properties Args - The Commit properties
- network
Manager StringName - The name of the network manager.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- commit
Name String - The name of the commit.
- properties Property Map
- The Commit properties
Outputs
All input properties are implicitly available as output properties. Additionally, the Commit resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- System
Data Pulumi.Azure Native. Network. Outputs. System Data Response - The system metadata related to this resource.
- Type string
- Resource type.
- Azure
Api stringVersion - The Azure API version of the resource.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- System
Data SystemData Response - The system metadata related to this resource.
- Type string
- Resource type.
- azure_
api_ stringversion - The Azure API version of the resource.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- system_
data object - The system metadata related to this resource.
- type string
- Resource type.
- azure
Api StringVersion - The Azure API version of the resource.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- system
Data SystemData Response - The system metadata related to this resource.
- type String
- Resource type.
- azure
Api stringVersion - The Azure API version of the resource.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- system
Data SystemData Response - The system metadata related to this resource.
- type string
- Resource type.
- azure_
api_ strversion - The Azure API version of the resource.
- etag str
- A unique read-only string that changes whenever the resource is updated.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name.
- system_
data SystemData Response - The system metadata related to this resource.
- type str
- Resource type.
- azure
Api StringVersion - The Azure API version of the resource.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- system
Data Property Map - The system metadata related to this resource.
- type String
- Resource type.
Supporting Types
CommitProperties, CommitPropertiesArgs
Properties of commit- Commit
Type string | Pulumi.Azure Native. Network. Configuration Type - Commit Type.
- Target
Locations List<string> - List of target locations.
- Configuration
Ids List<string> - List of configuration IDs.
- Description string
- A description of the commit.
- Force
Update stringTag - A value that, when changed, forces the commit to be re-evaluated and redeployed.
- Commit
Type string | ConfigurationType - Commit Type.
- Target
Locations []string - List of target locations.
- Configuration
Ids []string - List of configuration IDs.
- Description string
- A description of the commit.
- Force
Update stringTag - A value that, when changed, forces the commit to be re-evaluated and redeployed.
- commit_
type string | "SecurityAdmin" | "Connectivity" | "Security User" | "Routing" - Commit Type.
- target_
locations list(string) - List of target locations.
- configuration_
ids list(string) - List of configuration IDs.
- description string
- A description of the commit.
- force_
update_ stringtag - A value that, when changed, forces the commit to be re-evaluated and redeployed.
- commit
Type String | ConfigurationType - Commit Type.
- target
Locations List<String> - List of target locations.
- configuration
Ids List<String> - List of configuration IDs.
- description String
- A description of the commit.
- force
Update StringTag - A value that, when changed, forces the commit to be re-evaluated and redeployed.
- commit
Type string | ConfigurationType - Commit Type.
- target
Locations string[] - List of target locations.
- configuration
Ids string[] - List of configuration IDs.
- description string
- A description of the commit.
- force
Update stringTag - A value that, when changed, forces the commit to be re-evaluated and redeployed.
- commit_
type str | ConfigurationType - Commit Type.
- target_
locations Sequence[str] - List of target locations.
- configuration_
ids Sequence[str] - List of configuration IDs.
- description str
- A description of the commit.
- force_
update_ strtag - A value that, when changed, forces the commit to be re-evaluated and redeployed.
- commit
Type String | "SecurityAdmin" | "Connectivity" | "Security User" | "Routing" - Commit Type.
- target
Locations List<String> - List of target locations.
- configuration
Ids List<String> - List of configuration IDs.
- description String
- A description of the commit.
- force
Update StringTag - A value that, when changed, forces the commit to be re-evaluated and redeployed.
CommitPropertiesResponse, CommitPropertiesResponseArgs
Properties of commit- Active
Locations List<string> - List of active locations.
- Commit
Type string - Commit Type.
- Provisioning
State string - The provisioning state of the resource.
- Resource
Guid string - Unique identifier for this resource.
- Target
Locations List<string> - List of target locations.
- Configuration
Ids List<string> - List of configuration IDs.
- Description string
- A description of the commit.
- Force
Update stringTag - A value that, when changed, forces the commit to be re-evaluated and redeployed.
- Active
Locations []string - List of active locations.
- Commit
Type string - Commit Type.
- Provisioning
State string - The provisioning state of the resource.
- Resource
Guid string - Unique identifier for this resource.
- Target
Locations []string - List of target locations.
- Configuration
Ids []string - List of configuration IDs.
- Description string
- A description of the commit.
- Force
Update stringTag - A value that, when changed, forces the commit to be re-evaluated and redeployed.
- active_
locations list(string) - List of active locations.
- commit_
type string - Commit Type.
- provisioning_
state string - The provisioning state of the resource.
- resource_
guid string - Unique identifier for this resource.
- target_
locations list(string) - List of target locations.
- configuration_
ids list(string) - List of configuration IDs.
- description string
- A description of the commit.
- force_
update_ stringtag - A value that, when changed, forces the commit to be re-evaluated and redeployed.
- active
Locations List<String> - List of active locations.
- commit
Type String - Commit Type.
- provisioning
State String - The provisioning state of the resource.
- resource
Guid String - Unique identifier for this resource.
- target
Locations List<String> - List of target locations.
- configuration
Ids List<String> - List of configuration IDs.
- description String
- A description of the commit.
- force
Update StringTag - A value that, when changed, forces the commit to be re-evaluated and redeployed.
- active
Locations string[] - List of active locations.
- commit
Type string - Commit Type.
- provisioning
State string - The provisioning state of the resource.
- resource
Guid string - Unique identifier for this resource.
- target
Locations string[] - List of target locations.
- configuration
Ids string[] - List of configuration IDs.
- description string
- A description of the commit.
- force
Update stringTag - A value that, when changed, forces the commit to be re-evaluated and redeployed.
- active_
locations Sequence[str] - List of active locations.
- commit_
type str - Commit Type.
- provisioning_
state str - The provisioning state of the resource.
- resource_
guid str - Unique identifier for this resource.
- target_
locations Sequence[str] - List of target locations.
- configuration_
ids Sequence[str] - List of configuration IDs.
- description str
- A description of the commit.
- force_
update_ strtag - A value that, when changed, forces the commit to be re-evaluated and redeployed.
- active
Locations List<String> - List of active locations.
- commit
Type String - Commit Type.
- provisioning
State String - The provisioning state of the resource.
- resource
Guid String - Unique identifier for this resource.
- target
Locations List<String> - List of target locations.
- configuration
Ids List<String> - List of configuration IDs.
- description String
- A description of the commit.
- force
Update StringTag - A value that, when changed, forces the commit to be re-evaluated and redeployed.
ConfigurationType, ConfigurationTypeArgs
- Security
Admin SecurityAdmin- Connectivity
Connectivity- Security
User SecurityUser- Routing
Routing
- Configuration
Type Security Admin SecurityAdmin- Configuration
Type Connectivity Connectivity- Configuration
Type Security User SecurityUser- Configuration
Type Routing Routing
- "Security
Admin" SecurityAdmin- "Connectivity"
Connectivity- "Security
User" SecurityUser- "Routing"
Routing
- Security
Admin SecurityAdmin- Connectivity
Connectivity- Security
User SecurityUser- Routing
Routing
- Security
Admin SecurityAdmin- Connectivity
Connectivity- Security
User SecurityUser- Routing
Routing
- SECURITY_ADMIN
SecurityAdmin- CONNECTIVITY
Connectivity- SECURITY_USER
SecurityUser- ROUTING
Routing
- "Security
Admin" SecurityAdmin- "Connectivity"
Connectivity- "Security
User" SecurityUser- "Routing"
Routing
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of the resource.- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at string - The timestamp of resource creation (UTC).
- created_
by string - The identity that created the resource.
- created_
by_ stringtype - The type of identity that created the resource.
- last_
modified_ stringat - The type of identity that last modified the resource.
- last_
modified_ stringby - The identity that last modified the resource.
- last_
modified_ stringby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The type of identity that last modified the resource.
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The type of identity that last modified the resource.
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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:Commit myTestCommit /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/commits/{commitName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
published on Wednesday, Aug 5, 2026 by Pulumi