sparse-intern-71089
10/28/2020, 11:19 PMsparse-park-68967
10/28/2020, 11:25 PMwitty-market-32785
10/28/2020, 11:35 PMvar function = new WebApp("Function", new WebAppArgs
{
Name = name,
ResourceGroupName = appPlan.ResourceGroup,
Location = appPlan.Location,
ServerFarmId = appPlan.Id,
Tags = CustomConfigs.GetTags(environment),
SiteConfig = new SiteConfigArgs
{
AppSettings = new NameValuePairArgs[] {
new NameValuePairArgs {
Name = "FUNCTIONS_WORKER_RUNTIME",
Value = "dotnet"
},
new NameValuePairArgs {
Name = "FUNCTIONS_EXTENSION_VERSION",
Value = "~3"
},
new NameValuePairArgs {
Name = "AzureWebJobsStorage",
Value = storageAccount.PrimaryEndpoints.Apply(e => e.Blob),
}
}
},
Kind = "functionapp,linux",
ClientAffinityEnabled = true,
Enabled = true
}, new CustomResourceOptions { DependsOn = { appPlan, storageAccount } });
string vnetSubnetId = vnet.Subnets.Where(s => s.Name == $"snet-{appPlan.GetResourceName()}").FirstOrDefault()?.Id;
var swiftVnet = new WebAppSwiftVirtualNetworkConnection($"vnetintegration-{function.GetResourceName()}", new WebAppSwiftVirtualNetworkConnectionArgs
{
Name = function.GetResourceName(),
ResourceGroupName = function.ResourceGroup,
SubnetResourceId = vnetSubnetId
}, new CustomResourceOptions { DependsOn = function });
witty-market-32785
10/28/2020, 11:37 PMsparse-park-68967
10/28/2020, 11:45 PMsparse-park-68967
10/28/2020, 11:51 PMsparse-park-68967
10/28/2020, 11:53 PMwitty-market-32785
10/29/2020, 12:50 PMwitty-market-32785
10/29/2020, 5:55 PMwitty-market-32785
10/29/2020, 5:57 PM{
"apiVersion": "2016-08-01",
"type": "Microsoft.Web/sites",
"kind": "app",
"name": "[variables('webAppName')]",
"location": "[parameters('location')]",
"properties": {
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('appServicePlanName'))]"
},
"resources": [
{
"name": "virtualNetwork",
"type": "config",
"apiVersion": "2018-02-01",
"location": "[parameters('location')]",
"dependsOn": [
"[concat('Microsoft.Web/sites/', variables('WebAppName'))]",
"[concat('Microsoft.Network/virtualNetworks/', variables('vnetName'))]"
],
"properties": {
"subnetResourceId": "[variables('subnetRef')]",
"swiftSupported": true
}
}
],
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', variables('appServicePlanName'))]"
]
}
witty-market-32785
10/29/2020, 6:04 PMsparse-park-68967
10/30/2020, 2:18 AMsparse-park-68967
10/30/2020, 2:21 AM