PowerShell Script to disable Public Network Access for Azure Relay

Scenario: PowerShell script to disable Public Network access for Azure Relay
In today’s azure world, it is always better to do automations rather than do a Manual work. It becomes a headache for all of us to navigate to Azure Portal
Here is the simple way to disable Public Network access by using PowerShell script.
Solution:
Please find below steps on how to run the PowerShell script to disable Public Network access for Azure Relay.
Step 1: Login to Azure portal
Step 2: Open Azure PowerShell terminal and connect to your Azure account using any of options mentioned in Authentication Methods
Step 3: Just add the Resource Group name and Subscription Id and Relay namespace.
Step 4: Run the above commands to enable Public Network access for Azure Relay
Reference Links: -
Network security for Azure Relay - Azure Relay | Microsoft Learn
Happy Learning
Published on:
Learn moreRelated posts
Announcing General Availability of UNISTR function and ANSI SQL || Operator in Azure SQL
We’re excited to announce the General Availability (GA) of two long-standing capabilities that address critical needs for SQL developers and e...
Power BI Cognitive Services and Azure Machine Learning features retiring; transition to Fabric AI services
Power BI is retiring Cognitive Services and Azure Machine Learning features by September 15, 2025, transitioning AI capabilities to Microsoft ...
Dynamics 365 Contact Center – Use Azure Communication Service-based SMS Mobile Numbers
How does this affect me? With this feature, Dynamics 365 Contact Center admins can now engage with customers in Australia, Belgium, Denmark, F...
Microsoft Entra: Action Required – Update Conditional Access Policies for Azure DevOps Sign-ins
Microsoft Entra requires updating Conditional Access policies by September 4, 2025, to explicitly include Azure DevOps (App ID: 499b84ac-1321-...
Azure Developer CLI (azd) – July 2025
This post announces the July release of the Azure Developer CLI (`azd`). The post Azure Developer CLI (azd) – July 2025 appeared first o...
Azure Migrate Execute
From Manual Testing to AI-Generated Automation: Our Azure DevOps MCP + Playwright Success Story
In today’s fast-paced software development cycles, manual testing often becomes a significant bottleneck. Our team was facing a growing backlo...
Cognitive services and Azure ML for Dataflows will be fully retired by September 15th, 2025
This blog is outlining the depreciation announcement for Azure ML and Cognitive services using dataflows.