Azure / azure-cli-extensions

Public Repository for Extensions of Azure CLI.
https://docs.microsoft.com/en-us/cli/azure
MIT License
384 stars 1.25k forks source link

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

Open jenka13all opened 2 years ago

jenka13all commented 2 years ago

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}}"]}}]

yonzhan commented 2 years ago

Is your question related to any CLI commands?

ghost commented 2 years ago

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

jenka13all commented 2 years ago

My question is related to allowed values in Terraform.

yonzhan commented 2 years ago

This repo is only focusing on Azure CLI related issues.

jenka13all commented 2 years ago

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

PramodValavala-MSFT commented 2 years ago

@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?

microsoft-github-policy-service[bot] commented 1 year ago

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