Comments (11)
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.
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.
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.
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.
Tagging certs and domain team: @panchagnula / @yutanglin16
from bicep-types-az.
@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.
Hello, do we have any ETA or anything about this? Currently encountering the same error.
from bicep-types-az.
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.
@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
from bicep-types-az.
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.
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)
- Microsoft.Web/sites: Does not recognize property 'autoGeneratedDomainNameLabelScope'
- Unable to rerun code for Microsoft.Network/networkVirtualAppliances and a firewall is connected HOT 1
- Notification Hub Namespace update failed with BadArgument Exception HOT 3
- AKS Spot Nodepool error HOT 5
- Resource type "Microsoft.VirtualMachineImages/imageTemplates@2024-02-01" does not have types available
- Apim Api Revision fails when parent Api has no Description HOT 1
- Microsoft.Portal/dashboards: The property "type" expected a value of type "'Extension/HubsExtension/PartType/MarkdownPart'" but the provided value is of type "'Extension/HubsExtension/PartType/MonitorChartPart'"
- [Microsoft.KeyVault/vaults/accessPolicies]: does not have types available
- [Microsoft.App/containerApps]: ContainerResources example uses unsupported units for Memory property; Mb instead of Gi.
- [Microsoft.Web/sites]: missing functionAppConfig
- Microsoft.DataProtection/backupVaults not able to set SystemAssigned Identity HOT 1
- Error while deploying Azure Container App with bicep: ContainerAppInvalidResourceTotal HOT 1
- add tags to new subscription bicep not allowed
- MySQL Flexible deployment fails when properties.maintenanceWindow is set HOT 2
- Microsoft.Web/connections@2018-07-01-preview and Microsoft.Web/connections/accessPolicies@2018-07-01-preview
- Azure Container Apps - KEDA scale (managed identity) HOT 5
- Microsoft.Web/sites@2021-03-01 ipSecurityRestrictionsDefaultAction
- deployment ignores condition and is validating module
- [Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers]: compositeIndexes type issue
- [Microsoft.PowerPlatform/enterprisePolicies]: Virtual Networks Object structure is incorrect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bicep-types-az.