AzureSqlElasticJobStepCmdletBase<TInputObject>.ClearProperties Method
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.
Clears job step properties
protected void ClearProperties ();
member this.ClearProperties : unit -> unit
Protected Sub ClearProperties ()
Remarks
We clear these properties so that during piping scenarios we can ensure we initialize the minimum properties for either getting, starting, stopping the current job execution. Resource group name, server name, agent name, job, job execution id, and step name are cleared so that during the next iteration in list, they will be initialized properly during InitializeInputObjectProperties(TInputObject)
Note: We dont' clear credential name and target group name in case during Set-AzureRmSqlElasticJobStep scenario, client wishes to update multiple steps with same credential or target group. This is why we only clear the minimum parameters necessary to find the correct resource to execute on, while supporting InputObject/ParentObject and ResourceId/ParentResourceId parameter types.