Cannot create Network Security Group due to empty workspace

Phil 26 Reputation points
2022-06-05T19:30:37.35+00:00

Hello, I am trying to create a Network Security Group, but I am presented with a "Workspace" drop-down that is empty. I tried searching the docs, but couldn't find an obvious reference to this.

208506-screen-shot-2022-06-05-at-12600-pm.png

Any idea how to get this workspace field populated? Thanks!

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
{count} votes

Answer accepted by question author
  1. Manu Philip 20,651 Reputation points MVP Volunteer Moderator
    2022-06-05T19:59:26.523+00:00

    Resource Groups deployed using Azure Resource Manager Deployment Model should need a logging mechanism to save the NSG logs and due to that reason, you are presented with a workspace to save the NSG logs. You cannot enable resource logging for NSGs deployed through the classic deployment model.

    As the screenshot indicates, there are no workspace available the resource group to use along with the NSG and you have to create a new workspace using the cmdlet New-AzOperationalInsightsWorkspace
    An example cmdlet is below to use for this purpose
    New-AzOperationalInsightsWorkspace -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace" -Location "East US"

    Create the workspace and try again creating the NSG so that you can make use of the above created workspace


    --please don't forget to upvote and Accept as answer if the reply is helpful--

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.