Open ssanderlin opened 3 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.
Author: | ssanderlin |
---|---|
Assignees: | PhoenixHe-msft |
Labels: | `Service Attention`, `Web Apps`, `needs-triage` |
Milestone: | - |
This seems reported but never resolved. Shouldn't be so hard to document it.
@ggailey777 / @craigshoemaker -- Could you please move this item to the correct repo? This content should go here https://docs.microsoft.com/en-us/azure/templates/Microsoft.Web/sites?tabs=json. Thanks.
Does this work for anyone? I'm getting NotFound: Error updating host key.
@ggailey777 / @craigshoemaker -- Could you please move this item to the correct repo? This content should go here https://docs.microsoft.com/en-us/azure/templates/Microsoft.Web/sites?tabs=json. Thanks.
https://github.com/Azure/azure-rest-api-specs is the correct repo for this issue - it is the source of truth for all Azure API documentation. The template reference documentation you linked is automatically generated from this repo.
This is still a problem
This is still an issue. We had to dig around in blog posts and comments to figure it out.
I see that there is documentation for function-level keys but not for host-level keys, which would include the master key. Let me see if I can find someone who can help look into this missing REST API content.
Sorry for the delay on this, I just was informed about it today.
hello! is there any update about this? thank you!
Any update?
It appears that the /host/ namespace has not been removed? At least I get deployment errors. Is there any update on this and an alternative way to deploy Keys at App level (not at function level)?
Update: Apparently this was just related to the pure host
object, which I used as parent.
Also experienced issues using Microsoft.Web/sites/host/functionkeys@2022-03-01
. Tried using parent
to refer to the default host, but received InternalServerError result, so used the name to refer to the parent instead.
Finally, used listKeys
to access the key (i.e. do not try to access the resource via hostKey.value
as you will get an error that the GET
operation is not supported,
resource functionApimKey 'Microsoft.Web/sites/host/functionkeys@2022-03-01' = {
name: '${functionName}/default/apimKey'
properties: {
name: 'apimKey'
}
}
var functionApimAccessKey = listKeys('${resourceId('Microsoft.Web/sites', functionName)}/host/default/', '2022-03-01').functionKeys['apimKey']
This is still an issue. We would like to generate function app level key in Bicep and not function level. But there is no documentation about this. What is the process for this?
https://docs.microsoft.com/en-us/azure/templates/Microsoft.Web/sites?tabs=json is missing documentation for Microsoft.Web/sites/host/functionkeys.
According to this comment, the schema for this resource type is:
I've encountered issues with customers excluding this resource type from their security policies - thereby preventing the creation of host-level keys - because this resource type is undocumented.