Open JamesDLD opened 4 years ago
FWIW, on Create
, I am seeing that siteConfig gets marked correctly as a secret:
We have marked properties.siteConfig
as a secret property in custom metadata, but somehow the generated metadata does not pick up all child properties of properties.siteConfig
declared in Swagger. Will need @majastrz to help understand if it's a metadata generator related issue.
This turned out to be a provider bug. Most of of the child properties of siteConfig
are not secret at all, such as http20Enabled
, but upon GET the web RP returns siteConfig
with all child properties set to null:
.
I have annotated all the actual secret properties in our metadata, but we are still waiting for the web RP team to fix the siteConfig
property to not mask non-secret child properties.
This Noise still exists, any ETA for this?
we have this issue would be great to know when it will be fixed.
Today, the web RP returns this info only behind a query string in the GET request. Currently in what-if, we do not have a way to add the query string and as a result get this more limited GET response.
Options for fixing:
2 is the more realistic option, but we do not have this work scheduled atm, so there is no current ETA for when we can get this resolved.
cc @seligj95 / @shenglol as FYI in case I got any of this wrong.
@alex-frankel A GET on Microsoft.Web/sites won't reveal the config object, this is a limitation of the RP. I'm working with our Azure Resource Graph engineering team to be able to use ARG to query the config object directly. This functionality is expected to be released later this year.
@seligj95 @majastrz is there some ETA for this :) we are using bicep quite extensively and we would love to add some reliable checks based on the whatif. Currently we have an ugly json file with params to be skipped during checks but this can be error prone :(
Describe the noise
Resource type Microsoft.Web
apiVersion 2019-08-01
Client PowerShell
Relevant ARM Template code (we only need the resource object for the above
resourceType
andapiVersion
, but if it's easier you can include the entire template Complete template sample is available hereExpected response I expected no noise since the template has not been modified since the resources were deployed
Current (noisy) response
Additional context Thank you for this feature, I was a fan of Terraform so I really appreciate the work done here.