Giter Site home page Giter Site logo

Comments (11)

renrutsirhc avatar renrutsirhc commented on July 29, 2024 1

I ran into this issue today. In my case, the issue was solved by using the loadFileAsBase64Function on the certificate.

resource appleWWDRCACert 'Microsoft.Web/sites/publicCertificates@2021-03-01' = {
  name: 'AppleWWDRCA'
  parent: appServiceApp
  properties: {
    blob: any(loadFileAsBase64('./AppleWWDRCA.cer'))
    publicCertificateLocation: 'CurrentUserMy'
  }
}

from bicep-types-az.

alex-frankel avatar alex-frankel commented on July 29, 2024

Can you share the full bicep code you are using to reproduce the issue?

Is the first error Azure: "Parameter publicCertificateEnv is null or empty. happening when you deploy the bicep code, or does it get caught by the VS code extension as well?

from bicep-types-az.

kelvinbroek avatar kelvinbroek commented on July 29, 2024

When the property is not added, the validation passes. Only when deploying I get the mentioned error. Here's my code

param siteName string

param certificateName string

param blobValue string

resource site 'Microsoft.Web/sites@2021-03-01' existing = {
  name: siteName
}

resource publicCertRoot 'Microsoft.Web/sites/publicCertificates@2021-03-01' = {
  name: certificateName
  parent: site
  properties: {
    blob: any(blobValue)
    publicCertificateLocation: 'CurrentUserMy'
  }
}

from bicep-types-az.

alex-frankel avatar alex-frankel commented on July 29, 2024

This appears to be in issue in the Web Resource provider. I would recommend opening a support case and pointing the issue towards that team so they can take a deeper look.

Also including @seligj95 / @naveedaz as FYI

from bicep-types-az.

seligj95 avatar seligj95 commented on July 29, 2024

Tagging certs and domain team: @panchagnula / @yutanglin16

from bicep-types-az.

panchagnula avatar panchagnula commented on July 29, 2024

@seligj95 if this an issue that needs PG involvement please create a support case/ ICM so this can be looked into. Thanks!

from bicep-types-az.

aleksanderKopec avatar aleksanderKopec commented on July 29, 2024

Hello, do we have any ETA or anything about this? Currently encountering the same error.

from bicep-types-az.

alex-frankel avatar alex-frankel commented on July 29, 2024

Per @panchagnula -- someone needs to open a support ticket to make more progress on this and make sure it is routed to the Certs and Domain team. @aleksanderKopec are you able to do that?

from bicep-types-az.

panchagnula avatar panchagnula commented on July 29, 2024

@alex-frankel in general yes creating an Incident / support case helps get this on our radar faster, otherwise these can get lost in emails.

@aleksanderKopec, I don't understand bicep so I can't speak for that - but for public certificates create or update API requires the following in the body of the payload (from the above I don't see "kind") https://learn.microsoft.com/en-us/rest/api/appservice/web-apps/create-or-update-public-certificate#request-body
image

from bicep-types-az.

Trimatix avatar Trimatix commented on July 29, 2024

I was previously supplying the certificate content directly into the blob property, and the above solution fixed this issue for me as well. It is odd that loading the certificate from a file works fine, but providing the content directly does not, this seems to be an ARM issue.

EDIT: I need to do some more testing with this, because though the deployment succeeds without errors, I have just realized that the change was not reflected in the certificate resource...

from bicep-types-az.

Trimatix avatar Trimatix commented on July 29, 2024

There appears to have been a change in the azure resource manager, because even though the resource is still not being updated, the deployment succeeds without errors. I'm following the same steps with the same code, and no longer getting the "Parameter publicCertificateEnv is null or empty" error, but no change is reflected on my function.

In the deployment page in azure, I can see the expected certificate content in the generated ARM template. Is this definitely a bicep issue and not ARM?

A few comments in here recommend opening a support ticket; my support ticket has been open for nearly 5 months now. Back-and-forth with support doesn't seem to be going anywhere.

from bicep-types-az.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.