Azure / AzOps

AzOps is a PowerShell module which deploys (Push) ARM Resource Templates & Bicep files at all Azure scope levels and exports (Pull) ARM resource hierarchy.
https://aka.ms/AzOps
MIT License
384 stars 163 forks source link

Cognitiveservices template fails on property qnaAzureSearchEndpointKey #740

Open Poekiee12 opened 1 year ago

Poekiee12 commented 1 year ago

Describe the bug When exporting the CognitiveServices/accounts resource in Azure, the validate runner fails because the value of the property qnaAzureSearchEndpointKey is null. The Whatif deployment does not allow this to be null and fails.

This issue happens to the resource type:

"Microsoft.CognitiveServices/accounts",

Steps to reproduce

  1. Pull the resources from Azure
  2. Validate the resources by using a Whatif deployment

Screenshots image

daltondhcp commented 1 year ago

Thank you for reporting this! We are striving to support all resource providers in pull, but also rely on that the RPs return all the correct schema. We are currently working on improving this to enable higher quality, but for now, it is best effort.

Out of curiosity, in this particular case, do you always run a validate after pull, or is this after changing the resource through a PR?