Skip to content

Commit dfdaf87

Browse files
committed
Add license type for managed integration runtime
1 parent 11f50a2 commit dfdaf87

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

src/ResourceManager/DataFactories/Commands.DataFactoryV2/Constants.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ internal static class Constants
108108

109109
public const string HelpIntegrationRuntimeMaxParallelExecutionsPerNode = "Maximum parallel execution count per node for a managed dedicated integration runtime.";
110110

111+
public const string HelpIntegrationRuntimeLicenseType = "The license type that you want to select for the SSIS IR. There are two types: LicenseIncluded or BasePrice. If you are qualified for the Azure Hybrid Use Benefit (AHUB) pricing, please select BasePrice. If not, please select LicenseIncluded.";
112+
111113
public const string HelpIntegrationRuntimeAutoUpdate = "Enable or disable the self-hosted integration runtime auto-update.";
112114

113115
public const string HelpIntegrationRuntimeAutoUpdateTime = "The time of the day for the self-hosted integration runtime auto-update.";
@@ -167,5 +169,9 @@ internal static class Constants
167169
public const string IntegrationRuntimeAutoUpdateDisabled = "Off";
168170

169171
public const string TriggerName = "TriggerName";
172+
173+
public const string IntegrationRuntimeLicenseIncluded = "LicenseIncluded";
174+
175+
public const string IntegrationRuntimeBasePrice = "BasePrice";
170176
}
171177
}

src/ResourceManager/DataFactories/Commands.DataFactoryV2/IntegrationRuntimes/SetAzureDataFactoryIntegrationRuntimeCommand.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,16 @@ public class SetAzureDataFactoryIntegrationRuntimeCommand : IntegrationRuntimeCm
102102
HelpMessage = Constants.HelpIntegrationRuntimeMaxParallelExecutionsPerNode)]
103103
public int? MaxParallelExecutionsPerNode { get; set; }
104104

105+
[Parameter(
106+
Mandatory = false,
107+
HelpMessage = Constants.HelpIntegrationRuntimeLicenseType)]
108+
[ValidateNotNullOrEmpty]
109+
[ValidateSet(
110+
Constants.IntegrationRuntimeLicenseIncluded,
111+
Constants.IntegrationRuntimeBasePrice,
112+
IgnoreCase = true)]
113+
public string LicenseType { get; set; }
114+
105115
[Parameter(
106116
Mandatory = false, HelpMessage = Constants.HelpDontAskConfirmation)]
107117
public SwitchParameter Force { get; set; }
@@ -338,6 +348,16 @@ private void HandleManagedIntegrationRuntime(ManagedIntegrationRuntime integrati
338348
}
339349
}
340350

351+
if (!string.IsNullOrWhiteSpace(LicenseType))
352+
{
353+
if (integrationRuntime.SsisProperties == null)
354+
{
355+
integrationRuntime.SsisProperties = new IntegrationRuntimeSsisProperties();
356+
}
357+
358+
integrationRuntime.SsisProperties.LicenseType = LicenseType;
359+
}
360+
341361
integrationRuntime.Validate();
342362
}
343363
}

src/ResourceManager/DataFactories/Commands.DataFactoryV2/Models/PSManagedIntegrationRuntime.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,7 @@ public PSManagedIntegrationRuntime(
6060
public string Subnet => ManagedIntegrationRuntime.ComputeProperties?.VNetProperties?.Subnet;
6161

6262
public string State => ManagedIntegrationRuntime.State;
63+
64+
public string LicenseType => ManagedIntegrationRuntime.SsisProperties?.LicenseType;
6365
}
6466
}

0 commit comments

Comments
 (0)