Explanation: An existing Log Analytics workspace can be retrieved with the Get- AzOperationalInsightsWorkspace cmdlet. For example, to retrieve/get an existing workspace named internWorkspace in a resource group named internWorkspaces, use the below-given command: $Oms=Get-AzOperationalInsightsWorkspace ` -ResourceGroupName internWorkspaces ` -Name internWorkspace Option A is incorrect. Get-AzNetworkSecurityGroup cmdlet is used to retrieve the network security group(NSG) for which you want to enable resource logging. Option B is correct. An existing Log Analytics workspace can be retrieved with the Get- AzOperationalInsightsWorkspace cmdlet. Option C is incorrect. Retrieve-AzOperationalInsightsWorkspace is not the right cmdlet. Option D is incorrect. Get-AzWorkspace is not the right command to retrieve the existing log analytics workspace. Option E is incorrect. The new-AzOperationalInsightsWorkspace cmdlet is used to create a new workspace. Reference: https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-nsg-manage- log?WT.mc_id=modinfra-33046-thmaure