Is it possible to use a smaller Azure subnet than required?
Asked by
Parchment.Roll
I'm working on migrating an application to a client's Azure cloud setup. We've been able to freely create VNETs and subnets in our own cloud subscription, but now that we're using the client's resources, we're running into some subnet delegation challenges. Microsoft suggests a minimum subnet size for their delegations, but given that my internal application doesn't require extensive scalingโonly a few hundred users dailyโI'm worried about the provided /24 VNET size. The container environment we're planning to use has a minimum requirement of /23. My concern is whether it's feasible to use a smaller subnet than what Microsoft specifies. If I do, could that lead to issues down the line, especially considering the container app has a max replica of 2?
Answers
You might want to avoid using the Consumption Only environment. Itโs been deprecated. Instead, try using the Workload Profiles environment, which allows for a smaller VNET integration of /27. The /23 requirement is mostly for older environment types!
Reply to this answer
I'm pretty sure if you go with a subnet smaller than /23, your deployment will fail. You'll likely get an error saying something like 'subnet size too small - must be /23 or larger.' It's a strict requirement for those delegations.
Reply to this answer
Add your answer
Answers are reviewed before publication.
bake.sale.treasurer: Just to clarify, going with a Consumption Only type doesnโt offer any real benefitsโonly drawbacks. Itโs best to skip it entirely.
MUDGUARD: But keep in mind, the dedicated plans will have a charge of $0.1 per hour for the plan alongside private endpoints, which can rack up to at least $140 a month even if youโre barely using it.