-
Notifications
You must be signed in to change notification settings - Fork 29
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
runtimeSubnetId not used? No IP addresses are used when deploying an app #374
Comments
The “runtime subnet” field is currently deprecated and not used. If you provide a value there during creation of your container apps environment it will be ignored. Only the infrastructure subnet is required if you wish to provide your own VNET. |
To echo the above, the runtime subnet is not required and the updates are reflected in our documentation |
Thank you for the information! Would be great if you could document this in the Bicep/ARM reference as well - it's not deprecated there yet: |
Yeah I was misled as well from looking at the Bicep/ARM reference. I don't see a way to contribute edits to that page. It would be good to patch that up as well. |
fixes #21354 runtimeSubnetId was the old way of doing it and now it is no longer needed. This PR updates the description of this property. More Info here: microsoft/azure-container-apps#374 MicrosoftDocs/azure-docs#100319
Doc still isn't updated regarding deprecation of runtimeSubnetId, for both ARM and Bicep. |
And now the deployment fails - the 2022-03-01 API still defines this property. This is a breaking change and it shouldn't be done like that. You may ignore but you shuldn't change API backwards! On one case you (Microsoft) cannot make a change for vnet empty subnets property behavior for 7 years(!), but here you make a deployment breaking change and you don't even care to update docs. I don't see any logic here. cc: @bmoore-msft |
Sorrym no ideas - this one is even odd for me?!? |
This issue is a:
Issue description
When connecting an app environment to a VNET, no IPs are used from the "runtimeSubnetId".
Steps to reproduct
(Get-AzVirtualNetwork -Name $vnetName -ResourceGroupName $groupName -ExpandResource 'subnets/ipConfigurations').Subnets[1].IpConfigurations.Count
.Expected behavior [What you expected to happen.]
I expected the app to take an IP address from the runtime subnet since its documentation says "Resource ID of a subnet that Container App containers are injected into."
Actual behavior [What actually happened.]
No IPs are used from the "runtimeSubnetId". I have no idea which IP address has been given to the app.
Screenshots
I noticed that when you look at the environment in the Azure portal's resource explorer, the "runtimeSubnetId" property is not returned but the property does show up in the deployed template details.
Deployed template:
View from resource explorer:
(PS: Note that this also doesn't show the dapr* fields for some reason, but dapr does log dependency calls to Application Insights)
The text was updated successfully, but these errors were encountered: