The Remove-AzAutomationRuntimeEnvironment cmdlet removes a Runtime Environment from an Azure Automation account. This operation cannot be undone, and any runbooks associated with this runtime environment will no longer be able to use it.
Confirm
Are you sure you want to remove RuntimeEnvironment 'PowerShell-7.4-Prod'?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"):
This command prompts for confirmation and then removes the runtime environment named "PowerShell-7.4-Prod" from the automation account named Contoso17.
Example 2: Remove a runtime environment without confirmation
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.