Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set-AzSentinel: Response status code does not indicate success: 401 (Unauthorized) #187

Open
JaimePolo opened this issue Jul 20, 2021 · 1 comment
Assignees

Comments

@JaimePolo
Copy link

JaimePolo commented Jul 20, 2021

Environment

Windows build number: 10.0.19042.1083
PowerShell version (if applicable): 7.0.6

Steps to reproduce

#1-Connect to Azure
Connect-AzAccount

#2-Set Azure Context
Set-AzContext -Subscription 76b3de50-2f93-451e-9482-4e7a23712baf

#3-Create Workspace
New-AzOperationalInsightsWorkspace -Location "canadacentral" -Name "SentinelTest" -Sku standard -ResourceGroupName AZR1-RG-LA001

#4-Set Sentinel
Set-AzSentinel -SubscriptionId "76b3de50-2f93-451e-9482-4e7a23712baf" -WorkspaceName "SentinelTest"

Expected behavior

Deploy Sentinel

Actual behavior

Set-AzSentinel: Response status code does not indicate success: 401 (Unauthorized).

@JaimePolo JaimePolo changed the title Bug Report Set-AzSentinel: Response status code does not indicate success: 401 (Unauthorized) Jul 21, 2021
@pkhabazi pkhabazi self-assigned this Aug 2, 2021
@pkhabazi
Copy link
Contributor

pkhabazi commented Aug 2, 2021

hi @JaimePolo thanks for the feedback. Which permission do you have on the Azure subscription? If it's the first time you are trying to enable Azure Sentinel on the subscription then Owner permission is required because the Azure Resource Provider needs to be activated. please let me know if this fixes your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants