Solution: The subscription does not have QuotaId/Feature required by SKU 'S0'.

Got this today:

The subscription does not have QuotaId/Feature required by SKU ‘S0’.

{
   "error":{
      "code":"InvalidTemplateDeployment",
      "message":"The template deployment 'memetest04091' is not valid according to the validation procedure. The tracking id is 'e3552149-b5b3-4cd0-8715-6ae788d0a95a'. See inner errors for details.",
      "details":[
         {
            "code":"SpecialFeatureOrQuotaIdRequired",
            "message":"The subscription does not have QuotaId/Feature required by SKU 'S0'."
         }
      ]
   }
}

It’s because TextAnalytics retired S0-S4 SKUs and only have ‘S’ now. So, just change your SKU to S to fix it.

resource text_analytics 'Microsoft.CognitiveServices/[email protected]' = {
  name: '${basename}ta'
  location: location
  kind: 'TextAnalytics'
  sku: {
    name: 'S'
  }
  properties: {
    customSubDomainName: '${basename}ta'
  }
  identity: {
    type: 'SystemAssigned'
  }
}

Here’s more info on the change:
https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/how-tos/text-analytics-how-to-call-api?tabs=synchronous#change-your-pricing-tier