AzurePowerShellScript Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AzurePowerShellScript() |
Initializes a new instance of the AzurePowerShellScript class. |
AzurePowerShellScript(String, TimeSpan, String, String, String, String, ManagedServiceIdentity, IDictionary<String,String>, SystemData, ContainerConfiguration, StorageAccountConfiguration, String, String, ScriptStatus, IDictionary<String,Object>, String, IList<String>, String, String, IList<EnvironmentVariable>, String, Nullable<TimeSpan>) |
Initializes a new instance of the AzurePowerShellScript class. |
AzurePowerShellScript()
Initializes a new instance of the AzurePowerShellScript class.
public AzurePowerShellScript ();
Public Sub New ()
Applies to
AzurePowerShellScript(String, TimeSpan, String, String, String, String, ManagedServiceIdentity, IDictionary<String,String>, SystemData, ContainerConfiguration, StorageAccountConfiguration, String, String, ScriptStatus, IDictionary<String,Object>, String, IList<String>, String, String, IList<EnvironmentVariable>, String, Nullable<TimeSpan>)
Initializes a new instance of the AzurePowerShellScript class.
public AzurePowerShellScript (string location, TimeSpan retentionInterval, string azPowerShellVersion, string id = default, string name = default, string type = default, Microsoft.Azure.Management.ResourceManager.Models.ManagedServiceIdentity identity = default, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.ResourceManager.Models.SystemData systemData = default, Microsoft.Azure.Management.ResourceManager.Models.ContainerConfiguration containerSettings = default, Microsoft.Azure.Management.ResourceManager.Models.StorageAccountConfiguration storageAccountSettings = default, string cleanupPreference = default, string provisioningState = default, Microsoft.Azure.Management.ResourceManager.Models.ScriptStatus status = default, System.Collections.Generic.IDictionary<string,object> outputs = default, string primaryScriptUri = default, System.Collections.Generic.IList<string> supportingScriptUris = default, string scriptContent = default, string arguments = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ResourceManager.Models.EnvironmentVariable> environmentVariables = default, string forceUpdateTag = default, TimeSpan? timeout = default);
new Microsoft.Azure.Management.ResourceManager.Models.AzurePowerShellScript : string * TimeSpan * string * string * string * string * Microsoft.Azure.Management.ResourceManager.Models.ManagedServiceIdentity * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.ResourceManager.Models.SystemData * Microsoft.Azure.Management.ResourceManager.Models.ContainerConfiguration * Microsoft.Azure.Management.ResourceManager.Models.StorageAccountConfiguration * string * string * Microsoft.Azure.Management.ResourceManager.Models.ScriptStatus * System.Collections.Generic.IDictionary<string, obj> * string * System.Collections.Generic.IList<string> * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.ResourceManager.Models.EnvironmentVariable> * string * Nullable<TimeSpan> -> Microsoft.Azure.Management.ResourceManager.Models.AzurePowerShellScript
Public Sub New (location As String, retentionInterval As TimeSpan, azPowerShellVersion As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional identity As ManagedServiceIdentity = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional systemData As SystemData = Nothing, Optional containerSettings As ContainerConfiguration = Nothing, Optional storageAccountSettings As StorageAccountConfiguration = Nothing, Optional cleanupPreference As String = Nothing, Optional provisioningState As String = Nothing, Optional status As ScriptStatus = Nothing, Optional outputs As IDictionary(Of String, Object) = Nothing, Optional primaryScriptUri As String = Nothing, Optional supportingScriptUris As IList(Of String) = Nothing, Optional scriptContent As String = Nothing, Optional arguments As String = Nothing, Optional environmentVariables As IList(Of EnvironmentVariable) = Nothing, Optional forceUpdateTag As String = Nothing, Optional timeout As Nullable(Of TimeSpan) = Nothing)
Parameters
- location
- String
The location of the ACI and the storage account for the deployment script.
- retentionInterval
- TimeSpan
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).
- azPowerShellVersion
- String
Azure PowerShell module version to be used.
- id
- String
String Id used to locate any resource on Azure.
- name
- String
Name of this resource.
- type
- String
Type of this resource.
- identity
- ManagedServiceIdentity
Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported.
- tags
- IDictionary<String,String>
Resource tags.
- systemData
- SystemData
The system metadata related to this resource.
- containerSettings
- ContainerConfiguration
Container settings.
- storageAccountSettings
- StorageAccountConfiguration
Storage Account settings.
- cleanupPreference
- String
The clean up preference when the script execution gets in a terminal state. Default setting is 'Always'. Possible values include: 'Always', 'OnSuccess', 'OnExpiration'
- provisioningState
- String
State of the script execution. This only appears in the response. Possible values include: 'Creating', 'ProvisioningResources', 'Running', 'Succeeded', 'Failed', 'Canceled'
- status
- ScriptStatus
Contains the results of script execution.
- outputs
- IDictionary<String,Object>
List of script outputs.
- primaryScriptUri
- String
Uri for the script. This is the entry point for the external script.
- scriptContent
- String
Script body.
- arguments
- String
Command line arguments to pass to the script. Arguments are separated by spaces. ex: -Name blue* -Location 'West US 2'
- environmentVariables
- IList<EnvironmentVariable>
The environment variables to pass over to the script.
- forceUpdateTag
- String
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.
Maximum allowed script execution time specified in ISO 8601 format. Default value is PT1H
Applies to
Azure SDK for .NET