echoing-dress-72742
11/29/2022, 11:09 AMechoing-dinner-19531
11/29/2022, 1:56 PMechoing-dress-72742
12/01/2022, 8:21 AMname: Core.Api.IaC
description: Deploys rg-orchard-dev infrastructure
runtime: dotnet
template:
config:
core-api-iac:targetDomain:
description: The domain to serve the website at (e.g. <http://www.example.com|www.example.com>)
value: <http://orchardcore.net|orchardcore.net>
// GET CONFIG VALUES FROM YAML FILE PULUMI
var config = new Config("core-api-iac");
var targetDomain = config.Require("targetDomain");
<http://Pulumi.Log.Info|Pulumi.Log.Info>($"targetDomain: {targetDomain}");
echoing-dinner-19531
12/01/2022, 9:11 AMruntime: dotnet
template:
config:
You put it under the template section, that's just for templates not for plain projects.echoing-dress-72742
12/01/2022, 9:18 AMvar config = new Config();
// PULUMI LOG OUT TENANT ID
var tenantId = config.Require("tenant-id");
<http://Pulumi.Log.Info|Pulumi.Log.Info>($"Tenant ID: {tenantId}");
// PULUMI LOG OUT OBJECT ID
var objectId = config.Require("object-id");
<http://Pulumi.Log.Info|Pulumi.Log.Info>($"Object ID: {objectId}");
// PULUMI LOG OUT HOST NAME SSL NAME
var hostNameSslName = config.Require("host-name");
<http://Pulumi.Log.Info|Pulumi.Log.Info>($"Host Name SSL Name: {hostNameSslName}");
// PULUMI LOG OOUT SKU CAPACITY
var skuCapacity = config.Require("sku-capacity");
<http://Pulumi.Log.Info|Pulumi.Log.Info>($"SKU Capacity: {skuCapacity}");
// PULUMI LOG OUT SKU NAME
var skuName = config.Require("sku-name");
<http://Pulumi.Log.Info|Pulumi.Log.Info>($"SKU Name: {skuName}");
// PULUMI LOG OUT SKU FAMILY
var skuFamily = config.Require("sku-family");
<http://Pulumi.Log.Info|Pulumi.Log.Info>($"SKU Family: {skuFamily}");
// PULUMI LOG OUT SKU SIZE
var skuSize = config.Require("sku-size");
<http://Pulumi.Log.Info|Pulumi.Log.Info>($"SKU Size: {skuSize}");
name: Core-Api-Ioc
description: A minimal Azure Native C# Pulumi program
runtime: dotnet
config:
tenant-id: 8csdsfsdfsdf2-sdfdsf
object-id: bfsdfdsfs76389
host-name: sdfdfs.s
sku-capacity: 1
sku-name: B1
sku-family: B
sku-size: B1
config:
core-api-iac:targetDomain:
description: The domain to serve the website at (e.g. <http://www.example.com|www.example.com>)
value: <http://orchardcore.net|orchardcore.net>
echoing-dinner-19531
12/01/2022, 9:19 AMconfig:
core-api-iac:targetDomain:
description: The domain to serve the website at (e.g. <http://www.example.com|www.example.com>)
default: <http://orchardcore.net|orchardcore.net>
Use default
not value
echoing-dress-72742
12/01/2022, 9:20 AMechoing-dinner-19531
12/01/2022, 9:44 AMCore-Api-Ioc:data:
default:
active: true
nums:
- 1
- 2
- 3
echoing-dress-72742
12/01/2022, 9:45 AMechoing-dinner-19531
12/01/2022, 9:45 AMechoing-dress-72742
12/01/2022, 9:45 AMechoing-dinner-19531
12/01/2022, 9:46 AMechoing-dress-72742
12/01/2022, 9:56 AMechoing-dinner-19531
12/01/2022, 9:57 AMechoing-dress-72742
12/01/2022, 9:59 AMCore-Api-Ioc:dbscoredevpool__dbsncoredev_dbscoredevpool:
default:
servername: dbsncoredev
sku-properties:
default:
capacity: 1
name: B1
family: B
size: B1
tier: Basic
echoing-dinner-19531
12/02/2022, 11:46 AMechoing-dress-72742
12/02/2022, 11:47 AM