I have a SWA infrastructure with a linked Function app (Flex Consumption Plan) function that does not provision (internal server error) when using Sweden Central Region. It deploys fines on East US2.
The error:
{"code":"DeploymentFailed","target":"/subscriptions/f62c776c-adc1-4feb-9ac7-94ea741452c7/resourceGroups/rg-yolasors-pizza/providers/Microsoft.Resources/deployments/registration-webapp","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"ResourceDeploymentFailure","target":"/subscriptions/f62c776c-adc1-4feb-9ac7-94ea741452c7/resourceGroups/rg-yolasors-pizza/providers/Microsoft.Resources/deployments/jd5ou4lth2zjs-StaticSite-UserDefinedFunction","message":"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.","details":[{"code":"DeploymentFailed","target":"/subscriptions/f62c776c-adc1-4feb-9ac7-94ea741452c7/resourceGroups/rg-yolasors-pizza/providers/Microsoft.Resources/deployments/jd5ou4lth2zjs-StaticSite-UserDefinedFunction","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"InternalServerError","message":"There was an unexpected InternalServerError. Please try again later. x-ms-correlation-request-id: d6684b9a9da5d6a0d423accd7ccf920d"}]}]}]}
I'm using Bicep with AVM and AZD CLI to provision this infra.