AzurePowerShellScript Class
Object model for the Azure PowerShell script.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models._models_py3.DeploymentScriptAzurePowerShellScript
Constructor
AzurePowerShellScript(*, identity: azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models._models_py3.ManagedServiceIdentity, location: str, retention_interval: datetime.timedelta, az_power_shell_version: str, tags: Optional[Dict[str, str]] = None, container_settings: Optional[azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models._models_py3.ContainerConfiguration] = None, storage_account_settings: Optional[azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models._models_py3.StorageAccountConfiguration] = None, cleanup_preference: Optional[Union[str, azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models._deployment_scripts_client_enums.CleanupOptions]] = 'Always', primary_script_uri: Optional[str] = None, supporting_script_uris: Optional[List[str]] = None, script_content: Optional[str] = None, arguments: Optional[str] = None, environment_variables: Optional[List[azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models._models_py3.EnvironmentVariable]] = None, force_update_tag: Optional[str] = None, timeout: Optional[datetime.timedelta] = 'P1D', **kwargs)
Variables
- id
- str
String Id used to locate any resource on Azure.
- name
- str
Name of this resource.
- type
- str
Type of this resource.
- identity
- ManagedServiceIdentity
Required. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported.
- location
- str
Required. The location of the ACI and the storage account for the deployment script.
- kind
- str or ScriptType
Required. Type of the script.Constant filled by server. Possible values include: "AzurePowerShell", "AzureCLI".
- system_data
- SystemData
The system metadata related to this resource.
- container_settings
- ContainerConfiguration
Container settings.
- storage_account_settings
- StorageAccountConfiguration
Storage Account settings.
- cleanup_preference
- str or CleanupOptions
The clean up preference when the script execution gets in a terminal state. Default setting is 'Always'. Possible values include: "Always", "OnSuccess", "OnExpiration". Default value: "Always".
- provisioning_state
- str or ScriptProvisioningState
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.
- primary_script_uri
- str
Uri for the script. This is the entry point for the external script.
- script_content
- str
Script body.
- arguments
- str
Command line arguments to pass to the script. Arguments are separated by spaces. ex: -Name blue* -Location 'West US 2'.
- environment_variables
- list[EnvironmentVariable]
The environment variables to pass over to the script.
- force_update_tag
- str
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.
- retention_interval
- timedelta
Required. 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 P1D means one day).
- timeout
- timedelta
Maximum allowed script execution time specified in ISO 8601 format. Default value is P1D.
- az_power_shell_version
- str
Required. Azure PowerShell module version to be used.
Feedback
Submit and view feedback for