@pulumi/azure 6.31.0-alpha.1765866124 → 6.31.0-alpha.1765952675
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/appplatform/springCloudCertificate.d.ts +0 -99
- package/appplatform/springCloudCertificate.js +0 -99
- package/appplatform/springCloudCertificate.js.map +1 -1
- package/appservice/activeSlot.d.ts +1 -1
- package/appservice/activeSlot.js +1 -1
- package/appservice/customHostnameBinding.d.ts +2 -2
- package/appservice/customHostnameBinding.js +2 -2
- package/appservice/slot.d.ts +4 -4
- package/appservice/slot.js +4 -4
- package/cdn/frontdoorSecret.d.ts +0 -72
- package/cdn/frontdoorSecret.js +0 -72
- package/cdn/frontdoorSecret.js.map +1 -1
- package/cosmosdb/account.d.ts +2 -2
- package/cosmosdb/account.js +2 -2
- package/cosmosdb/cassandraCluster.d.ts +0 -49
- package/cosmosdb/cassandraCluster.js +0 -49
- package/cosmosdb/cassandraCluster.js.map +1 -1
- package/cosmosdb/cassandraDatacenter.d.ts +0 -59
- package/cosmosdb/cassandraDatacenter.js +0 -59
- package/cosmosdb/cassandraDatacenter.js.map +1 -1
- package/datashare/datasetBlobStorage.d.ts +0 -66
- package/datashare/datasetBlobStorage.js +0 -66
- package/datashare/datasetBlobStorage.js.map +1 -1
- package/datashare/datasetDataLakeGen2.d.ts +0 -62
- package/datashare/datasetDataLakeGen2.js +0 -62
- package/datashare/datasetDataLakeGen2.js.map +1 -1
- package/desktopvirtualization/scalingPlan.d.ts +0 -103
- package/desktopvirtualization/scalingPlan.js +0 -103
- package/desktopvirtualization/scalingPlan.js.map +1 -1
- package/desktopvirtualization/scalingPlanHostPoolAssociation.d.ts +0 -79
- package/desktopvirtualization/scalingPlanHostPoolAssociation.js +0 -79
- package/desktopvirtualization/scalingPlanHostPoolAssociation.js.map +1 -1
- package/hpc/cacheBlobNfsTarget.d.ts +0 -149
- package/hpc/cacheBlobNfsTarget.js +0 -149
- package/hpc/cacheBlobNfsTarget.js.map +1 -1
- package/hpc/cacheBlobTarget.d.ts +0 -71
- package/hpc/cacheBlobTarget.js +0 -71
- package/hpc/cacheBlobTarget.js.map +1 -1
- package/keyvault/accessPolicy.d.ts +0 -42
- package/keyvault/accessPolicy.js +0 -42
- package/keyvault/accessPolicy.js.map +1 -1
- package/keyvault/managedStorageAccount.d.ts +0 -2
- package/keyvault/managedStorageAccount.js +0 -2
- package/keyvault/managedStorageAccount.js.map +1 -1
- package/machinelearning/workspace.d.ts +0 -167
- package/machinelearning/workspace.js +0 -167
- package/machinelearning/workspace.js.map +1 -1
- package/management/privateLinkAssociation.d.ts +2 -2
- package/management/privateLinkAssociation.js +2 -2
- package/netapp/volumeGroupSapHana.d.ts +1 -1
- package/netapp/volumeGroupSapHana.js +1 -1
- package/network/trafficManagerProfile.d.ts +2 -2
- package/network/trafficManagerProfile.js +2 -2
- package/operationalinsights/analyticsSolution.d.ts +3 -3
- package/operationalinsights/analyticsSolution.js +3 -3
- package/oracle/getCloudVmCluster.d.ts +1 -1
- package/package.json +2 -2
- package/pim/roleManagementPolicy.d.ts +0 -56
- package/pim/roleManagementPolicy.js +0 -56
- package/pim/roleManagementPolicy.js.map +1 -1
- package/postgresql/flexibleServerActiveDirectoryAdministrator.d.ts +0 -47
- package/postgresql/flexibleServerActiveDirectoryAdministrator.js +0 -47
- package/postgresql/flexibleServerActiveDirectoryAdministrator.js.map +1 -1
- package/redhatopenshift/cluster.d.ts +0 -103
- package/redhatopenshift/cluster.js +0 -103
- package/redhatopenshift/cluster.js.map +1 -1
- package/redis/firewallRule.d.ts +3 -3
- package/redis/firewallRule.js +3 -3
- package/stack/hciCluster.d.ts +0 -36
- package/stack/hciCluster.js +0 -36
- package/stack/hciCluster.js.map +1 -1
- package/stack/hciMarketplaceGalleryImage.d.ts +0 -48
- package/stack/hciMarketplaceGalleryImage.js +0 -48
- package/stack/hciMarketplaceGalleryImage.js.map +1 -1
- package/trafficmanager/profile.d.ts +2 -2
- package/trafficmanager/profile.js +2 -2
- package/types/output.d.ts +3 -3
|
@@ -14,109 +14,6 @@ const utilities = require("../utilities");
|
|
|
14
14
|
*
|
|
15
15
|
* > **Note:** Scaling Plans require specific permissions to be granted to the Windows Virtual Desktop application before a 'host_pool' can be configured. [Required Permissions for Scaling Plans](https://docs.microsoft.com/azure/virtual-desktop/autoscale-scaling-plan#create-a-custom-rbac-role).
|
|
16
16
|
*
|
|
17
|
-
* ## Example Usage
|
|
18
|
-
*
|
|
19
|
-
* ```typescript
|
|
20
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
-
* import * as azure from "@pulumi/azure";
|
|
22
|
-
* import * as azuread from "@pulumi/azuread";
|
|
23
|
-
* import * as random from "@pulumi/random";
|
|
24
|
-
*
|
|
25
|
-
* const exampleRandomUuid = new random.RandomUuid("example", {});
|
|
26
|
-
* const exampleResourceGroup = new azure.core.ResourceGroup("example", {
|
|
27
|
-
* name: "example-resources",
|
|
28
|
-
* location: "West Europe",
|
|
29
|
-
* });
|
|
30
|
-
* const exampleRoleDefinition = new azure.authorization.RoleDefinition("example", {
|
|
31
|
-
* name: "AVD-AutoScale",
|
|
32
|
-
* scope: exampleResourceGroup.id,
|
|
33
|
-
* description: "AVD AutoScale Role",
|
|
34
|
-
* permissions: [{
|
|
35
|
-
* actions: [
|
|
36
|
-
* "Microsoft.Insights/eventtypes/values/read",
|
|
37
|
-
* "Microsoft.Compute/virtualMachines/deallocate/action",
|
|
38
|
-
* "Microsoft.Compute/virtualMachines/restart/action",
|
|
39
|
-
* "Microsoft.Compute/virtualMachines/powerOff/action",
|
|
40
|
-
* "Microsoft.Compute/virtualMachines/start/action",
|
|
41
|
-
* "Microsoft.Compute/virtualMachines/read",
|
|
42
|
-
* "Microsoft.DesktopVirtualization/hostpools/read",
|
|
43
|
-
* "Microsoft.DesktopVirtualization/hostpools/write",
|
|
44
|
-
* "Microsoft.DesktopVirtualization/hostpools/sessionhosts/read",
|
|
45
|
-
* "Microsoft.DesktopVirtualization/hostpools/sessionhosts/write",
|
|
46
|
-
* "Microsoft.DesktopVirtualization/hostpools/sessionhosts/usersessions/delete",
|
|
47
|
-
* "Microsoft.DesktopVirtualization/hostpools/sessionhosts/usersessions/read",
|
|
48
|
-
* "Microsoft.DesktopVirtualization/hostpools/sessionhosts/usersessions/sendMessage/action",
|
|
49
|
-
* "Microsoft.DesktopVirtualization/hostpools/sessionhosts/usersessions/read",
|
|
50
|
-
* ],
|
|
51
|
-
* notActions: [],
|
|
52
|
-
* }],
|
|
53
|
-
* assignableScopes: [exampleResourceGroup.id],
|
|
54
|
-
* });
|
|
55
|
-
* const example = azuread.getServicePrincipal({
|
|
56
|
-
* displayName: "Azure Virtual Desktop",
|
|
57
|
-
* });
|
|
58
|
-
* const exampleAssignment = new azure.authorization.Assignment("example", {
|
|
59
|
-
* name: exampleRandomUuid.result,
|
|
60
|
-
* scope: exampleResourceGroup.id,
|
|
61
|
-
* roleDefinitionId: exampleRoleDefinition.roleDefinitionResourceId,
|
|
62
|
-
* principalId: example.then(example => example.id),
|
|
63
|
-
* skipServicePrincipalAadCheck: true,
|
|
64
|
-
* });
|
|
65
|
-
* const exampleHostPool = new azure.desktopvirtualization.HostPool("example", {
|
|
66
|
-
* name: "example-hostpool",
|
|
67
|
-
* location: exampleResourceGroup.location,
|
|
68
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
69
|
-
* type: "Pooled",
|
|
70
|
-
* validateEnvironment: true,
|
|
71
|
-
* loadBalancerType: "BreadthFirst",
|
|
72
|
-
* });
|
|
73
|
-
* const exampleScalingPlan = new azure.desktopvirtualization.ScalingPlan("example", {
|
|
74
|
-
* name: "example-scaling-plan",
|
|
75
|
-
* location: exampleResourceGroup.location,
|
|
76
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
77
|
-
* friendlyName: "Scaling Plan Example",
|
|
78
|
-
* description: "Example Scaling Plan",
|
|
79
|
-
* timeZone: "GMT Standard Time",
|
|
80
|
-
* schedules: [{
|
|
81
|
-
* name: "Weekdays",
|
|
82
|
-
* daysOfWeeks: [
|
|
83
|
-
* "Monday",
|
|
84
|
-
* "Tuesday",
|
|
85
|
-
* "Wednesday",
|
|
86
|
-
* "Thursday",
|
|
87
|
-
* "Friday",
|
|
88
|
-
* ],
|
|
89
|
-
* rampUpStartTime: "05:00",
|
|
90
|
-
* rampUpLoadBalancingAlgorithm: "BreadthFirst",
|
|
91
|
-
* rampUpMinimumHostsPercent: 20,
|
|
92
|
-
* rampUpCapacityThresholdPercent: 10,
|
|
93
|
-
* peakStartTime: "09:00",
|
|
94
|
-
* peakLoadBalancingAlgorithm: "BreadthFirst",
|
|
95
|
-
* rampDownStartTime: "19:00",
|
|
96
|
-
* rampDownLoadBalancingAlgorithm: "DepthFirst",
|
|
97
|
-
* rampDownMinimumHostsPercent: 10,
|
|
98
|
-
* rampDownForceLogoffUsers: false,
|
|
99
|
-
* rampDownWaitTimeMinutes: 45,
|
|
100
|
-
* rampDownNotificationMessage: "Please log off in the next 45 minutes...",
|
|
101
|
-
* rampDownCapacityThresholdPercent: 5,
|
|
102
|
-
* rampDownStopHostsWhen: "ZeroSessions",
|
|
103
|
-
* offPeakStartTime: "22:00",
|
|
104
|
-
* offPeakLoadBalancingAlgorithm: "DepthFirst",
|
|
105
|
-
* }],
|
|
106
|
-
* hostPools: [{
|
|
107
|
-
* hostpoolId: exampleHostPool.id,
|
|
108
|
-
* scalingPlanEnabled: true,
|
|
109
|
-
* }],
|
|
110
|
-
* });
|
|
111
|
-
* ```
|
|
112
|
-
*
|
|
113
|
-
* ## API Providers
|
|
114
|
-
*
|
|
115
|
-
* <!-- This section is generated, changes will be overwritten -->
|
|
116
|
-
* This resource uses the following Azure API Providers:
|
|
117
|
-
*
|
|
118
|
-
* * `Microsoft.DesktopVirtualization` - 2024-04-03
|
|
119
|
-
*
|
|
120
17
|
* ## Import
|
|
121
18
|
*
|
|
122
19
|
* Virtual Desktop Scaling Plans can be imported using the `resource id`, e.g.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scalingPlan.js","sourceRoot":"","sources":["../../desktopvirtualization/scalingPlan.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"scalingPlan.js","sourceRoot":"","sources":["../../desktopvirtualization/scalingPlan.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IAmDD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,EAAE,YAAY,CAAC;YACrD,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,EAAE,YAAY,CAAC;YACrD,cAAc,CAAC,WAAW,CAAC,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C,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AApHL,kCAqHC;AAvGG,gBAAgB;AACO,wBAAY,GAAG,qDAAqD,CAAC"}
|
|
@@ -2,85 +2,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* Manages a Virtual Desktop Scaling Plan Host Pool Association.
|
|
4
4
|
*
|
|
5
|
-
* ## Example Usage
|
|
6
|
-
*
|
|
7
|
-
* ```typescript
|
|
8
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
-
* import * as azure from "@pulumi/azure";
|
|
10
|
-
* import * as azuread from "@pulumi/azuread";
|
|
11
|
-
*
|
|
12
|
-
* const exampleResourceGroup = new azure.core.ResourceGroup("example", {
|
|
13
|
-
* name: "rg-example-virtualdesktop",
|
|
14
|
-
* location: "West Europe",
|
|
15
|
-
* });
|
|
16
|
-
* const example = azuread.getServicePrincipal({
|
|
17
|
-
* displayName: "Windows Virtual Desktop",
|
|
18
|
-
* });
|
|
19
|
-
* const exampleAssignment = new azure.authorization.Assignment("example", {
|
|
20
|
-
* scope: exampleResourceGroup.id,
|
|
21
|
-
* roleDefinitionName: "Desktop Virtualization Power On Off Contributor",
|
|
22
|
-
* principalId: example.then(example => example.objectId),
|
|
23
|
-
* });
|
|
24
|
-
* const exampleHostPool = new azure.desktopvirtualization.HostPool("example", {
|
|
25
|
-
* name: "example-hostpool",
|
|
26
|
-
* location: exampleResourceGroup.location,
|
|
27
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
28
|
-
* type: "Pooled",
|
|
29
|
-
* validateEnvironment: true,
|
|
30
|
-
* loadBalancerType: "BreadthFirst",
|
|
31
|
-
* });
|
|
32
|
-
* const exampleScalingPlan = new azure.desktopvirtualization.ScalingPlan("example", {
|
|
33
|
-
* name: "example-scaling-plan",
|
|
34
|
-
* location: exampleResourceGroup.location,
|
|
35
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
36
|
-
* friendlyName: "Scaling Plan Test",
|
|
37
|
-
* description: "Test Scaling Plan",
|
|
38
|
-
* timeZone: "GMT Standard Time",
|
|
39
|
-
* schedules: [{
|
|
40
|
-
* name: "Weekdays",
|
|
41
|
-
* daysOfWeeks: [
|
|
42
|
-
* "Monday",
|
|
43
|
-
* "Tuesday",
|
|
44
|
-
* "Wednesday",
|
|
45
|
-
* "Thursday",
|
|
46
|
-
* "Friday",
|
|
47
|
-
* ],
|
|
48
|
-
* rampUpStartTime: "06:00",
|
|
49
|
-
* rampUpLoadBalancingAlgorithm: "BreadthFirst",
|
|
50
|
-
* rampUpMinimumHostsPercent: 20,
|
|
51
|
-
* rampUpCapacityThresholdPercent: 10,
|
|
52
|
-
* peakStartTime: "09:00",
|
|
53
|
-
* peakLoadBalancingAlgorithm: "BreadthFirst",
|
|
54
|
-
* rampDownStartTime: "18:00",
|
|
55
|
-
* rampDownLoadBalancingAlgorithm: "BreadthFirst",
|
|
56
|
-
* rampDownMinimumHostsPercent: 10,
|
|
57
|
-
* rampDownForceLogoffUsers: false,
|
|
58
|
-
* rampDownWaitTimeMinutes: 45,
|
|
59
|
-
* rampDownNotificationMessage: "Please log of in the next 45 minutes...",
|
|
60
|
-
* rampDownCapacityThresholdPercent: 5,
|
|
61
|
-
* rampDownStopHostsWhen: "ZeroSessions",
|
|
62
|
-
* offPeakStartTime: "22:00",
|
|
63
|
-
* offPeakLoadBalancingAlgorithm: "BreadthFirst",
|
|
64
|
-
* }],
|
|
65
|
-
* }, {
|
|
66
|
-
* dependsOn: [exampleAssignment],
|
|
67
|
-
* });
|
|
68
|
-
* const exampleScalingPlanHostPoolAssociation = new azure.desktopvirtualization.ScalingPlanHostPoolAssociation("example", {
|
|
69
|
-
* hostPoolId: exampleHostPool.id,
|
|
70
|
-
* scalingPlanId: exampleScalingPlan.id,
|
|
71
|
-
* enabled: true,
|
|
72
|
-
* }, {
|
|
73
|
-
* dependsOn: [exampleAssignment],
|
|
74
|
-
* });
|
|
75
|
-
* ```
|
|
76
|
-
*
|
|
77
|
-
* ## API Providers
|
|
78
|
-
*
|
|
79
|
-
* <!-- This section is generated, changes will be overwritten -->
|
|
80
|
-
* This resource uses the following Azure API Providers:
|
|
81
|
-
*
|
|
82
|
-
* * `Microsoft.DesktopVirtualization` - 2024-04-03
|
|
83
|
-
*
|
|
84
5
|
* ## Import
|
|
85
6
|
*
|
|
86
7
|
* Associations between Virtual Desktop Scaling Plans and Virtual Desktop Host Pools can be imported using the `resource id`, e.g.
|
|
@@ -8,85 +8,6 @@ const utilities = require("../utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Manages a Virtual Desktop Scaling Plan Host Pool Association.
|
|
10
10
|
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as azure from "@pulumi/azure";
|
|
16
|
-
* import * as azuread from "@pulumi/azuread";
|
|
17
|
-
*
|
|
18
|
-
* const exampleResourceGroup = new azure.core.ResourceGroup("example", {
|
|
19
|
-
* name: "rg-example-virtualdesktop",
|
|
20
|
-
* location: "West Europe",
|
|
21
|
-
* });
|
|
22
|
-
* const example = azuread.getServicePrincipal({
|
|
23
|
-
* displayName: "Windows Virtual Desktop",
|
|
24
|
-
* });
|
|
25
|
-
* const exampleAssignment = new azure.authorization.Assignment("example", {
|
|
26
|
-
* scope: exampleResourceGroup.id,
|
|
27
|
-
* roleDefinitionName: "Desktop Virtualization Power On Off Contributor",
|
|
28
|
-
* principalId: example.then(example => example.objectId),
|
|
29
|
-
* });
|
|
30
|
-
* const exampleHostPool = new azure.desktopvirtualization.HostPool("example", {
|
|
31
|
-
* name: "example-hostpool",
|
|
32
|
-
* location: exampleResourceGroup.location,
|
|
33
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
34
|
-
* type: "Pooled",
|
|
35
|
-
* validateEnvironment: true,
|
|
36
|
-
* loadBalancerType: "BreadthFirst",
|
|
37
|
-
* });
|
|
38
|
-
* const exampleScalingPlan = new azure.desktopvirtualization.ScalingPlan("example", {
|
|
39
|
-
* name: "example-scaling-plan",
|
|
40
|
-
* location: exampleResourceGroup.location,
|
|
41
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
42
|
-
* friendlyName: "Scaling Plan Test",
|
|
43
|
-
* description: "Test Scaling Plan",
|
|
44
|
-
* timeZone: "GMT Standard Time",
|
|
45
|
-
* schedules: [{
|
|
46
|
-
* name: "Weekdays",
|
|
47
|
-
* daysOfWeeks: [
|
|
48
|
-
* "Monday",
|
|
49
|
-
* "Tuesday",
|
|
50
|
-
* "Wednesday",
|
|
51
|
-
* "Thursday",
|
|
52
|
-
* "Friday",
|
|
53
|
-
* ],
|
|
54
|
-
* rampUpStartTime: "06:00",
|
|
55
|
-
* rampUpLoadBalancingAlgorithm: "BreadthFirst",
|
|
56
|
-
* rampUpMinimumHostsPercent: 20,
|
|
57
|
-
* rampUpCapacityThresholdPercent: 10,
|
|
58
|
-
* peakStartTime: "09:00",
|
|
59
|
-
* peakLoadBalancingAlgorithm: "BreadthFirst",
|
|
60
|
-
* rampDownStartTime: "18:00",
|
|
61
|
-
* rampDownLoadBalancingAlgorithm: "BreadthFirst",
|
|
62
|
-
* rampDownMinimumHostsPercent: 10,
|
|
63
|
-
* rampDownForceLogoffUsers: false,
|
|
64
|
-
* rampDownWaitTimeMinutes: 45,
|
|
65
|
-
* rampDownNotificationMessage: "Please log of in the next 45 minutes...",
|
|
66
|
-
* rampDownCapacityThresholdPercent: 5,
|
|
67
|
-
* rampDownStopHostsWhen: "ZeroSessions",
|
|
68
|
-
* offPeakStartTime: "22:00",
|
|
69
|
-
* offPeakLoadBalancingAlgorithm: "BreadthFirst",
|
|
70
|
-
* }],
|
|
71
|
-
* }, {
|
|
72
|
-
* dependsOn: [exampleAssignment],
|
|
73
|
-
* });
|
|
74
|
-
* const exampleScalingPlanHostPoolAssociation = new azure.desktopvirtualization.ScalingPlanHostPoolAssociation("example", {
|
|
75
|
-
* hostPoolId: exampleHostPool.id,
|
|
76
|
-
* scalingPlanId: exampleScalingPlan.id,
|
|
77
|
-
* enabled: true,
|
|
78
|
-
* }, {
|
|
79
|
-
* dependsOn: [exampleAssignment],
|
|
80
|
-
* });
|
|
81
|
-
* ```
|
|
82
|
-
*
|
|
83
|
-
* ## API Providers
|
|
84
|
-
*
|
|
85
|
-
* <!-- This section is generated, changes will be overwritten -->
|
|
86
|
-
* This resource uses the following Azure API Providers:
|
|
87
|
-
*
|
|
88
|
-
* * `Microsoft.DesktopVirtualization` - 2024-04-03
|
|
89
|
-
*
|
|
90
11
|
* ## Import
|
|
91
12
|
*
|
|
92
13
|
* Associations between Virtual Desktop Scaling Plans and Virtual Desktop Host Pools can be imported using the `resource id`, e.g.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scalingPlanHostPoolAssociation.js","sourceRoot":"","sources":["../../desktopvirtualization/scalingPlanHostPoolAssociation.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"scalingPlanHostPoolAssociation.js","sourceRoot":"","sources":["../../desktopvirtualization/scalingPlanHostPoolAssociation.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA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AAI,IAAI,EAAE,aAAa,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAChD,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;aAChE;YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,8BAA8B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnF,CAAC;;AA1EL,wEA2EC;AA7DG,gBAAgB;AACO,2CAAY,GAAG,2FAA2F,CAAC"}
|
|
@@ -8,155 +8,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
*
|
|
9
9
|
* > **Note:** This resource depends on the NFSv3 enabled Storage Account, which has some prerequisites need to meet. Please checkout: <https://docs.microsoft.com/azure/storage/blobs/network-file-system-protocol-support-how-to?tabs=azure-powershell>.
|
|
10
10
|
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as azure from "@pulumi/azure";
|
|
16
|
-
* import * as azuread from "@pulumi/azuread";
|
|
17
|
-
* import * as std from "@pulumi/std";
|
|
18
|
-
*
|
|
19
|
-
* const exampleResourceGroup = new azure.core.ResourceGroup("example", {
|
|
20
|
-
* name: "example-rg",
|
|
21
|
-
* location: "west europe",
|
|
22
|
-
* });
|
|
23
|
-
* const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
|
|
24
|
-
* name: "example-vnet",
|
|
25
|
-
* addressSpaces: ["10.0.0.0/16"],
|
|
26
|
-
* location: exampleResourceGroup.location,
|
|
27
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
28
|
-
* });
|
|
29
|
-
* const exampleSubnet = new azure.network.Subnet("example", {
|
|
30
|
-
* name: "example-subnet",
|
|
31
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
32
|
-
* virtualNetworkName: exampleVirtualNetwork.name,
|
|
33
|
-
* addressPrefixes: ["10.0.2.0/24"],
|
|
34
|
-
* serviceEndpoints: ["Microsoft.Storage"],
|
|
35
|
-
* });
|
|
36
|
-
* const example = azuread.getServicePrincipal({
|
|
37
|
-
* displayName: "HPC Cache Resource Provider",
|
|
38
|
-
* });
|
|
39
|
-
* const exampleAccount = new azure.storage.Account("example", {
|
|
40
|
-
* name: "examplestorageaccount",
|
|
41
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
42
|
-
* location: exampleResourceGroup.location,
|
|
43
|
-
* accountTier: "Standard",
|
|
44
|
-
* accountKind: "StorageV2",
|
|
45
|
-
* accountReplicationType: "LRS",
|
|
46
|
-
* isHnsEnabled: true,
|
|
47
|
-
* nfsv3Enabled: true,
|
|
48
|
-
* enableHttpsTrafficOnly: false,
|
|
49
|
-
* networkRules: {
|
|
50
|
-
* defaultAction: "Deny",
|
|
51
|
-
* virtualNetworkSubnetIds: [exampleSubnet.id],
|
|
52
|
-
* },
|
|
53
|
-
* });
|
|
54
|
-
* // Due to https://github.com/hashicorp/terraform-provider-azurerm/issues/2977 and the fact
|
|
55
|
-
* // that the NFSv3 enabled storage account can't allow public network access - otherwise the NFSv3 protocol will fail,
|
|
56
|
-
* // we have to use the ARM template to deploy the storage container as a workaround.
|
|
57
|
-
* // Once the issue above got resolved, we can instead use the azurerm_storage_container resource.
|
|
58
|
-
* const storage_containers = new azure.core.ResourceGroupTemplateDeployment("storage-containers", {
|
|
59
|
-
* name: "example-deployment",
|
|
60
|
-
* resourceGroupName: exampleAccount.resourceGroupName,
|
|
61
|
-
* deploymentMode: "Incremental",
|
|
62
|
-
* parametersContent: pulumi.jsonStringify({
|
|
63
|
-
* location: {
|
|
64
|
-
* value: exampleAccount.location,
|
|
65
|
-
* },
|
|
66
|
-
* storageAccountName: {
|
|
67
|
-
* value: exampleAccount.name,
|
|
68
|
-
* },
|
|
69
|
-
* containerName: {
|
|
70
|
-
* value: "example-container",
|
|
71
|
-
* },
|
|
72
|
-
* }),
|
|
73
|
-
* templateContent: `{
|
|
74
|
-
* \\"schema\\": \\"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\\",
|
|
75
|
-
* \\"contentVersion\\": \\"1.0.0.0\\",
|
|
76
|
-
* \\"parameters\\": {
|
|
77
|
-
* \\"storageAccountName\\": {
|
|
78
|
-
* \\"type\\": \\"String\\"
|
|
79
|
-
* },
|
|
80
|
-
* \\"containerName\\": {
|
|
81
|
-
* \\"type\\": \\"String\\"
|
|
82
|
-
* },
|
|
83
|
-
* \\"location\\": {
|
|
84
|
-
* \\"type\\": \\"String\\"
|
|
85
|
-
* }
|
|
86
|
-
* },
|
|
87
|
-
* \\"resources\\": [
|
|
88
|
-
* {
|
|
89
|
-
* \\"type\\": \\"Microsoft.Storage/storageAccounts\\",
|
|
90
|
-
* \\"apiVersion\\": \\"2019-06-01\\",
|
|
91
|
-
* \\"name\\": \\"[parameters('storageAccountName')]\\",
|
|
92
|
-
* \\"location\\": \\"[parameters('location')]\\",
|
|
93
|
-
* \\"sku\\": {
|
|
94
|
-
* \\"name\\": \\"Standard_LRS\\",
|
|
95
|
-
* \\"tier\\": \\"Standard\\"
|
|
96
|
-
* },
|
|
97
|
-
* \\"kind\\": \\"StorageV2\\",
|
|
98
|
-
* \\"properties\\": {
|
|
99
|
-
* \\"accessTier\\": \\"Hot\\"
|
|
100
|
-
* },
|
|
101
|
-
* \\"resources\\": [
|
|
102
|
-
* {
|
|
103
|
-
* \\"type\\": \\"blobServices/containers\\",
|
|
104
|
-
* \\"apiVersion\\": \\"2019-06-01\\",
|
|
105
|
-
* \\"name\\": \\"[concat('default/', parameters('containerName'))]\\",
|
|
106
|
-
* \\"dependsOn\\": [
|
|
107
|
-
* \\"[parameters('storageAccountName')]\\"
|
|
108
|
-
* ]
|
|
109
|
-
* }
|
|
110
|
-
* ]
|
|
111
|
-
* }
|
|
112
|
-
* ],
|
|
113
|
-
*
|
|
114
|
-
* \\"outputs\\": {
|
|
115
|
-
* \\"id\\": {
|
|
116
|
-
* \\"type\\": \\"String\\",
|
|
117
|
-
* \\"value\\": \\"[resourceId('Microsoft.Storage/storageAccounts/blobServices/containers', parameters('storageAccountName'), 'default', parameters('containerName'))]\\"
|
|
118
|
-
* }
|
|
119
|
-
* }
|
|
120
|
-
* }
|
|
121
|
-
* `,
|
|
122
|
-
* });
|
|
123
|
-
* const exampleStorageAccountContrib = new azure.authorization.Assignment("example_storage_account_contrib", {
|
|
124
|
-
* scope: exampleAccount.id,
|
|
125
|
-
* roleDefinitionName: "Storage Account Contributor",
|
|
126
|
-
* principalId: example.then(example => example.objectId),
|
|
127
|
-
* });
|
|
128
|
-
* const exampleStorageBlobDataContrib = new azure.authorization.Assignment("example_storage_blob_data_contrib", {
|
|
129
|
-
* scope: exampleAccount.id,
|
|
130
|
-
* roleDefinitionName: "Storage Blob Data Contributor",
|
|
131
|
-
* principalId: example.then(example => example.objectId),
|
|
132
|
-
* });
|
|
133
|
-
* const exampleCache = new azure.hpc.Cache("example", {
|
|
134
|
-
* name: "example-hpc-cache",
|
|
135
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
136
|
-
* location: exampleResourceGroup.location,
|
|
137
|
-
* cacheSizeInGb: 3072,
|
|
138
|
-
* subnetId: exampleSubnet.id,
|
|
139
|
-
* skuName: "Standard_2G",
|
|
140
|
-
* });
|
|
141
|
-
* const exampleCacheBlobNfsTarget = new azure.hpc.CacheBlobNfsTarget("example", {
|
|
142
|
-
* name: "example-hpc-target",
|
|
143
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
144
|
-
* cacheName: exampleCache.name,
|
|
145
|
-
* storageContainerId: std.jsondecodeOutput({
|
|
146
|
-
* input: storage_containers.outputContent,
|
|
147
|
-
* }).apply(invoke => invoke.result?.id?.value),
|
|
148
|
-
* namespacePath: "/p1",
|
|
149
|
-
* usageModel: "READ_HEAVY_INFREQ",
|
|
150
|
-
* });
|
|
151
|
-
* ```
|
|
152
|
-
*
|
|
153
|
-
* ## API Providers
|
|
154
|
-
*
|
|
155
|
-
* <!-- This section is generated, changes will be overwritten -->
|
|
156
|
-
* This resource uses the following Azure API Providers:
|
|
157
|
-
*
|
|
158
|
-
* * `Microsoft.StorageCache` - 2023-05-01
|
|
159
|
-
*
|
|
160
11
|
* ## Import
|
|
161
12
|
*
|
|
162
13
|
* HPC Cache Blob NFS Targets can be imported using the `resource id`, e.g.
|
|
@@ -14,155 +14,6 @@ const utilities = require("../utilities");
|
|
|
14
14
|
*
|
|
15
15
|
* > **Note:** This resource depends on the NFSv3 enabled Storage Account, which has some prerequisites need to meet. Please checkout: <https://docs.microsoft.com/azure/storage/blobs/network-file-system-protocol-support-how-to?tabs=azure-powershell>.
|
|
16
16
|
*
|
|
17
|
-
* ## Example Usage
|
|
18
|
-
*
|
|
19
|
-
* ```typescript
|
|
20
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
-
* import * as azure from "@pulumi/azure";
|
|
22
|
-
* import * as azuread from "@pulumi/azuread";
|
|
23
|
-
* import * as std from "@pulumi/std";
|
|
24
|
-
*
|
|
25
|
-
* const exampleResourceGroup = new azure.core.ResourceGroup("example", {
|
|
26
|
-
* name: "example-rg",
|
|
27
|
-
* location: "west europe",
|
|
28
|
-
* });
|
|
29
|
-
* const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
|
|
30
|
-
* name: "example-vnet",
|
|
31
|
-
* addressSpaces: ["10.0.0.0/16"],
|
|
32
|
-
* location: exampleResourceGroup.location,
|
|
33
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
34
|
-
* });
|
|
35
|
-
* const exampleSubnet = new azure.network.Subnet("example", {
|
|
36
|
-
* name: "example-subnet",
|
|
37
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
38
|
-
* virtualNetworkName: exampleVirtualNetwork.name,
|
|
39
|
-
* addressPrefixes: ["10.0.2.0/24"],
|
|
40
|
-
* serviceEndpoints: ["Microsoft.Storage"],
|
|
41
|
-
* });
|
|
42
|
-
* const example = azuread.getServicePrincipal({
|
|
43
|
-
* displayName: "HPC Cache Resource Provider",
|
|
44
|
-
* });
|
|
45
|
-
* const exampleAccount = new azure.storage.Account("example", {
|
|
46
|
-
* name: "examplestorageaccount",
|
|
47
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
48
|
-
* location: exampleResourceGroup.location,
|
|
49
|
-
* accountTier: "Standard",
|
|
50
|
-
* accountKind: "StorageV2",
|
|
51
|
-
* accountReplicationType: "LRS",
|
|
52
|
-
* isHnsEnabled: true,
|
|
53
|
-
* nfsv3Enabled: true,
|
|
54
|
-
* enableHttpsTrafficOnly: false,
|
|
55
|
-
* networkRules: {
|
|
56
|
-
* defaultAction: "Deny",
|
|
57
|
-
* virtualNetworkSubnetIds: [exampleSubnet.id],
|
|
58
|
-
* },
|
|
59
|
-
* });
|
|
60
|
-
* // Due to https://github.com/hashicorp/terraform-provider-azurerm/issues/2977 and the fact
|
|
61
|
-
* // that the NFSv3 enabled storage account can't allow public network access - otherwise the NFSv3 protocol will fail,
|
|
62
|
-
* // we have to use the ARM template to deploy the storage container as a workaround.
|
|
63
|
-
* // Once the issue above got resolved, we can instead use the azurerm_storage_container resource.
|
|
64
|
-
* const storage_containers = new azure.core.ResourceGroupTemplateDeployment("storage-containers", {
|
|
65
|
-
* name: "example-deployment",
|
|
66
|
-
* resourceGroupName: exampleAccount.resourceGroupName,
|
|
67
|
-
* deploymentMode: "Incremental",
|
|
68
|
-
* parametersContent: pulumi.jsonStringify({
|
|
69
|
-
* location: {
|
|
70
|
-
* value: exampleAccount.location,
|
|
71
|
-
* },
|
|
72
|
-
* storageAccountName: {
|
|
73
|
-
* value: exampleAccount.name,
|
|
74
|
-
* },
|
|
75
|
-
* containerName: {
|
|
76
|
-
* value: "example-container",
|
|
77
|
-
* },
|
|
78
|
-
* }),
|
|
79
|
-
* templateContent: `{
|
|
80
|
-
* \\"schema\\": \\"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\\",
|
|
81
|
-
* \\"contentVersion\\": \\"1.0.0.0\\",
|
|
82
|
-
* \\"parameters\\": {
|
|
83
|
-
* \\"storageAccountName\\": {
|
|
84
|
-
* \\"type\\": \\"String\\"
|
|
85
|
-
* },
|
|
86
|
-
* \\"containerName\\": {
|
|
87
|
-
* \\"type\\": \\"String\\"
|
|
88
|
-
* },
|
|
89
|
-
* \\"location\\": {
|
|
90
|
-
* \\"type\\": \\"String\\"
|
|
91
|
-
* }
|
|
92
|
-
* },
|
|
93
|
-
* \\"resources\\": [
|
|
94
|
-
* {
|
|
95
|
-
* \\"type\\": \\"Microsoft.Storage/storageAccounts\\",
|
|
96
|
-
* \\"apiVersion\\": \\"2019-06-01\\",
|
|
97
|
-
* \\"name\\": \\"[parameters('storageAccountName')]\\",
|
|
98
|
-
* \\"location\\": \\"[parameters('location')]\\",
|
|
99
|
-
* \\"sku\\": {
|
|
100
|
-
* \\"name\\": \\"Standard_LRS\\",
|
|
101
|
-
* \\"tier\\": \\"Standard\\"
|
|
102
|
-
* },
|
|
103
|
-
* \\"kind\\": \\"StorageV2\\",
|
|
104
|
-
* \\"properties\\": {
|
|
105
|
-
* \\"accessTier\\": \\"Hot\\"
|
|
106
|
-
* },
|
|
107
|
-
* \\"resources\\": [
|
|
108
|
-
* {
|
|
109
|
-
* \\"type\\": \\"blobServices/containers\\",
|
|
110
|
-
* \\"apiVersion\\": \\"2019-06-01\\",
|
|
111
|
-
* \\"name\\": \\"[concat('default/', parameters('containerName'))]\\",
|
|
112
|
-
* \\"dependsOn\\": [
|
|
113
|
-
* \\"[parameters('storageAccountName')]\\"
|
|
114
|
-
* ]
|
|
115
|
-
* }
|
|
116
|
-
* ]
|
|
117
|
-
* }
|
|
118
|
-
* ],
|
|
119
|
-
*
|
|
120
|
-
* \\"outputs\\": {
|
|
121
|
-
* \\"id\\": {
|
|
122
|
-
* \\"type\\": \\"String\\",
|
|
123
|
-
* \\"value\\": \\"[resourceId('Microsoft.Storage/storageAccounts/blobServices/containers', parameters('storageAccountName'), 'default', parameters('containerName'))]\\"
|
|
124
|
-
* }
|
|
125
|
-
* }
|
|
126
|
-
* }
|
|
127
|
-
* `,
|
|
128
|
-
* });
|
|
129
|
-
* const exampleStorageAccountContrib = new azure.authorization.Assignment("example_storage_account_contrib", {
|
|
130
|
-
* scope: exampleAccount.id,
|
|
131
|
-
* roleDefinitionName: "Storage Account Contributor",
|
|
132
|
-
* principalId: example.then(example => example.objectId),
|
|
133
|
-
* });
|
|
134
|
-
* const exampleStorageBlobDataContrib = new azure.authorization.Assignment("example_storage_blob_data_contrib", {
|
|
135
|
-
* scope: exampleAccount.id,
|
|
136
|
-
* roleDefinitionName: "Storage Blob Data Contributor",
|
|
137
|
-
* principalId: example.then(example => example.objectId),
|
|
138
|
-
* });
|
|
139
|
-
* const exampleCache = new azure.hpc.Cache("example", {
|
|
140
|
-
* name: "example-hpc-cache",
|
|
141
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
142
|
-
* location: exampleResourceGroup.location,
|
|
143
|
-
* cacheSizeInGb: 3072,
|
|
144
|
-
* subnetId: exampleSubnet.id,
|
|
145
|
-
* skuName: "Standard_2G",
|
|
146
|
-
* });
|
|
147
|
-
* const exampleCacheBlobNfsTarget = new azure.hpc.CacheBlobNfsTarget("example", {
|
|
148
|
-
* name: "example-hpc-target",
|
|
149
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
150
|
-
* cacheName: exampleCache.name,
|
|
151
|
-
* storageContainerId: std.jsondecodeOutput({
|
|
152
|
-
* input: storage_containers.outputContent,
|
|
153
|
-
* }).apply(invoke => invoke.result?.id?.value),
|
|
154
|
-
* namespacePath: "/p1",
|
|
155
|
-
* usageModel: "READ_HEAVY_INFREQ",
|
|
156
|
-
* });
|
|
157
|
-
* ```
|
|
158
|
-
*
|
|
159
|
-
* ## API Providers
|
|
160
|
-
*
|
|
161
|
-
* <!-- This section is generated, changes will be overwritten -->
|
|
162
|
-
* This resource uses the following Azure API Providers:
|
|
163
|
-
*
|
|
164
|
-
* * `Microsoft.StorageCache` - 2023-05-01
|
|
165
|
-
*
|
|
166
17
|
* ## Import
|
|
167
18
|
*
|
|
168
19
|
* HPC Cache Blob NFS Targets can be imported using the `resource id`, e.g.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cacheBlobNfsTarget.js","sourceRoot":"","sources":["../../hpc/cacheBlobNfsTarget.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"cacheBlobNfsTarget.js","sourceRoot":"","sources":["../../hpc/cacheBlobNfsTarget.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACzE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IAiDD,YAAY,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