public static Snapshot GetSnapshot(this ArmClient armClient, ResourceIdentifier id) { Snapshot.ValidateResourceId(id); return(armClient.UseClientContext((uri, credential, clientOptions, pipeline) => new Snapshot(clientOptions, credential, uri, pipeline, id))); }