Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Microsoft Azure SDK for Python

This is the Microsoft Azure Networksecurity Management Client Library. This package has been tested with Python 3.10+. For a more complete view of Azure libraries, see the azure sdk python release.

Disclaimer

Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691

Getting started

Prerequisites

Install the package

pip install azure-mgmt-networksecurity
pip install azure-identity

Authentication

By default, Microsoft Entra token authentication depends on correct configuration of the following environment variables.

  • AZURE_CLIENT_ID for Azure client ID.
  • AZURE_TENANT_ID for Azure tenant ID.
  • AZURE_CLIENT_SECRET for Azure client secret.

In addition, Azure subscription ID can be configured via environment variable AZURE_SUBSCRIPTION_ID.

With above configuration, client can be authenticated by following code:

from azure.identity import DefaultAzureCredential
from azure.mgmt.networksecurity import NetworkSecurityMgmtClient
import os

sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = NetworkSecurityMgmtClient(credential=DefaultAzureCredential(), subscription_id=sub_id)

Examples

Code samples for this package can be found at:

Troubleshooting

Next steps

Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project.

Release History

1.0.0b2 (2026-11-17)

Features Added

  • Client NetworkSecurityMgmtClient added operation group agent_fabrics
  • Client NetworkSecurityMgmtClient added operation group cluster_associations
  • Client NetworkSecurityMgmtClient added operation group egress_trust_bundles
  • Client NetworkSecurityMgmtClient added operation group members
  • Client NetworkSecurityMgmtClient added operation group operation_status
  • Client NetworkSecurityMgmtClient added operation group policy_groups
  • Added model AciWorkload
  • Added model AgentFabric
  • Added model AgentFabricProperties
  • Added model AgentFabricSandboxEndpoint
  • Added model AgentFabricSandboxImage
  • Added model AgentFabricSandboxResources
  • Added model AgentFabricSandboxWorkload
  • Added model AgentFabricTagsUpdate
  • Added model AgentIdentity
  • Added model AksWorkload
  • Added model AksWorkloadPortMapping
  • Added model AksWorkloadReference
  • Added model AzureManagedCaCertificate
  • Added model ClusterAssociation
  • Added enum ClusterAssociationIfNoneMatch
  • Added model ClusterAssociationProperties
  • Added enum ClusterAssociationSkuName
  • Added model ClusterAssociationStatus
  • Added model ClusterAssociationUpdate
  • Added model ClusterAssociationUpdateProperties
  • Added model ContentInspectionPolicy
  • Added model ContentInspectionPolicyAddressPrefixesSource
  • Added model ContentInspectionPolicySource
  • Added enum ContentInspectionPolicySourceType
  • Added model ContentInspectionPolicyWorkloadIdPatternsSource
  • Added model ContentInspectionProfile
  • Added enum ContentInspectionSensitivity
  • Added model EgressTrustBundle
  • Added model EgressTrustBundleCertificate
  • Added model EgressTrustBundleProperties
  • Added model FqdnFilteringAddressPrefixesSource
  • Added model FqdnFilteringDestination
  • Added enum FqdnFilteringDestinationType
  • Added model FqdnFilteringFqdnsDestination
  • Added model FqdnFilteringPolicy
  • Added model FqdnFilteringSource
  • Added enum FqdnFilteringSourceType
  • Added model FqdnFilteringWorkloadIdPatternsSource
  • Added enum HttpMethod
  • Added enum ImagePullPolicy
  • Added model McpArgumentMatching
  • Added enum McpMatchCase
  • Added enum McpMatchType
  • Added model McpPolicy
  • Added model McpPolicyAddressPrefixesDestination
  • Added model McpPolicyAddressPrefixesSource
  • Added model McpPolicyDestination
  • Added enum McpPolicyDestinationType
  • Added model McpPolicyFqdnsDestination
  • Added model McpPolicySource
  • Added enum McpPolicySourceType
  • Added model McpPolicyWorkloadIdPatternsDestination
  • Added model McpPolicyWorkloadIdPatternsSource
  • Added model McpPromptMatching
  • Added enum McpPromptMethod
  • Added model McpRule
  • Added model McpRuleDestinationMatching
  • Added model McpRuleMatchingConditions
  • Added model McpStringMatching
  • Added model McpToolMatching
  • Added enum McpToolMethod
  • Added model Member
  • Added model MemberProperties
  • Added model MemberTagsUpdate
  • Added model MemberUpdateProperties
  • Added model NetworkSecurityPolicyBase
  • Added enum NetworkSecurityPolicyType
  • Added enum PolicyAction
  • Added enum PolicyDirection
  • Added model PolicyGroup
  • Added model PolicyGroupProperties
  • Added model PolicyGroupTagsUpdate
  • Added enum PromptInjectionOnDetection
  • Added model PromptInjectionProtection
  • Added enum ProvisioningState
  • Added model SystemAssignedServiceIdentity
  • Added enum SystemAssignedServiceIdentityType
  • Added enum TlsInspectionAction
  • Added model TlsInspectionCertificateBase
  • Added enum TlsInspectionCertificateMode
  • Added model TlsInspectionPolicy
  • Added model TlsInspectionPolicySource
  • Added enum TlsInspectionPolicySourceType
  • Added model TlsInspectionPolicyWorkloadIdPatternsSource
  • Added model TlsInspectionRule
  • Added model TlsInspectionRuleDestination
  • Added enum TlsInspectionRuleDestinationType
  • Added model TlsInspectionRuleFqdnsDestination
  • Added model UrlFilteringAddressPrefixesDestination
  • Added model UrlFilteringAddressPrefixesSource
  • Added model UrlFilteringDestination
  • Added enum UrlFilteringDestinationType
  • Added model UrlFilteringFqdnsDestination
  • Added model UrlFilteringPolicy
  • Added model UrlFilteringRule
  • Added model UrlFilteringSource
  • Added enum UrlFilteringSourceType
  • Added model UrlFilteringWorkloadIdPatternsDestination
  • Added model UrlFilteringWorkloadIdPatternsSource
  • Added model WorkloadBase
  • Added enum WorkloadType
  • Added operation group AgentFabricsOperations
  • Added operation group ClusterAssociationsOperations
  • Added operation group EgressTrustBundlesOperations
  • Added operation group MembersOperations
  • Added operation group OperationStatusOperations
  • Added operation group PolicyGroupsOperations

1.0.0b1 (2026-11-05)

Other Changes

  • Initial version

Metadata

Release files for azure-mgmt-networksecurity 1.0.0b2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for azure-mgmt-networksecurity 1.0.0b2
File Size Uploaded Provenance Actions
azure_mgmt_networksecurity-1.0.0b2.tar.gz 150.2 kB Without provenance Details for azure_mgmt_networksecurity-1.0.0b2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for azure-mgmt-networksecurity 1.0.0b2
File Interpreter ABI Platform Actions
azure_mgmt_networksecurity-1.0.0b2-py3-none-any.whl Python 3 none any Details for azure_mgmt_networksecurity-1.0.0b2-py3-none-any.whl

Total release size: 298.9 kB

Release files / azure_mgmt_networksecurity-1.0.0b2.tar.gz

Download URL azure_mgmt_networksecurity-1.0.0b2.tar.gz
Size 150.2 kB
Tags Source
SHA-256 checksum
How to use checksums
00c9182071707693bd9ba7489cb49b042b26643e1075e5ded88c0e3c62ed310f
BLAKE2b-256 checksum
How to use checksums
c48a3022ee1403392f3f67aab3ce5ebbada42114c2856bae82ffff06aaa57981
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / azure_mgmt_networksecurity-1.0.0b2-py3-none-any.whl

Download URL azure_mgmt_networksecurity-1.0.0b2-py3-none-any.whl
Size 148.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d56d09af9644ba13321254f17472509e156674eec3b1415640cd337bfcca00c5
BLAKE2b-256 checksum
How to use checksums
faa9ff71c4f244cda2a854e965602f339c9d2903b58902a1b25c1ed8c4cca7d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Security for azure-mgmt-networksecurity 1.0.0b2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page