Share via


AzureSqlElasticJobStepCmdletBase<TInputObject>.ClearProperties Method

Definition

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.

Applies to