-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eventgrid_extension exists on function but displays null value for event_grid_extension_config_key #13568
Comments
I am not a Go developer but I see the following piece of code: https://github.com/hashicorp/terraform-provider-azurerm/blob/b44ea51c13981790f575c04d0d79eff94639f71f/internal/services/web/function_app_host_keys_data_source.go#:~:text=eventgridextensionconfig_extension I think the reference is simply incorrect. I'd make a PR but may not have time right away to do so. Running the following command in the AZ CLI returns a different key: az rest \
--method post \
--uri /subscriptions/SANITIZED/resourceGroups/SANITIZED/providers/Microsoft.Web/sites/functionname/host/default/listkeys?api-version=2019-08-01 \
--query systemKeys |
Looks like this is dependent on which runtime is set. If the runtime is 1.x, eventgridextensionconfig_extension is used. Whereas version 2.x+ is eventgrid_extension: |
@jackofallops @rcskosir I am facing same issue. I am using Function ~4 |
Hi Everyone, I submitted a PR to fix this problem. In the meantime, in case it helps, one way to work around this problem is using azapi:
The key can then be accessed with |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Terraform (and AzureRM Provider) Version
TF Version:
0.15.5
AzureRM Version:
2.76.0
Affected Resource(s)
Data Source:
azurerm_function_app_host_keys
Terraform Configuration Files
Debug Output
Debug output wasn't helpful. Issue was found in state file.
STATE EXCERPT:
Panic Output
N/A
Expected Behaviour
Grab the eventgrid_extension key.
Actual Behaviour
event_grid_extension_config_key
is""
in the state file.Steps to Reproduce
terraform plan
Important Factoids
N/A
References
azurerm_function_app_host_keys
- support forevent_grid_extension_config_key
#10823The text was updated successfully, but these errors were encountered: