/// <summary> /// Initializes a new instance of the AzurePowerShellScript class. /// </summary> /// <param name="identity">Managed identity to be used for this /// deployment script. Currently, only user-assigned MSI is /// supported.</param> /// <param name="location">The location of the ACI and the storage /// account for the deployment script.</param> /// <param name="retentionInterval">Interval for which the service /// retains the script resource after it reaches a terminal state. /// Resource will be deleted when this duration expires. Duration is /// based on ISO 8601 pattern (for example P7D means one week).</param> /// <param name="azPowerShellVersion">Azure PowerShell module version /// to be used.</param> /// <param name="id">String Id used to locate any resource on /// Azure.</param> /// <param name="name">Name of this resource.</param> /// <param name="type">Type of this resource.</param> /// <param name="tags">Resource tags.</param> /// <param name="cleanupPreference">The clean up preference when the /// script execution gets in a terminal state. Default setting is /// 'Always'. Possible values include: 'Always', 'OnSuccess', /// 'OnExpiration'</param> /// <param name="provisioningState">State of the script execution. This /// only appears in the response. Possible values include: 'Creating', /// 'ProvisioningResources', 'Running', 'Succeeded', 'Failed', /// 'Canceled', 'Expiring'</param> /// <param name="status">Contains the results of script /// execution.</param> /// <param name="outputs">List of script outputs.</param> /// <param name="primaryScriptUri">Uri for the script. This is the /// entry point for the external script.</param> /// <param name="supportingScriptUris">Supporting files for the /// external script.</param> /// <param name="scriptContent">Script body.</param> /// <param name="arguments">Command line arguments to pass to the /// script. Arguments are separated by spaces. ex: -Name blue* /// -Location 'West US 2' </param> /// <param name="environmentVariables">The environment variables to /// pass over to the script.</param> /// <param name="forceUpdateTag">Gets or sets how the deployment script /// should be forced to execute even if the script resource has not /// changed. Can be current time stamp or a GUID.</param> /// <param name="timeout">Maximum allowed script execution time /// specified in ISO 8601 format. Default value is PT1H</param> public AzurePowerShellScript(ManagedServiceIdentity identity, string location, System.TimeSpan retentionInterval, string azPowerShellVersion, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string cleanupPreference = default(string), string provisioningState = default(string), ScriptStatus status = default(ScriptStatus), IDictionary <string, object> outputs = default(IDictionary <string, object>), string primaryScriptUri = default(string), IList <string> supportingScriptUris = default(IList <string>), string scriptContent = default(string), string arguments = default(string), IList <EnvironmentVariable> environmentVariables = default(IList <EnvironmentVariable>), string forceUpdateTag = default(string), System.TimeSpan?timeout = default(System.TimeSpan?)) : base(identity, location, id, name, type, tags) { CleanupPreference = cleanupPreference; ProvisioningState = provisioningState; Status = status; Outputs = outputs; PrimaryScriptUri = primaryScriptUri; SupportingScriptUris = supportingScriptUris; ScriptContent = scriptContent; Arguments = arguments; EnvironmentVariables = environmentVariables; ForceUpdateTag = forceUpdateTag; RetentionInterval = retentionInterval; Timeout = timeout; AzPowerShellVersion = azPowerShellVersion; CustomInit(); }
/// <summary> /// Initializes a new instance of the AzureCliScript class. /// </summary> /// <param name="location">The location of the ACI and the storage /// account for the deployment script.</param> /// <param name="retentionInterval">Interval for which the service /// retains the script resource after it reaches a terminal state. /// Resource will be deleted when this duration expires. Duration is /// based on ISO 8601 pattern (for example P7D means one week).</param> /// <param name="azCliVersion">Azure CLI module version to be /// used.</param> /// <param name="id">String Id used to locate any resource on /// Azure.</param> /// <param name="name">Name of this resource.</param> /// <param name="type">Type of this resource.</param> /// <param name="identity">Optional property. Managed identity to be /// used for this deployment script. Currently, only user-assigned MSI /// is supported.</param> /// <param name="tags">Resource tags.</param> /// <param name="systemData">The system metadata related to this /// resource.</param> /// <param name="containerSettings">Container settings.</param> /// <param name="storageAccountSettings">Storage Account /// settings.</param> /// <param name="cleanupPreference">The clean up preference when the /// script execution gets in a terminal state. Default setting is /// 'Always'. Possible values include: 'Always', 'OnSuccess', /// 'OnExpiration'</param> /// <param name="provisioningState">State of the script execution. This /// only appears in the response. Possible values include: 'Creating', /// 'ProvisioningResources', 'Running', 'Succeeded', 'Failed', /// 'Canceled'</param> /// <param name="status">Contains the results of script /// execution.</param> /// <param name="outputs">List of script outputs.</param> /// <param name="primaryScriptUri">Uri for the script. This is the /// entry point for the external script.</param> /// <param name="supportingScriptUris">Supporting files for the /// external script.</param> /// <param name="scriptContent">Script body.</param> /// <param name="arguments">Command line arguments to pass to the /// script. Arguments are separated by spaces. ex: -Name blue* /// -Location 'West US 2' </param> /// <param name="environmentVariables">The environment variables to /// pass over to the script.</param> /// <param name="forceUpdateTag">Gets or sets how the deployment script /// should be forced to execute even if the script resource has not /// changed. Can be current time stamp or a GUID.</param> /// <param name="timeout">Maximum allowed script execution time /// specified in ISO 8601 format. Default value is PT1H</param> public AzureCliScript(string location, System.TimeSpan retentionInterval, string azCliVersion, string id = default(string), string name = default(string), string type = default(string), ManagedServiceIdentity identity = default(ManagedServiceIdentity), IDictionary <string, string> tags = default(IDictionary <string, string>), SystemData systemData = default(SystemData), ContainerConfiguration containerSettings = default(ContainerConfiguration), StorageAccountConfiguration storageAccountSettings = default(StorageAccountConfiguration), string cleanupPreference = default(string), string provisioningState = default(string), ScriptStatus status = default(ScriptStatus), IDictionary <string, object> outputs = default(IDictionary <string, object>), string primaryScriptUri = default(string), IList <string> supportingScriptUris = default(IList <string>), string scriptContent = default(string), string arguments = default(string), IList <EnvironmentVariable> environmentVariables = default(IList <EnvironmentVariable>), string forceUpdateTag = default(string), System.TimeSpan?timeout = default(System.TimeSpan?)) : base(location, id, name, type, identity, tags, systemData) { ContainerSettings = containerSettings; StorageAccountSettings = storageAccountSettings; CleanupPreference = cleanupPreference; ProvisioningState = provisioningState; Status = status; Outputs = outputs; PrimaryScriptUri = primaryScriptUri; SupportingScriptUris = supportingScriptUris; ScriptContent = scriptContent; Arguments = arguments; EnvironmentVariables = environmentVariables; ForceUpdateTag = forceUpdateTag; RetentionInterval = retentionInterval; Timeout = timeout; AzCliVersion = azCliVersion; CustomInit(); }