-
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
Cannot deploy Logic App when site_config is present in resource configuration #25891
Comments
Hi @Jeffrey20241, thanks for reporting. It seems to be caused because the service behavior changed. Opened an issue on At the same time, to fix this on the Terraform AzureRM provider side, we will need to upgrade the API version and change our implementation. There is an exsiting PR for this kind issue link. Will dive into it and update here for any progress. Thanks. |
Yes, after digging into this issue I believe we need to update Logic Apps SDK in AzureRM globally. |
Hi, Its a blocker issue for majority of the people as we not able to deploy Logic App at all, Can this be expedited please? |
Are there any updates to this issue yet? This seems to be taking some time to resolve and is a complete blocker for us to deploy our Logic Apps. If I don't receive an update by the end of the day, I'm going to create a local-exec provisioner for the site config as a workaround, if it works well, I'll post the code here. |
Per discussion with the service team, the service should work with the current Terraform provider version. |
Yes, that is what I am now doing with Logic Apps. But that is required for the whole |
Just got update this will be fixed in days on the service side, thanks for your patience. |
@ziyeqf Is there any decision about |
Hey folks, Our team is working on fixing this. If you need an immediate fix in the meantime, you're welcome to deploy with AzAPI instead; I've attached some code here for your convenience. resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "serverfarm" {
type = "Microsoft.Web/serverfarms@2022-09-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
hyperV = false
perSiteScaling = false
reserved = false
zoneRedundant = false
}
sku = {
name = "S1"
}
}
}
resource "azapi_resource" "site" {
type = "Microsoft.Web/sites@2022-09-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
clientAffinityEnabled = false
clientCertEnabled = false
clientCertMode = "Required"
enabled = true
httpsOnly = false
publicNetworkAccess = "Enabled"
serverFarmId = azapi_resource.serverfarm.id
siteConfig = {
acrUseManagedIdentityCreds = false
alwaysOn = true
autoHealEnabled = false
ftpsState = "Disabled"
http20Enabled = false
loadBalancing = "LeastRequests"
localMySqlEnabled = false
managedPipelineMode = "Integrated"
minTlsVersion = "1.2"
publicNetworkAccess = "Enabled"
remoteDebuggingEnabled = false
scmIpSecurityRestrictionsUseMain = false
scmMinTlsVersion = "1.2"
use32BitWorkerProcess = true
vnetRouteAllEnabled = false
webSocketsEnabled = false
windowsFxVersion = ""
}
vnetRouteAllEnabled = false
}
}
} |
yes, waiting for the change to be reverted is the current solution. and |
For anyone giving this workaround (which is much appreciated!) a try - thought I'd share that you will also want to add the
Looking forward to moving back to azurerm_logic_app_standard once API changes are reverted! |
Hi all, per our message and our testing the fix has been deployed. Could you please give it another try? |
@ziyeqf In our tenant after rolling back changes - everything works fine (as it was). |
I tried few minutes ago, and the issue is still persists. |
Also running into this issue still -
Initial deploy works without |
Hi, I tried to create a standard logic app today using TF (azurerm provider version 3.105.0), I am still seeing the same error "There was a conflict. SiteConfig.PublicNetworkAccess cannot be set by itself. Please use the Site.PublicNetworkAccess property" |
Hi @cnnranderson, just checked the code, And per the message the backend team has rolled back the change, our testing were made on |
Thanks for taking the time to open this issue. Since the backend team with Microsoft rolled back the change some time ago I am going to mark this issue as closed. If this issue is still persisting, please reach out and I can reopen this issue. |
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. |
Is there an existing issue for this?
Community Note
Terraform Version
1.8.2
AzureRM Provider Version
3.102.0
Affected Resource(s)/Data Source(s)
azurerm_logic_app_standard
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Logic App should be deployed with site_config configuration declared
Actual Behaviour
Deploying azurerm_logic_app_standard with any site_config produced error: SiteConfig.PublicNetworkAccess cannot be set by itself. Please use the Site.PublicNetworkAccess property.
If you deploy azurerm_logic_app_standard without any site_config, then the deployment completes with issue; ie:
Tried rolling back to AzureRM 3.101.0 which deployed this Logic App without issue last week but also experiences this same issue.
Steps to Reproduce
Deploy as per 'Terraform Configuration Files' example, it will fail.
Take out site_config from azurerm_logic_app_standard and it works fine
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: