azure-cli-extensions icon indicating copy to clipboard operation
azure-cli-extensions copied to clipboard

What are the allowed values for firewall application rule "web_categories"?

Open jenka13all opened this issue 3 years ago • 6 comments

  • If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at Azure/azure-cli

Related command

Extension name (the extension in question)

Description of issue (in as much detail as possible)


I've done a lot of searching but not found the allowed values for the azurerum firewall application rules "web_categories". When I just use the text examples under the "Category" column provided by Microsoft Learn documentation (https://learn.microsoft.com/en-us/azure/firewall/web-categories), I get the error from Terraform:

AdditionalInfo=[{"Message":"The request is invalid.","ModelState":{"resource":["{"Status":"Failed","Error":{"Code":"FirewallPolicyApplicationRuleInvalidWebCategory","Message":"Firewall Policy Application Rule WebCategoriesRule web category 'Child abuse images' is invalid","Target":null}}"]}}]

jenka13all avatar Oct 04 '22 08:10 jenka13all

Is your question related to any CLI commands?

yonzhan avatar Oct 04 '22 09:10 yonzhan

Thank you for your feedback. This has been routed to the support team for assistance.

ghost avatar Oct 04 '22 09:10 ghost

My question is related to allowed values in Terraform.

jenka13all avatar Oct 04 '22 09:10 jenka13all

This repo is only focusing on Azure CLI related issues.

yonzhan avatar Oct 04 '22 09:10 yonzhan

What would the CLI parameters be? Maybe that can help me already.

jenka13all avatar Oct 04 '22 13:10 jenka13all

@jenka13all Looks like the Web Categories - List By Subscription REST API returns the list of web categories that are used for this field.

Here are the list of the values that the API returns for reference

AlcoholAndTobacco
ChildAbuseImages
ChildInappropriate
CriminalActivity
DatingAndPersonals
Gambling
Hacking
HateAndIntolerance
IllegalDrug
IllegalSoftware
LingerieAndSwimsuits
Marijuana
Nudity
PornographyAndSexuallyExplicit
SchoolCheating
SelfHarm
SexEducation
Tasteless
Violence
Weapons
ImageSharing
PeerToPeer
StreamingMediaAndDownloads
DownloadSites
Entertainment
Business
ComputersAndTechnology
Education
Finance
ForumsAndNewsgroups
Government
HealthAndMedicine
InformationSecurity
JobSearch
News
NonProfitsAndNgos
PersonalSites
PrivateIPAddresses
ProfessionalNetworking
SearchEnginesAndPortals
Translators
WebRepositoryAndStorage
WebBasedEmail
AdvertisementsAndPopUps
Chat
Cults
Games
InstantMessaging
Shopping
SocialNetworking
Arts
FashionAndBeauty
General
GreetingCards
LeisureAndRecreation
NatureAndConservation
PoliticsAndLaw
RealEstate
Religion
RestaurantsAndDining
Sports
Transportation
Travel
Uncategorized

@KumudD Could you get these values documented alongside the table for reference?

PramodValavala-MSFT avatar Oct 06 '22 15:10 PramodValavala-MSFT

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @fwsuppgithub.